pgsql: Rewrite dblink_record_internal() and dblink_fetch() to use a - Mailing list pgsql-committers

From joe@postgresql.org (Joe Conway)
Subject pgsql: Rewrite dblink_record_internal() and dblink_fetch() to use a
Date
Msg-id 20100124221938.3CD2D7541B9@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix assorted core dumps and Assert failures that could occur
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Apply Tcl_Init() to the "hold" interpreter created by pltcl.