]> granicus.if.org Git - postgresql/commit
When a cursor is opened using dblink_open, only start a transaction
authorJoe Conway <mail@joeconway.com>
Tue, 18 Oct 2005 02:55:49 +0000 (02:55 +0000)
committerJoe Conway <mail@joeconway.com>
Tue, 18 Oct 2005 02:55:49 +0000 (02:55 +0000)
commit056eb1412c864c61b26eb8d540fd92636795f67d
treea69c1aaadadee895c41e7b8c04bbb9a6c4d3dd98
parentc62b29a6034b1cb16abef7012f475fbe6fedc3d5
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.
contrib/dblink/dblink.c
contrib/dblink/expected/dblink.out
contrib/dblink/sql/dblink.sql