postgres/contrib/postgres_fdw
Tom Lane 9612b982b8 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:22:00 -04:00
..
expected Fix contrib/postgres_fdw's remote-estimate representation of array Params. 2014-04-16 17:22:00 -04:00
sql Fix contrib/postgres_fdw's remote-estimate representation of array Params. 2014-04-16 17:22:00 -04:00
.gitignore
connection.c Improve connection-failure error handling in contrib/postgres_fdw. 2014-02-03 21:30:28 -05:00
deparse.c Fix contrib/postgres_fdw's remote-estimate representation of array Params. 2014-04-16 17:22:00 -04:00
Makefile
option.c Improve updatability checking for views and foreign tables. 2013-06-12 17:53:33 -04:00
postgres_fdw--1.0.sql
postgres_fdw.c Fix contrib/postgres_fdw to handle multiple join conditions properly. 2014-03-07 16:36:50 -05:00
postgres_fdw.control
postgres_fdw.h Fix contrib/postgres_fdw to handle multiple join conditions properly. 2014-03-07 16:36:50 -05:00