Re: ACLs versus ALTER OWNER

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ACLs versus ALTER OWNER
Date: 2004-06-02 15:21:44
Message-ID: 40BDF088.9010808@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>How about pg_dumpall dumps all users as superusers, and then changes
>>them back to what they're supposed to be at the bottom of the script :)
>
>
> Leaves you in kind of a dangerous state if the script doesn't complete,
> doesn't it?

If your script doesn't complete, it can leave you in all sorts of bad
states, but I guess this is a reasonably bad one.

> Someone else suggested having pg_dump dump all objects without ownership
> (so, on restore, they'd all initially be owned by the user running the
> script, hopefully a superuser) and then doing ALTER OWNERs and GRANTs at
> the bottom. This seems a little cleaner to me, though it's got the
> problem that somebody would have to go off and implement the remaining
> ALTER OWNER commands.

I guess that's me...

I'll have a crack at it, but don't let that stop anyone from piping up
and helping me :)

Chris

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-06-02 15:22:53 Re: ACLs versus ALTER OWNER
Previous Message Frank Wiles 2004-06-02 15:20:02 Re: Converting postgresql.conf parameters to kilobytes