pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaume Sabater <jsabater@linuxsilo.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump and pg_restore with different owners
Date: Mon, 23 Apr 2007 10:49:09 -0400
Message-ID: <2039.1177339749@sss.pgh.pa.us> (raw)
In-Reply-To: <462C9BD3.6090405@linuxsilo.net>
References: <46273CDE.50401@linuxsilo.net>
	<462C9BD3.6090405@linuxsilo.net>

Jaume Sabater <jsabater@linuxsilo.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



view thread (3+ messages)

Message-ID: <2039.1177339749@sss.pgh.pa.us>
Permalink:  ../2039.1177339749@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2039.1177339749@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jsabater@linuxsilo.net
  Subject: Re: pg_dump and pg_restore with different owners
  In-Reply-To: <2039.1177339749@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox