Re: ALTER TABLE RENAME fix - Mailing list pgsql-patches

From Brent Verner
Subject Re: ALTER TABLE RENAME fix
Date
Msg-id 20011111040614.A99927@rcfile.org
Whole thread Raw
In response to Re: ALTER TABLE RENAME fix  (Brent Verner <brent@rcfile.org>)
List pgsql-patches
On 10 Nov 2001 at 23:25 (-0500), Brent Verner wrote:
| On 10 Nov 2001 at 22:42 (-0500), Tom Lane wrote:
| | Brent Verner <brent@rcfile.org> writes:
| | > exactly. which is why we've gotta inspecy the relname to determine
| | > which of the attnames to modify.
| |
| | My point is that inspecting the tgfoid is safer, because it
| | unambiguously tells you what you are looking at.  The relname is
| | inherently ambiguous because it could be the same on both sides.
|
| gotcha!  I'm digging further into how the F_RI_FKEY_* defines
| relate to this case.

Ok, I'm sending an updated patch that does not use relname at all, and
uses an indexscan (getting the Buffer Leak message was fun ;-).

cheers.
  brent

--
"Develop your talent, man, and leave the world something. Records are
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman

pgsql-patches by date:

Previous
From: Brent Verner
Date:
Subject: Re: ALTER TABLE RENAME fix
Next
From: Brent Verner
Date:
Subject: ALTER TABLE fixes (take two)