Duplicate object names in GRANT

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Duplicate object names in GRANT
Date: 2005-07-27 03:47:25
Message-ID: Pine.LNX.4.58.0507271339530.22654@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Hi all,

I ran across this yesterday on HEAD:

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

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. It seems to me
that producing a useful error message would entail the same cost, however.

Thoughts?

Gavin

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message brook 2005-07-27 03:58:26 psql as an execve(2) interpreter
Previous Message Tom Lane 2005-07-27 03:37:45 Re: ENUM type

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-07-27 04:41:26 Re: Duplicate object names in GRANT
Previous Message Neil Conway 2005-07-27 01:41:30 pg_dump: fix crash on error