Re: filtering after join

From: andrew <andrew(dot)ylzhou(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: filtering after join
Date: 2006-01-27 09:17:48
Message-ID: 29d3b0b90601270117t2a8ec180x469b2a65f6b29a13@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I got errors in this query. I have a function complete(record) which
takes a generic record type data. But it seems cannot be applied to a
sub-select result:

backend> explain select * from (select * from Person,Auction where
Person.id=Auction.seller) as s where complete(s)
QUERY: explain select * from (select * from Person,Auction where
Person.id=Auction.seller) as s where complete(s)

ERROR: Cannot pass result of sub-select or join s to a function

On 1/27/06, andrew <andrew(dot)ylzhou(at)gmail(dot)com> wrote:
> I can see the final plan by using the EXPLAIN command. But I want to
> know the procedure of the planner in handling nesting queries. Can you
> direct me to the corresponding part of the code and/or the documents?
> Thanks.
>
> On 1/26/06, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > andrew wrote:
> > > How will the query planner do for a nesting query? Treat the
> > > subqueries as multiple queries and then link them together?
> > > where can I find the information (codes or documents)?
> >
> > Look at the execution plan using the EXPLAIN command.
> >
> > --
> > Peter Eisentraut
> > http://developer.postgresql.org/~petere/
> >
>
>
> --
> andrew
>

--
andrew

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mario Splivalo 2006-01-27 09:20:23 Re: Changing the transaction isolation level within
Previous Message andrew 2006-01-27 09:10:31 Re: filtering after join