Re: [HACKERS] copyObject() ?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: Inoue(at)tpf(dot)co(dot)jp, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] copyObject() ?
Date: 1999-02-23 15:28:48
Message-ID: 199902231528.KAA14403@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> > AFAIC the relation between objects is not copied correctly
> > by copyObject() (i.e the same pointers to an object are copied
> > to different pointers by copyObject()).
>
> True, but it seems irrelevant to me --- as Jan Wieck was just pointing
> out, no code should ever depend on pointer-equality in parse trees or
> plan trees anyway.
>
> > There is a way to maintain the list of (old,new) pairs during
> > copyObject() operations.
>
> I think we'd be better off fixing any places that mistakenly assume
> pointer compare is sufficient. You didn't say which version you were
> testing, but we know there are a few bugs like that in the current
> CVS sources because of collateral damage from the EXCEPT/INTERSECT
> patch. I believe the plan is to either fix them or back out the patch
> before 6.5.

Yes, I removed a pointer comparison in the optimizer. It now uses
equal(). Someone needs to go over EXCEPT/INTERSECT code and identify
introduced problems or we are going to be chasing these introduced bugs
for months. Anyone volunteering?

--
Bruce Momjian | http://www.op.net/~candle
maillist(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

Browse pgsql-hackers by date

  From Date Subject
Next Message Brian P Millett 1999-02-23 15:32:40 postmaster fails with 2-23 snapshot
Previous Message Philip Shiels 1999-02-23 15:18:36 Alterations to backend/client protocol