When a cursor is opened using dblink_open, only start a transaction

Joe Conway <mail@joeconway.com>

Commit: 056eb1412c864c61b26eb8d540fd92636795f67d
Author: Joe Conway <mail@joeconway.com>
Date: 2005-10-18T02:55:49Z
Releases: 8.1.0
When a cursor is opened using dblink_open, only start a transaction
if there isn't one already open. Upon dblink_close, only commit
the open transaction if it was started by dblink_open, and only
then when all cursors opened by dblink_open are closed. The transaction
accounting is done individually for all named connections, plus
the persistent unnamed connection.

Files

PathChange+/−
contrib/dblink/dblink.c modified +75 −39
contrib/dblink/expected/dblink.out modified +82 −0
contrib/dblink/sql/dblink.sql modified +36 −0