Call for objections: merge Resdom with TargetEntry

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Call for objections: merge Resdom with TargetEntry
Date: 2005-04-05 20:19:54
Message-ID: 27685.1112732394@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've gotten a bee in my bonnet again about Resdom being wasteful.
There is no case where Resdom appears without TargetEntry, nor vice
versa, so we ought to fold them into a single node type. Is anyone
out there working on a patch that would be seriously affected by
such a change? If so speak up --- this could certainly wait till
after you merge.

IIRC the reason for the separation is that long ago in Berkeley days,
a TargetEntry could contain either a Resdom or an Fjoin ... but we got
rid of Fjoin in 7.4 (it was broken long before that) and it's not likely
to come back.

The advantage of folding 'em together is code simplification and
elimination of palloc overhead. I doubt it'll really make for a
measurable speedup, but I think it's worth doing anyway to simplify
the code.

Objections?

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Russ Brown 2005-04-05 20:21:11 Re: [HACKERS] plPHP in core?
Previous Message Tom Lane 2005-04-05 19:25:47 Re: REINDEX ALL