]> granicus.if.org Git - postgresql/commit
Rewrite dblink_record_internal() and dblink_fetch() to use a tuplestore
authorJoe Conway <mail@joeconway.com>
Sun, 24 Jan 2010 22:19:38 +0000 (22:19 +0000)
committerJoe Conway <mail@joeconway.com>
Sun, 24 Jan 2010 22:19:38 +0000 (22:19 +0000)
commit56cbb611ec749ba867a4cfc09c8b7df0f4446620
tree6ff6bc9d398e1a36b66e75f63c090b169c3170ad
parent875353b99f64550c2fee1a3a8e3491e69decd9c7
Rewrite dblink_record_internal() and dblink_fetch() to use a tuplestore
(SFRM_Materialize mode) to return tuples. Since we don't return from the
dblink function in tuplestore mode, release the PGresult with a PG_CATCH
block on error. Also rearrange to share the same code to materialize the
tuplestore. Patch by Takahiro Itagaki.
contrib/dblink/dblink.c