OSDN Git Service

Fix script to handle autocommit = 'off' by prepending autocommit 'on' to
authorBruce Momjian <bruce@momjian.us>
Wed, 16 Oct 2002 03:24:09 +0000 (03:24 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 16 Oct 2002 03:24:09 +0000 (03:24 +0000)
commit5d8c67462d93b33b13fe5e45b26002b8e625002c
tree5aafb80d4146a135c7cbebc951198b0c48a64e5e
parentfacb72007333d9c0acff0f8d64b36d2c4a262665
Fix script to handle autocommit = 'off' by prepending autocommit 'on' to
the start of the psql commandline.  This is better than adding BEGIN/END
because it handles multiple queries well, and allows the return code for
psql to return the proper value.
src/bin/scripts/clusterdb
src/bin/scripts/createdb
src/bin/scripts/createlang.sh
src/bin/scripts/createuser
src/bin/scripts/dropdb
src/bin/scripts/droplang
src/bin/scripts/dropuser
src/bin/scripts/vacuumdb