Re: BUG #8174: Ownership reassigned public schema restored with postgres as owner

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: polobo(at)yahoo(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8174: Ownership reassigned public schema restored with postgres as owner
Date: 2013-05-28 13:10:01
Message-ID: 51A4ACA9.80904@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 5/21/13 6:25 PM, polobo(at)yahoo(dot)com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 8174
> Logged by: David Johnston
> Email address: polobo(at)yahoo(dot)com
> PostgreSQL version: 9.0.13
> Operating system: Ubuntu Linux 10.04
> Description:
>
> Having performed a "pg_dump --schema_only --format=c" of a database I used
> "pg_restore -C" (after dumping and loading globals) to recreate the database
> on a new machine and the owner of the "public" schema on the new machine was
> "postgres" while the owner within the existing database is not.

I can confirm that that is broken.

If you use 9.1 or later, your non-postgres user will at least get all
its privileges on the schema public back. In 9.0, it won't even get
that. But dumping and restoring the owner still does not happen.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message bkhamphousone 2013-05-28 13:36:48 BUG #8183: field timestamp result to date
Previous Message Peter Eisentraut 2013-05-28 13:03:27 Re: BUG #8172: entering the hostname in the address column in pg_hba.conf doesn't work as it should