Re: How to get value of 'Param' of the WHERE clause in the FDW?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Chichkov <dchichkov(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to get value of 'Param' of the WHERE clause in the FDW?
Date: 2015-09-25 18:54:58
Message-ID: 17474.1443207298@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dmitry Chichkov <dchichkov(at)gmail(dot)com> writes:
> Thank you for the reply! I'm trying to get the correct value and I need it
> at the execution stage. I just don't see how to get baserestrictinfo in
> the execution stage or if the 'abc123' value would be there at all...

Hm? At execution, you'd just evaluate whatever the expression is.
The planner constructs don't have much to do with that, and certainly
a Param should not be a special case in any way.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2015-09-25 18:55:52 Re: Less than ideal error reporting in pg_stat_statements
Previous Message Andres Freund 2015-09-25 18:53:44 Re: upcoming infrastructure changes/OS upgrades on *.postgresql.org