Re: [HACKERS] Re: Apparent bug in _make_subplan

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: Apparent bug in _make_subplan
Date: 1999-06-18 06:28:30
Message-ID: 3769E70E.7E1616CF@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
>
> > subselect.c uses varlevelsup as absolute level number only
> > for correlation vars <--> params mapping, so why should it be
> > source of bugs? SS_replace_correlation_vars replaces all
> > correlation vars with parameters. Vars with absolute varlevelsup
> > are in PlannerParamVar only. To identify correlation vars and
> > to know is parameter already assigned to a var we obviously
> > need in absolute level number.
>
> But the varlevelsup I pass in from the parser are relative to the
> current level, not absolute.

subselect.c takes it into account, computes absolute numbers
and stores them in PlannerParamVar only...

Vadim

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Samersoff 1999-06-18 06:55:09 Re: [HACKERS] Installation procedure wishes
Previous Message Hiroshi Inoue 1999-06-18 06:11:19 RE: [HACKERS] tables > 1 gig