Re: [HACKERS] Why not sub-selects in targetlists?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vadim Mikheev <vadim(at)krs(dot)ru>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Why not sub-selects in targetlists?
Date: 1999-08-30 15:04:12
Message-ID: 5650.936025452@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Vadim Mikheev <vadim(at)krs(dot)ru> writes:
> Tom Lane wrote:
>> For some reason we currently support sub-SELECT expressions only
>> in WHERE and HAVING clauses, not in the target list of a SELECT.
>> Does anyone know why this is?

> As usual, I just hadn't time to do more than it's done for
> 6.3.X -:) Subselects were not in my TODO list, I made base
> implementation because of there were many requests for them.

OK, I'll see about adding the missing transformations in the
planner. Shouldn't be hard.

> BTW, please don't forget subselects in FROM.

That seems to be a considerably bigger task :-(

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Hub.Org News Admin 1999-08-30 15:07:08
Previous Message Tom Lane 1999-08-30 14:33:32 Re: [HACKERS] An optimisation question