Re: adsrc and consrc incompatible with rename operations - Mailing list pgsql-hackers

From Rod Taylor
Subject Re: adsrc and consrc incompatible with rename operations
Date
Msg-id 1056720457.25229.4.camel@jester
Whole thread Raw
In response to adsrc and consrc incompatible with rename operations  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Fri, 2003-06-27 at 08:36, Peter Eisentraut wrote:
> The system catalog columns pg_attrdef.adsrc and pg_constraint.consrc store
> "human-readable" versions of pg_attrdef.adbin and pg_constraint.conbin.
> During a rename operation, they are not and cannot be updated.  We need to
> remove them and make interested applications get the information about of
> the *bin columns.  I noticed that various functions were recently updated
> to do that, but I think the columns should be removed altogether because
> they cannot be trusted.

Agreed (even brought it up at the time), but there are some
circumstances that may cause the binary column to be irretrievable due
to a corrupt system catalogue -- which is still possible despite
dependencies (concurrency issues -- lack of object locking).


--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

pgsql-hackers by date:

Previous
From: John DeSoi
Date:
Subject: Re: row description for domain in 7.4
Next
From: Srikanth M
Date:
Subject: CODE SUBMISSION FOR NEXT RELEASE