Re: UNION ALL - Var attno - Mailing list pgsql-hackers

From Amit Langote
Subject Re: UNION ALL - Var attno
Date
Msg-id CA+HiwqGV51oVjj6zrPWdOLxRr+8is6nx92r4Xn4z8cspMjEXvQ@mail.gmail.com
Whole thread Raw
In response to Re: UNION ALL - Var attno  (sri harsha <sriharsha9992@gmail.com>)
List pgsql-hackers
On Fri, Apr 29, 2016 at 2:42 PM, sri harsha <sriharsha9992@gmail.com> wrote:
>
> Its not an OpExpr . It is a VAR , got it from "reltargetlist" in base
> relation ( RelOptInfo) . Can you shed some light on where the conversion
> from 141 to "original" attribute number takes place ??

As Tom said, you must be looking at an OPEXPR's opfuncid value.
Because that's what I see as being 141.

Thanks,
Amit



pgsql-hackers by date:

Previous
From: Andreas Seltenreich
Date:
Subject: [sqlsmith] Failed assertion in BecomeLockGroupLeader
Next
From: Abhijit Menon-Sen
Date:
Subject: Re: 9.6 and fsync=off