Fix script to handle autocommit = 'off' by prepending autocommit 'on' to
Bruce Momjian <bruce@momjian.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/scripts/clusterdb | modified | +2 −2 |
| src/bin/scripts/createdb | modified | +3 −3 |
| src/bin/scripts/createlang.sh | modified | +4 −4 |
| src/bin/scripts/createuser | modified | +2 −2 |
| src/bin/scripts/dropdb | modified | +2 −2 |
| src/bin/scripts/droplang | modified | +3 −3 |
| src/bin/scripts/dropuser | modified | +2 −2 |
| src/bin/scripts/vacuumdb | modified | +2 −2 |