Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > BUG #4127: pg_d...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3737 of 3904
Post > Topic >>

BUG #4127: pg_dumpall -c unable to be restored without error

by jacobc@[EMAIL PROTECTED] ("Jacob Champlin") Apr 24, 2008 at 04:37 PM

The following bug has been logged online:

Bug reference:      4127
Logged by:          Jacob Champlin
Email address:      jacobc@[EMAIL PROTECTED]
 version: 8.1.11
Operating system:   SuSE 10.1
Description:        pg_dumpall -c unable to be restored without error
Details: 

In 8.0  I would do a pg_dumpall -c  to backup my database.

In 8.1 you guys have added functionality to the -c flag to make it now
DROP
and Recreate Roles.  Nice feature and seems to be the right thing to do.

However, with the DROP Roles in the file this causes the file to not be
able
to be restored.

psql -f restore.sql

results in:

psql:/var/lib/pgsql/backups/restore.sql:11: ERROR:  current user cannot be
dropped
psql:/var/lib/pgsql/backups/restore.sql:12: ERROR:  role "postgres"
already
exists
psql:/var/lib/pgsql/backups/restore.sql:17: ERROR:  role "webapp" cannot
be
dropped because some objects depend on it
DETAIL:  access to database rief
113 objects in database rief
psql:/var/lib/pgsql/backups/restore.sql:18: ERROR:  role "webapp" already
exists

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 3 Posts in Topic:
BUG #4127: pg_dumpall -c unable to be restored without error
jacobc@[EMAIL PROTECTED]   2008-04-24 16:37:10 
Re: BUG #4127: pg_dumpall -c unable to be restored without error
tgl@[EMAIL PROTECTED] (T  2008-04-24 12:44:14 
Re: BUG #4127: pg_dumpall -c unable to be restored without
jacobc@[EMAIL PROTECTED]   2008-04-24 13:04:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Tue Jul 8 23:02:36 CDT 2008.