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

From: joe(at)postgresql(dot)org (Joe Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rewrite dblink_record_internal() and dblink_fetch() to use a
Date: 2010-01-24 22:19:38
Message-ID: 20100124221938.3CD2D7541B9@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-01-25 01:58:14 pgsql: Apply Tcl_Init() to the "hold" interpreter created by pltcl.
Previous Message Tom Lane 2010-01-24 21:50:09 pgsql: Fix assorted core dumps and Assert failures that could occur