Re: Solving the OID-collision problem - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Solving the OID-collision problem
Date
Msg-id 9484.1123116904@sss.pgh.pa.us
Whole thread Raw
In response to Re: Solving the OID-collision problem  (Gavin Sherry <swm@linuxworld.com.au>)
List pgsql-hackers
Gavin Sherry <swm@linuxworld.com.au> writes:
> Looks good. Another approach would be to put the existing code in a
> PG_TRY() block and catching the duplicate key violation.

Not really feasible from a code-structure point of view, I'm afraid.
Also there is the issue of cleaning up leaked resources (buffer pins
etc), which would probably require a subtransaction to be safe,
at which point it's not looking so fast anymore ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: Solving the OID-collision problem
Next
From: Tom Lane
Date:
Subject: Bug introduced by recent ALTER OWNER permissions check change