Skip site navigation (1) Skip section navigation (2)

Re: pg_dump and pg_restore with different owners

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jaume Sabater <jsabater(at)linuxsilo(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump and pg_restore with different owners
Date: 2007-04-23 14:49:09
Message-ID: 2039.1177339749@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Jaume Sabater <jsabater(at)linuxsilo(dot)net> writes:
>> But I got these errors:
>> 
>> pg_restore: [archiver (db)] Error while PROCESSING TOC:
>> pg_restore: [archiver (db)] Error from TOC entry 3751; 0 0 COMMENT 
>> SCHEMA public postgres
>> pg_restore: [archiver (db)] could not execute query: ERROR:  must be 
>> owner of schema public
>> Command was:
>> COMMENT ON SCHEMA public IS 'Standard public schema';
>> pg_restore: WARNING:  no privileges could be revoked
>> pg_restore: WARNING:  no privileges could be revoked
>> pg_restore: WARNING:  no privileges were granted
>> pg_restore: WARNING:  no privileges were granted
>> WARNING: errors ignored on restore: 1

You can ignore these.  --no-owner plus do the restore as the new owner
is the correct procedure.

			regards, tom lane

In response to

pgsql-admin by date

Next:From: Thomas F. O'ConnellDate: 2007-04-23 18:31:57
Subject: Re: pg_standby, Restartable Recovery after Hard Failure
Previous:From: Tom LaneDate: 2007-04-23 14:21:03
Subject: Re: CESTLOG: statistics buffer is full

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group