]> granicus.if.org Git - postgresql/commit
Remove the last vestige of server-side autocommit.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Nov 2014 00:35:23 +0000 (19:35 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Nov 2014 00:35:23 +0000 (19:35 -0500)
commit525a489915cad1c5b2fc39e43e8005025afe63b2
tree3dc10a8ceeb8da8aba38a82f58a04bbbf62286ae
parentc30be9787bd9808631b72843b0a93f06ce775dd0
Remove the last vestige of server-side autocommit.

Long ago we briefly had an "autocommit" GUC that turned server-side
autocommit on and off.  That behavior was removed in 7.4 after concluding
that it broke far too much client-side logic, and making clients cope with
both behaviors was impractical.  But the GUC variable was left behind, so
as not to break any client code that might be trying to read its value.
Enough time has now passed that we should remove the GUC completely.
Whatever vestigial backwards-compatibility benefit it had is outweighed by
the risk of confusion for newbies who assume it ought to do something,
as per a recent complaint from Wolfgang Wilhelm.

In passing, adjust what seemed to me a rather confusing documentation
reference to libpq's autocommit behavior.  libpq as such knows nothing
about autocommit, so psql is probably what was meant.
doc/src/sgml/ecpg.sgml
src/backend/utils/misc/check_guc
src/backend/utils/misc/guc.c