Re: [HACKERS] Another reason to redesign querytree representation

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Another reason to redesign querytree representation
Date: 1999-07-20 21:40:17
Message-ID: 199907202140.RAA12503@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Did you want to do the change for UNION, or were you just suggesting it
> > be done? I can easily add it to the TODO list.
> > Done:
>
> > * redesign UNION structures to have separarate target lists.
>
> Actually, it's not so much UNION that's busted as it is INSERT.
> The parser problems could be dealt with by having a two-level structure
> for INSERT ... SELECT ..., so that the targetlist for the eventual
> INSERT could be described without changing the semantics of the
> underlying SELECT.
>
> There might be other extensions needed for rules (paging Jan...) but
> as far as what I've been looking at goes, the TODO entry could be just
>
> * redesign INSERT ... SELECT to have two levels of target list.

Removed:
* Be smarter about promoting types when UNION merges different data types
* SELECT ... UNION ... GROUP BY fails if column types disagree
* INSERT ... SELECT ... UNION is not reliable

And added:

* redesign INSERT ... SELECT to have two levels of target list

--
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 Tom Lane 1999-07-20 21:49:26 Re: [HACKERS] Another reason to redesign querytree representation
Previous Message Tom Lane 1999-07-20 21:22:31 Re: [HACKERS] Another reason to redesign querytree representation