Re: Wrap access to Oid II

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Manfred Koizar <mkoi-pg(at)aon(dot)at>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Wrap access to Oid II
Date: 2002-07-11 21:59:22
Message-ID: 200207112159.g6BLxMi00127@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


I assume Tom is OK with this patch because there are more patches coming
to deal with his issues.

---------------------------------------------------------------------------

Manfred Koizar wrote:
> On Sat, 06 Jul 2002 17:48:11 -0400, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> wrote:
> >My objection to this remains the same as before: heap_getsysattr
> >now has a core-dump condition built into it, because it can't tell
> >whether it's safe to do HeapTupleGetOid().
>
> HeapTupleHeader format is still unchanged. The change in the struct
> has been proposed, not yet done.
>
> >You really need to propagate relhasoids into tuple descriptors,
>
> This is addressed in a patch I'm currently working on. It is harder
> than I have thought (hoped), because tuple descriptors are manipulated
> in many places in the executor and that's an area, where I have never
> been before. I don't trust my changes enough to post the patch now,
> I'm still testing...
>
> >rather than having to write
> >
> >> + /* no Relation here to AssertRelationHasOids(relation); */
>
> Yeah, in my working copy of the code (e.g. in GetSysCacheOid) I now
> have
> /* no tuple descriptor here to Assert(...->hasoid); */ :-)
> You're right, these places are much less frequent than those where we
> don't have a relation handy.
>
> Servus
> Manfred
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
>
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-07-11 22:17:47 Re: UNIQUE predicate
Previous Message Bruce Momjian 2002-07-11 21:57:28 Re: Wrap access to Oid II