Unix Technical Forum

restore message . . . cascade

This is a discussion on restore message . . . cascade within the pgsql Admins forums, part of the PostgreSQL category; --> I am backing up my databases with pgdump -c command to prevent duplicate records during a restore. When I ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:19 AM
Marc Fromm
 
Posts: n/a
Default restore message . . . cascade

I am backing up my databases with pgdump -c command to prevent duplicate
records during a restore.

When I restore the database with this command:
psql -U postgres infoserv < /tmp/infoserv-03-25-2008_12-10
I get the message to use cascade to drop dependent objects.

DROP TABLE
ERROR: cannot drop schema public because other objects depend on it
HINT: Use DROP ... CASCADE to drop the dependent objects too.
ERROR: schema "public" already exists
ALTER SCHEMA

1.) If the schema is not dropped during the restore, is stuff in the
schema being duplicated?
2.) What flag can I add to the pgdump command to initiate the cascade?
3.) Is it best practice to drop the schema and dependant objects?


Thanks,


Marc


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com