aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-02-14 20:35:08 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-02-14 20:35:08 -0500
commitfdaf44862beba24c12434d31df556fab25fd3ee7 (patch)
treee77503a6c78e03b00fde01d8d24e26c3bddcf0a7 /contrib/postgres_fdw/postgres_fdw.c
parent4765dd79219b9697d84f5c2c70f3fe00455609a1 (diff)
downloadpostgresql-fdaf44862beba24c12434d31df556fab25fd3ee7.tar.gz
postgresql-fdaf44862beba24c12434d31df556fab25fd3ee7.zip
Invent pre-commit/pre-prepare/pre-subcommit events for xact callbacks.
Currently it's only possible for loadable modules to get control during post-commit cleanup of a transaction. That doesn't work too well if they want to do something that could throw an error; for example, an FDW might need to issue a remote commit, which could well fail. To improve matters, extend the existing APIs for XactCallback and SubXactCallback functions to provide new pre-commit events for this purpose. The release notes will need to mention that existing callback functions should be checked to make sure they don't do something unwanted when one of the new event types occurs. In the examples within our source tree, contrib/sepgsql was fine but plpgsql had been a bit too cute.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions