]> granicus.if.org Git - postgresql/commit
Get rid of postgres_fdw's assumption that remote type OIDs match ours.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Feb 2013 11:36:09 +0000 (06:36 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Feb 2013 11:36:54 +0000 (06:36 -0500)
commit5fd386bb31f9a8ed5058093bc3f8937fdde3dbec
tree09ef42133484a44d7625f733c5c314360b5efa9a
parent6c4f6664b201bea77eb6e3f813559e3911a5ef35
Get rid of postgres_fdw's assumption that remote type OIDs match ours.

The only place we depended on that was in sending numeric type OIDs in
PQexecParams; but we can replace that usage with explicitly casting
each Param symbol in the query string, so that the types are specified
to the remote by name not OID.  This makes no immediate difference but
will be essential if we ever hope to support use of non-builtin types.
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/postgres_fdw.c