Re: subselects

From: "Vadim B(dot) Mikheev" <vadim(at)sable(dot)krasnoyarsk(dot)su>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <hackers(at)postgreSQL(dot)org>
Subject: Re: subselects
Date: 1998-01-21 10:10:22
Message-ID: 34C5C98E.3E085F52@sable.krasnoyarsk.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
>
> We are only going to have subselects in the WHERE clause, not in the
> target list, right?
>
> The standard says we can have them either place, but I didn't think we
> were implementing the target list subselects.
>
> Is that correct?

Yes, this is right for 6.3. I hope that we'll support subselects in
target list, FROM, etc in future.

BTW, I'm going to implement subselect in (let's say) "natural" way -
without substitution of parent query relations into subselect and so on,
but by execution of (correlated) subqueries for each upper query row
(may be with cacheing of results in hash table for better performance).
Sure, this is much more clean way and much more clear how to do this.
This seems like SQL-func way, but funcs start/run/stop Executor each time
when called and this breaks performance.

Vadim

In response to

  • subselects at 1998-01-21 03:24:11 from Bruce Momjian

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Igor Sysoev 1998-01-21 13:34:25 Re: [QUESTIONS] Business cases
Previous Message Zeugswetter Andreas DBT 1998-01-21 08:42:52 Re: subselects