Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was
Date
Msg-id 11051.1111818920@sss.pgh.pa.us
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences:  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was  (Michael Fuhr <mike@fuhr.org>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> I assume that this behaviour makes change owner on a table change owner 
> of serial sequences?

Yeah.

> Should we perhaps also propagate grant insert on a table to grant 
> select, update on dependent serial sequences?

Doesn't really follow.  That code is maintaining an invariant: the owner
of a table owns the associated indexes, toast table, sequences, etc.
There's no system-wide assumption that sequence privileges track table
privileges.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences:
Next
From: Michael Fuhr
Date:
Subject: Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was