dbTalk Databases Forums  

pg_restore -a -c

comp.databases.postgresql comp.databases.postgresql


Discuss pg_restore -a -c in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Guettler
 
Posts: n/a

Default pg_restore -a -c - 07-30-2008 , 06:28 AM






Hi,
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?

Thomas

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM






Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
  #3  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM



Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
  #4  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM



Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
  #5  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM



Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
  #6  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM



Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
  #7  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM



Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
  #8  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM



Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
  #9  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: pg_restore -a -c - 07-30-2008 , 10:47 AM



Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote:
Quote:
man pg_restore:

-a
Restore only the data, not the schema (data definitions).
-c
Clean (drop) database objects before recreating them.

If -a is given, -c is ignored. But I think it would be good, it will
result to a "DELETE FROM mytable" command before the restore.

Do you think it is a useful feature request? If yes, where should I send
it to?
Maybe the documentation should be modified to prevent that kind of
misinterpretation:

It would not result in a "DELETE FROM mytable", but in a
"DROP TABLE mytable", which would make subsequent INSERTs fail.

I think it is called "clean" in the man page to explain why the flag
"-c" was chosen.

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.