Thread: pgsql: Rewrite dblink_record_internal() and dblink_fetch() to use a

pgsql: Rewrite dblink_record_internal() and dblink_fetch() to use a

From
joe@postgresql.org (Joe Conway)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/contrib/dblink:
        dblink.c (r1.86 -> r1.87)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/dblink/dblink.c?r1=1.86&r2=1.87)