postgresql/contrib/postgres_fdw
Tom Lane 5b68d81697 Fix contrib/postgres_fdw's remote-estimate representation of array Params.
We were emitting "(SELECT null::typename)", which is usually interpreted
as a scalar subselect, but not so much in the context "x = ANY(...)".
This led to remote-side parsing failures when remote_estimate is enabled.
A quick and ugly fix is to stick in an extra cast step,
"((SELECT null::typename)::typename)".  The cast will be thrown away as
redundant by parse analysis, but not before it's done its job of making
sure the grammar sees the ANY argument as an a_expr rather than a
select_with_parens.  Per an example from Hannu Krosing.
2014-04-16 17:21:57 -04:00
..
expected Fix contrib/postgres_fdw's remote-estimate representation of array Params. 2014-04-16 17:21:57 -04:00
sql Fix contrib/postgres_fdw's remote-estimate representation of array Params. 2014-04-16 17:21:57 -04:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c Improve connection-failure error handling in contrib/postgres_fdw. 2014-02-03 21:30:20 -05:00
deparse.c Fix contrib/postgres_fdw's remote-estimate representation of array Params. 2014-04-16 17:21:57 -04:00
Makefile Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
option.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Offer triggers on foreign tables. 2014-03-23 02:16:34 -04:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h Fix contrib/postgres_fdw to handle multiple join conditions properly. 2014-03-07 16:36:40 -05:00