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

Re: Duplicate object names in GRANT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Duplicate object names in GRANT
Date: 2005-07-27 04:41:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> writes:
> I ran across this yesterday on HEAD:

> template1=# grant select on foo, foo to swm;
> ERROR:  tuple already updated by self

Seems to fail similarly in every version back to 7.2; probably further,
but that's all I have running at the moment.

> We could do away with the error by producing a unique list of object names
> -- but that would impose an extra cost on the common case.

CommandCounterIncrement in the GRANT loop would be easier, likely.
I'm having a hard time getting excited about it though...

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2005-07-27 04:56:15
Subject: Re: RESULT_OID Bug
Previous:From: Michael FuhrDate: 2005-07-27 04:32:49
Subject: Re: RESULT_OID Bug

pgsql-patches by date

Next:From: Tom LaneDate: 2005-07-27 04:46:07
Subject: Re: pg_dump: fix crash on error
Previous:From: Gavin SherryDate: 2005-07-27 03:47:25
Subject: Duplicate object names in GRANT

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