[HACKERS] How do I get the name of the relation on which FDW has been called?

2012-05-30 Thread Atri Sharma
SELECT * FROM table1; If,for above command,fdw1 is invoked,how do I get the name/Oid of the table(i.e. table1) in fdw1? Atri -- Regards, Atri l'apprenant -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription:

Re: [HACKERS] How do I get the name of the relation on which FDW has been called?

2012-05-30 Thread Shigeru HANADA
Hi Atri, (2012/05/30 19:49), Atri Sharma wrote: SELECT * FROM table1; If,for above command,fdw1 is invoked,how do I get the name/Oid of the table(i.e. table1) in fdw1? For 9.1 and 9.0, you can get foreign table's oid as the first parameter of PlanForeignScan function. For 9.2, you can get

Re: [HACKERS] How do I get the name of the relation on which FDW has been called?

2012-05-30 Thread Atri Sharma
On Wed, May 30, 2012 at 5:15 PM, Shigeru HANADA shigeru.han...@gmail.com wrote: Hi Atri, (2012/05/30 19:49), Atri Sharma wrote: SELECT * FROM table1; If,for above command,fdw1 is invoked,how do I get the name/Oid of the table(i.e. table1) in fdw1? For 9.1 and 9.0, you can get foreign