Re: [HACKERS] Re: subselects

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: vadim(at)sable(dot)krasnoyarsk(dot)su (Vadim B(dot) Mikheev)
Cc: lockhart(at)alumni(dot)caltech(dot)edu, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: subselects
Date: 1998-01-15 23:26:41
Message-ID: 199801152326.SAA26747@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> typedef struct SubLink {
> NodeTag type;
> int linkType; /* EXISTS, ALL, ANY, EXPR */
> bool useor; /* TRUE for <> */
> List *lefthand; /* List of Var/Const nodes on the left */
> List *oper; /* List of Oper nodes */
> Query *subquery; /* */
> } SubLink;

OK, we add this structure above. During parsing, *subquery actually
will hold Node *parsetree, not Query *.

And add to Query:

bool hasSubLinks;

Also need a function to return a List* of SubLink*. I just did a
similar thing with Aggreg*. And Var gets:

int uplevels;

Is that it?

--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-01-15 23:41:08 Re: [HACKERS] Re: varchar() troubles (fwd)
Previous Message Bruce Momjian 1998-01-15 23:18:31 Re: [HACKERS] Re: subselects