pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #8174: Ownership reassigned public schema restored with postgres as owner
2+ messages / 2 participants
[nested] [flat]

* BUG #8174: Ownership reassigned public schema restored with postgres as owner
@ 2013-05-21 22:25  polobo@yahoo.com
  0 siblings, 1 reply; 2+ messages in thread

From: polobo@yahoo.com @ 2013-05-21 22:25 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      8174
Logged by:          David Johnston
Email address:      polobo@yahoo.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.  There are
numerous other schemas in the database for which the owner is the "not
postgres" user and all of those schemas have the proper ownership assigned -
it is just the public schema that is at issue.  The database itself is
(correctly) created with ownership assigned to this other role as well.

I would expect that the public schema owner would match that in the source
database but maybe I am missing something.

David J.







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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #8174: Ownership reassigned public schema restored with postgres as owner
@ 2013-05-28 13:10  Peter Eisentraut <peter_e@gmx.net>
  parent: polobo@yahoo.com
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2013-05-28 13:10 UTC (permalink / raw)
  To: polobo@yahoo.com; +Cc: pgsql-bugs

On 5/21/13 6:25 PM, polobo@yahoo.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      8174
> Logged by:          David Johnston
> Email address:      polobo@yahoo.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.



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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-05-28 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21 22:25 BUG #8174: Ownership reassigned public schema restored with postgres as owner polobo@yahoo.com
2013-05-28 13:10 ` Peter Eisentraut <peter_e@gmx.net>

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