Re: UNION ALL - Var attno

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: sri harsha <sriharsha9992(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: UNION ALL - Var attno
Date: 2016-04-29 06:32:38
Message-ID: CA+HiwqGV51oVjj6zrPWdOLxRr+8is6nx92r4Xn4z8cspMjEXvQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Apr 29, 2016 at 2:42 PM, sri harsha <sriharsha9992(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Abhijit Menon-Sen 2016-04-29 06:35:14 Re: 9.6 and fsync=off
Previous Message Andreas Seltenreich 2016-04-29 06:31:00 [sqlsmith] Failed assertion in BecomeLockGroupLeader