Skip site navigation (1) Skip section navigation (2)

Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was
Date: 2005-03-26 06:35:20
Message-ID: 11051.1111818920@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Michael FuhrDate: 2005-03-26 06:55:08
Subject: Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was
Previous:From: Christopher Kings-LynneDate: 2005-03-26 06:30:13
Subject: Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences:

pgsql-committers by date

Next:From: Michael FuhrDate: 2005-03-26 06:55:08
Subject: Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences: it was
Previous:From: Christopher Kings-LynneDate: 2005-03-26 06:30:13
Subject: Re: [COMMITTERS] pgsql: Fix two bugs in change_owner_recurse_to_sequences:

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group