Re: Change Ownership Permission Checks

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Change Ownership Permission Checks
Date: 2005-07-14 21:49:37
Message-ID: 4971.1121377777@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Stephen Frost <sfrost(at)snowman(dot)net> writes:
> Attached please find a patch to change how the permissions checking
> for alter-owner is done. With roles there can be more than one
> 'owner' of an object and therefore it becomes sensible to allow
> specific cases of ownership change for non-superusers.

Applied with minor revisions. The patch as submitted suffered a certain
amount of copy-and-paste-itis (eg, trying to use pg_type_ownercheck on
an opclass), and I really disliked using ACLCHECK_NOT_OWNER as the way
to report "you can't assign ownership to that role because you are not
a member of it". So I made a separate error message for that case.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2005-07-14 21:51:35 Re: [Bizgres-general] A Guide to Constraint Exclusion
Previous Message Simon Riggs 2005-07-14 21:41:06 Re: [Bizgres-general] A Guide to Constraint Exclusion

Browse pgsql-patches by date

  From Date Subject
Next Message Titus von Boxberg 2005-07-14 22:04:25 Re: PL/PGSQL: Dynamic Record Introspection
Previous Message Bruce Momjian 2005-07-14 21:28:04 Re: thousands comma numeric formatting in psql