author | Sebastian Harl <sh@tokkee.org> | |
Thu, 15 Nov 2012 12:42:29 +0000 (13:42 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 15 Nov 2012 12:42:29 +0000 (13:42 +0100) | ||
commit | aabd019de0a1bd837ec770bc53ef9433cb136c12 | |
tree | 597f0599ff1f8928103e3b3b4d9455be3e347731 | tree | snapshot |
parent | 30985afc0acb34ccd92a818b42468ef8be4a8151 | commit | diff |
postgresql plugin: Simplified transaction handling a bit.
Don't set any next commit time after committing a transaction but only when
starting a new transaction. This way, db->next_commit == 0 always means that
we're outside of a transaction. Also, this removes the need to restart a
transaction right away. Rather, the write callback will take care of that the
next time it gets any data.
Don't set any next commit time after committing a transaction but only when
starting a new transaction. This way, db->next_commit == 0 always means that
we're outside of a transaction. Also, this removes the need to restart a
transaction right away. Rather, the write callback will take care of that the
next time it gets any data.
src/postgresql.c | diff | blob | history |