Re: OWNER TO on all objects

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: OWNER TO on all objects
Date: 2004-06-16 06:43:36
Message-ID: 40CFEC18.6000705@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

There is one other consideration, and that is that current pg_dump likes
to set session_auth to user of object before outputting drop command,
when '-c' is specificed.

I propose that we eliminate that set session_auth as well. If the user
running the script is the owner of that object or a superuser, then they
will be able to drop it. If they are neither, then the drop will fail,
but the session_authorization would have failed anyway!

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-06-16 06:45:47 Re: #postgresql report
Previous Message Christopher Kings-Lynne 2004-06-16 05:41:35 Re: OWNER TO on all objects