aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-05-14 03:26:03 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-05-14 03:26:03 +0000
commitf85f43dfb5b9043ea6b01d8b824c195cd7f9ed3c (patch)
tree149a8221767ed2e9c63adc58cc88c4d8faca5381 /contrib
parentd9b679c13a820eb7b464a1eeb1f177c3fea13ece (diff)
downloadpostgresql-f85f43dfb5b9043ea6b01d8b824c195cd7f9ed3c.tar.gz
postgresql-f85f43dfb5b9043ea6b01d8b824c195cd7f9ed3c.zip
Backend support for autocommit removed, per recent discussions. The
only remnant of this failed experiment is that the server will take SET AUTOCOMMIT TO ON. Still TODO: provide some client-side autocommit logic in libpq.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/adddepend/adddepend11
-rw-r--r--contrib/array/array_iterator.sql.in2
-rw-r--r--contrib/btree_gist/btree_gist.sql.in2
-rw-r--r--contrib/btree_gist/expected/btree_gist.out24
-rw-r--r--contrib/chkpass/chkpass.sql.in4
-rw-r--r--contrib/cube/cube.sql.in2
-rw-r--r--contrib/cube/expected/cube.out4
-rw-r--r--contrib/dbase/dbf2pg.c2
-rw-r--r--contrib/dblink/expected/dblink.out8
-rw-r--r--contrib/dblink/sql/dblink.sql9
-rw-r--r--contrib/dbmirror/AddTrigger.sql2
-rwxr-xr-xcontrib/dbmirror/DBMirror.pl12
-rw-r--r--contrib/dbmirror/MirrorSetup.sql2
-rwxr-xr-xcontrib/dbmirror/clean_pending.pl6
-rw-r--r--contrib/earthdistance/earthdistance.sql.in2
-rw-r--r--contrib/earthdistance/expected/earthdistance.out4
-rw-r--r--contrib/findoidjoins/findoidjoins.c3
-rw-r--r--contrib/fulltextindex/fti.pl1
-rw-r--r--contrib/fulltextindex/fti.sql.in2
-rw-r--r--contrib/fulltextindex/uninstall.sql2
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch.sql.in2
-rw-r--r--contrib/intagg/int_aggregate.sql.in2
-rw-r--r--contrib/intarray/_int.sql.in2
-rw-r--r--contrib/intarray/expected/_int.out4
-rw-r--r--contrib/isbn_issn/isbn_issn.sql.in6
-rw-r--r--contrib/lo/lo.sql.in4
-rw-r--r--contrib/lo/lo_drop.sql2
-rw-r--r--contrib/ltree/expected/ltree.out16
-rw-r--r--contrib/ltree/ltree.sql.in2
-rw-r--r--contrib/miscutil/misc_utils.sql.in2
-rw-r--r--contrib/noupdate/noup.sql.in2
-rw-r--r--contrib/oid2name/oid2name.c2
-rw-r--r--contrib/pg_dumplo/main.c4
-rw-r--r--contrib/pgbench/pgbench.c9
-rw-r--r--contrib/pgcrypto/pgcrypto.sql.in2
-rw-r--r--contrib/pgstattuple/pgstattuple.sql.in2
-rw-r--r--contrib/reindexdb/reindexdb10
-rwxr-xr-xcontrib/rtree_gist/bench/bench.pl7
-rw-r--r--contrib/rtree_gist/rtree_gist.sql.in2
-rw-r--r--contrib/seg/expected/seg.out18
-rw-r--r--contrib/seg/seg.sql.in2
-rw-r--r--contrib/spi/autoinc.sql.in2
-rw-r--r--contrib/spi/insert_username.sql.in2
-rw-r--r--contrib/spi/moddatetime.sql.in2
-rw-r--r--contrib/spi/refint.sql.in2
-rw-r--r--contrib/spi/timetravel.sql.in2
-rw-r--r--contrib/tablefunc/tablefunc.sql.in2
-rw-r--r--contrib/tsearch/expected/tsearch.out16
-rw-r--r--contrib/tsearch/tsearch.sql.in2
-rw-r--r--contrib/userlock/user_locks.sql.in2
-rw-r--r--contrib/vacuumlo/vacuumlo.c13
-rw-r--r--contrib/xml/pgxml.sql.in2
-rw-r--r--contrib/xml/pgxml_dom.sql.in2
53 files changed, 68 insertions, 187 deletions
diff --git a/contrib/adddepend/adddepend b/contrib/adddepend/adddepend
index 5d743ced6eb..4fa8bc5d386 100755
--- a/contrib/adddepend/adddepend
+++ b/contrib/adddepend/adddepend
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: adddepend,v 1.3 2002/12/02 00:28:29 tgl Exp $
+# $Id: adddepend,v 1.4 2003/05/14 03:25:55 tgl Exp $
# Project exists to assist PostgreSQL users with their structural upgrade
# from 7.2 (or prior) to 7.3 (possibly later). Must be run against a 7.3
@@ -125,20 +125,13 @@ my $dbh = DBI->connect($dsn, $dbuser, $dbpass);
# We want to control commits
$dbh->{'AutoCommit'} = 0;
-# turn on autocommit
+# control where things get created
my $sql = qq{
SET search_path = public;
};
my $sth = $dbh->prepare($sql);
$sth->execute();
-# turn on autocommit
-my $sql2 = qq{
- SET autocommit TO 'on';
-};
-my $sth2 = $dbh->prepare($sql2);
-$sth2->execute();
-
END {
$dbh->disconnect() if $dbh;
}
diff --git a/contrib/array/array_iterator.sql.in b/contrib/array/array_iterator.sql.in
index cf3331a387b..4108a63eafd 100644
--- a/contrib/array/array_iterator.sql.in
+++ b/contrib/array/array_iterator.sql.in
@@ -6,8 +6,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION array_texteq(_text, text)
RETURNS bool
AS 'MODULE_PATHNAME'
diff --git a/contrib/btree_gist/btree_gist.sql.in b/contrib/btree_gist/btree_gist.sql.in
index 4f0b1291df9..70db5a860da 100644
--- a/contrib/btree_gist/btree_gist.sql.in
+++ b/contrib/btree_gist/btree_gist.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
-- create type of int2 key
CREATE FUNCTION int2key_in(cstring)
RETURNS int2key
diff --git a/contrib/btree_gist/expected/btree_gist.out b/contrib/btree_gist/expected/btree_gist.out
index 3cd35992e44..497740062d3 100644
--- a/contrib/btree_gist/expected/btree_gist.out
+++ b/contrib/btree_gist/expected/btree_gist.out
@@ -3,18 +3,18 @@
-- does not depend on contents of btree_gist.sql.
--
\set ECHO none
-psql:btree_gist.sql:10: NOTICE: ProcedureCreate: type int2key is not yet defined
-psql:btree_gist.sql:15: NOTICE: Argument type "int2key" is only a shell
-psql:btree_gist.sql:27: NOTICE: ProcedureCreate: type int4key is not yet defined
-psql:btree_gist.sql:32: NOTICE: Argument type "int4key" is only a shell
-psql:btree_gist.sql:44: NOTICE: ProcedureCreate: type int8key is not yet defined
-psql:btree_gist.sql:49: NOTICE: Argument type "int8key" is only a shell
-psql:btree_gist.sql:61: NOTICE: ProcedureCreate: type float4key is not yet defined
-psql:btree_gist.sql:66: NOTICE: Argument type "float4key" is only a shell
-psql:btree_gist.sql:79: NOTICE: ProcedureCreate: type float8key is not yet defined
-psql:btree_gist.sql:84: NOTICE: Argument type "float8key" is only a shell
-psql:btree_gist.sql:394: NOTICE: ProcedureCreate: type tskey is not yet defined
-psql:btree_gist.sql:399: NOTICE: Argument type "tskey" is only a shell
+psql:btree_gist.sql:8: NOTICE: ProcedureCreate: type int2key is not yet defined
+psql:btree_gist.sql:13: NOTICE: Argument type "int2key" is only a shell
+psql:btree_gist.sql:25: NOTICE: ProcedureCreate: type int4key is not yet defined
+psql:btree_gist.sql:30: NOTICE: Argument type "int4key" is only a shell
+psql:btree_gist.sql:42: NOTICE: ProcedureCreate: type int8key is not yet defined
+psql:btree_gist.sql:47: NOTICE: Argument type "int8key" is only a shell
+psql:btree_gist.sql:59: NOTICE: ProcedureCreate: type float4key is not yet defined
+psql:btree_gist.sql:64: NOTICE: Argument type "float4key" is only a shell
+psql:btree_gist.sql:77: NOTICE: ProcedureCreate: type float8key is not yet defined
+psql:btree_gist.sql:82: NOTICE: Argument type "float8key" is only a shell
+psql:btree_gist.sql:392: NOTICE: ProcedureCreate: type tskey is not yet defined
+psql:btree_gist.sql:397: NOTICE: Argument type "tskey" is only a shell
CREATE TABLE int4tmp (b int4);
\copy int4tmp from 'data/test_btree.data'
CREATE TABLE int8tmp (b int8);
diff --git a/contrib/chkpass/chkpass.sql.in b/contrib/chkpass/chkpass.sql.in
index 231cf99a12c..418c016cf3d 100644
--- a/contrib/chkpass/chkpass.sql.in
+++ b/contrib/chkpass/chkpass.sql.in
@@ -4,7 +4,7 @@
-- darcy@druid.net
-- http://www.druid.net/darcy/
--
--- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.3 2002/10/18 18:41:19 momjian Exp $
+-- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.4 2003/05/14 03:25:55 tgl Exp $
--
-- best viewed with tabs set to 4
--
@@ -16,8 +16,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE FUNCTION chkpass_in(cstring)
RETURNS chkpass
AS 'MODULE_PATHNAME'
diff --git a/contrib/cube/cube.sql.in b/contrib/cube/cube.sql.in
index e79eb5263c8..6afcce5aeba 100644
--- a/contrib/cube/cube.sql.in
+++ b/contrib/cube/cube.sql.in
@@ -4,8 +4,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION cube_in(cstring)
RETURNS cube
AS 'MODULE_PATHNAME'
diff --git a/contrib/cube/expected/cube.out b/contrib/cube/expected/cube.out
index 3a1e670d66b..aeda8314d77 100644
--- a/contrib/cube/expected/cube.out
+++ b/contrib/cube/expected/cube.out
@@ -6,8 +6,8 @@
-- does not depend on contents of cube.sql.
--
\set ECHO none
-psql:cube.sql:12: NOTICE: ProcedureCreate: type cube is not yet defined
-psql:cube.sql:17: NOTICE: Argument type "cube" is only a shell
+psql:cube.sql:10: NOTICE: ProcedureCreate: type cube is not yet defined
+psql:cube.sql:15: NOTICE: Argument type "cube" is only a shell
--
-- testing the input and output functions
--
diff --git a/contrib/dbase/dbf2pg.c b/contrib/dbase/dbf2pg.c
index 5f673837258..b57b5c76885 100644
--- a/contrib/dbase/dbf2pg.c
+++ b/contrib/dbase/dbf2pg.c
@@ -861,8 +861,6 @@ main(int argc, char **argv)
PQexec(conn, "SET search_path = public");
- PQexec(conn, "SET autocommit TO 'on'");
-
/* Substitute field names */
do_substitute(subarg, dbh);
diff --git a/contrib/dblink/expected/dblink.out b/contrib/dblink/expected/dblink.out
index ed3a87cfa0e..945f1bd16a4 100644
--- a/contrib/dblink/expected/dblink.out
+++ b/contrib/dblink/expected/dblink.out
@@ -190,7 +190,7 @@ WHERE t.a > 7;
ERROR: dblink: no connection available
-- put more data into our slave table, first using arbitrary connection syntax
-- but truncate the actual return value so we can use diff to check for success
-SELECT substr(dblink_exec('dbname=regression','SET autocommit TO ''on'';INSERT INTO foo VALUES(10,''k'',''{"a10","b10","c10"}'')'),1,6);
+SELECT substr(dblink_exec('dbname=regression','INSERT INTO foo VALUES(10,''k'',''{"a10","b10","c10"}'')'),1,6);
substr
--------
INSERT
@@ -205,7 +205,7 @@ SELECT dblink_connect('dbname=regression');
-- put more data into our slave table, using persistent connection syntax
-- but truncate the actual return value so we can use diff to check for success
-SELECT substr(dblink_exec('SET autocommit TO ''on'';INSERT INTO foo VALUES(11,''l'',''{"a11","b11","c11"}'')'),1,6);
+SELECT substr(dblink_exec('INSERT INTO foo VALUES(11,''l'',''{"a11","b11","c11"}'')'),1,6);
substr
--------
INSERT
@@ -231,7 +231,7 @@ FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[]);
(12 rows)
-- change some data
-SELECT dblink_exec('SET autocommit TO ''on'';UPDATE foo SET f3[2] = ''b99'' WHERE f1 = 11');
+SELECT dblink_exec('UPDATE foo SET f3[2] = ''b99'' WHERE f1 = 11');
dblink_exec
-------------
UPDATE 1
@@ -247,7 +247,7 @@ WHERE a = 11;
(1 row)
-- delete some data
-SELECT dblink_exec('SET autocommit TO ''on'';DELETE FROM foo WHERE f1 = 11');
+SELECT dblink_exec('DELETE FROM foo WHERE f1 = 11');
dblink_exec
-------------
DELETE 1
diff --git a/contrib/dblink/sql/dblink.sql b/contrib/dblink/sql/dblink.sql
index 4d534e50c1c..f041e0a770f 100644
--- a/contrib/dblink/sql/dblink.sql
+++ b/contrib/dblink/sql/dblink.sql
@@ -8,7 +8,6 @@ SET search_path = public;
-- Turn off echoing so that expected file does not depend on
-- contents of dblink.sql.
\set ECHO none
-SET autocommit TO 'on';
\i dblink.sql
\set ECHO all
@@ -113,21 +112,21 @@ WHERE t.a > 7;
-- put more data into our slave table, first using arbitrary connection syntax
-- but truncate the actual return value so we can use diff to check for success
-SELECT substr(dblink_exec('dbname=regression','SET autocommit TO ''on'';INSERT INTO foo VALUES(10,''k'',''{"a10","b10","c10"}'')'),1,6);
+SELECT substr(dblink_exec('dbname=regression','INSERT INTO foo VALUES(10,''k'',''{"a10","b10","c10"}'')'),1,6);
-- create a persistent connection
SELECT dblink_connect('dbname=regression');
-- put more data into our slave table, using persistent connection syntax
-- but truncate the actual return value so we can use diff to check for success
-SELECT substr(dblink_exec('SET autocommit TO ''on'';INSERT INTO foo VALUES(11,''l'',''{"a11","b11","c11"}'')'),1,6);
+SELECT substr(dblink_exec('INSERT INTO foo VALUES(11,''l'',''{"a11","b11","c11"}'')'),1,6);
-- let's see it
SELECT *
FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[]);
-- change some data
-SELECT dblink_exec('SET autocommit TO ''on'';UPDATE foo SET f3[2] = ''b99'' WHERE f1 = 11');
+SELECT dblink_exec('UPDATE foo SET f3[2] = ''b99'' WHERE f1 = 11');
-- let's see it
SELECT *
@@ -135,7 +134,7 @@ FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[])
WHERE a = 11;
-- delete some data
-SELECT dblink_exec('SET autocommit TO ''on'';DELETE FROM foo WHERE f1 = 11');
+SELECT dblink_exec('DELETE FROM foo WHERE f1 = 11');
-- let's see it
SELECT *
diff --git a/contrib/dbmirror/AddTrigger.sql b/contrib/dbmirror/AddTrigger.sql
index de07c3ae00e..97150d3aa79 100644
--- a/contrib/dbmirror/AddTrigger.sql
+++ b/contrib/dbmirror/AddTrigger.sql
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE TRIGGER "MyTableName_Trig"
AFTER INSERT OR DELETE OR UPDATE ON "MyTableName"
FOR EACH ROW EXECUTE PROCEDURE "recordchange" ();
diff --git a/contrib/dbmirror/DBMirror.pl b/contrib/dbmirror/DBMirror.pl
index a442502ba4e..7eeffd7f482 100755
--- a/contrib/dbmirror/DBMirror.pl
+++ b/contrib/dbmirror/DBMirror.pl
@@ -33,7 +33,7 @@
#
#
##############################################################################
-# $Id: DBMirror.pl,v 1.5 2002/12/05 21:03:51 momjian Exp $
+# $Id: DBMirror.pl,v 1.6 2003/05/14 03:25:55 tgl Exp $
#
##############################################################################
@@ -135,15 +135,6 @@ sub Main() {
die;
}
- my $setQuery2;
- $setQuery2 = "SET autocommit TO 'on'";
- my $setResult2 = $masterConn->exec($setQuery2);
- if($setResult2->resultStatus!=PGRES_COMMAND_OK) {
- logErrorMessage($masterConn->errorMessage . "\n" .
- $setQuery2);
- die;
- }
-
my $firstTime = 1;
while(1) {
if($firstTime == 0) {
@@ -158,7 +149,6 @@ sub Main() {
- sendQueryToSlaves(undef,"SET autocommit TO 'on'");
sendQueryToSlaves(undef,"SET TRANSACTION ISOLATION LEVEL SERIALIZABLE");
sendQueryToSlaves(undef,"SET CONSTRAINTS ALL DEFERRED");
diff --git a/contrib/dbmirror/MirrorSetup.sql b/contrib/dbmirror/MirrorSetup.sql
index 7f54fa29672..4227ca5f396 100644
--- a/contrib/dbmirror/MirrorSetup.sql
+++ b/contrib/dbmirror/MirrorSetup.sql
@@ -1,6 +1,4 @@
-SET autocommit TO 'on';
-
CREATE FUNCTION "recordchange" () RETURNS trigger AS
'/usr/local/pgsql/lib/pending.so', 'recordchange' LANGUAGE 'C';
diff --git a/contrib/dbmirror/clean_pending.pl b/contrib/dbmirror/clean_pending.pl
index a74ea24700b..9fba2610a11 100755
--- a/contrib/dbmirror/clean_pending.pl
+++ b/contrib/dbmirror/clean_pending.pl
@@ -16,7 +16,7 @@
# GNU General Public License for more details.
#
##############################################################################
-# $Id: clean_pending.pl,v 1.2 2002/10/18 18:41:19 momjian Exp $
+# $Id: clean_pending.pl,v 1.3 2003/05/14 03:25:55 tgl Exp $
##############################################################################
@@ -69,10 +69,6 @@ unless($dbConn->status == PGRES_CONNECTION_OK) {
printf("Can't connect to database\n");
die;
}
-my $setresult = $dbConn->exec("SET autocommit TO 'on'");
-unless($setresult->resultStatus == PGRES_COMMAND_OK) {
- die $dbConn->errorMessage;
-}
my $result = $dbConn->exec("BEGIN");
unless($result->resultStatus == PGRES_COMMAND_OK) {
die $dbConn->errorMessage;
diff --git a/contrib/earthdistance/earthdistance.sql.in b/contrib/earthdistance/earthdistance.sql.in
index 6ee9a87b4ff..6520c6eb415 100644
--- a/contrib/earthdistance/earthdistance.sql.in
+++ b/contrib/earthdistance/earthdistance.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
-- The earth functions rely on contrib/cube having been installed and loaded.
-- earth() returns the radius of the earth in meters. This is the only
diff --git a/contrib/earthdistance/expected/earthdistance.out b/contrib/earthdistance/expected/earthdistance.out
index 963c3b11b06..e1aadef9c74 100644
--- a/contrib/earthdistance/expected/earthdistance.out
+++ b/contrib/earthdistance/expected/earthdistance.out
@@ -6,8 +6,8 @@
-- does not depend on contents of earthdistance.sql or cube.sql.
--
\set ECHO none
-psql:../cube/cube.sql:12: NOTICE: ProcedureCreate: type cube is not yet defined
-psql:../cube/cube.sql:17: NOTICE: Argument type "cube" is only a shell
+psql:../cube/cube.sql:10: NOTICE: ProcedureCreate: type cube is not yet defined
+psql:../cube/cube.sql:15: NOTICE: Argument type "cube" is only a shell
--
-- The radius of the Earth we are using.
--
diff --git a/contrib/findoidjoins/findoidjoins.c b/contrib/findoidjoins/findoidjoins.c
index 464660bd13c..8eb27e42a51 100644
--- a/contrib/findoidjoins/findoidjoins.c
+++ b/contrib/findoidjoins/findoidjoins.c
@@ -3,7 +3,7 @@
*
* Copyright 2002 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/contrib/findoidjoins/Attic/findoidjoins.c,v 1.19 2002/10/18 18:41:20 momjian Exp $
+ * $Header: /cvsroot/pgsql/contrib/findoidjoins/Attic/findoidjoins.c,v 1.20 2003/05/14 03:25:56 tgl Exp $
*/
#include "postgres_fe.h"
@@ -49,7 +49,6 @@ main(int argc, char **argv)
appendPQExpBuffer(&sql, "%s",
"SET search_path = public;"
- "SET autocommit TO 'on';"
"SELECT c.relname, (SELECT nspname FROM "
"pg_catalog.pg_namespace n WHERE n.oid = c.relnamespace) AS nspname "
"FROM pg_catalog.pg_class c "
diff --git a/contrib/fulltextindex/fti.pl b/contrib/fulltextindex/fti.pl
index 60c7d97c6bd..17f000149b7 100644
--- a/contrib/fulltextindex/fti.pl
+++ b/contrib/fulltextindex/fti.pl
@@ -167,7 +167,6 @@ sub main {
}
PQexec($PG_CONN, "SET search_path = public");
- PQexec($PG_CONN, "SET autocommit TO 'on'");
PQexec($PG_CONN, "begin");
$query = "declare C cursor for select (\"";
diff --git a/contrib/fulltextindex/fti.sql.in b/contrib/fulltextindex/fti.sql.in
index d109aa9a107..93eff0f633d 100644
--- a/contrib/fulltextindex/fti.sql.in
+++ b/contrib/fulltextindex/fti.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION fti() RETURNS trigger AS
'MODULE_PATHNAME', 'fti'
LANGUAGE 'C' VOLATILE CALLED ON NULL INPUT;
diff --git a/contrib/fulltextindex/uninstall.sql b/contrib/fulltextindex/uninstall.sql
index 5a330546ab0..a06bab860f1 100644
--- a/contrib/fulltextindex/uninstall.sql
+++ b/contrib/fulltextindex/uninstall.sql
@@ -1,6 +1,4 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
DROP FUNCTION fti() CASCADE;
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.sql.in b/contrib/fuzzystrmatch/fuzzystrmatch.sql.in
index 3dc2888f40a..c548b8ba9f2 100644
--- a/contrib/fuzzystrmatch/fuzzystrmatch.sql.in
+++ b/contrib/fuzzystrmatch/fuzzystrmatch.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE FUNCTION levenshtein (text,text)
RETURNS int
AS 'MODULE_PATHNAME','levenshtein'
diff --git a/contrib/intagg/int_aggregate.sql.in b/contrib/intagg/int_aggregate.sql.in
index 8e929a60479..31279c5b33f 100644
--- a/contrib/intagg/int_aggregate.sql.in
+++ b/contrib/intagg/int_aggregate.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
-- Internal function for the aggregate
-- Is called for each item in an aggregation
CREATE OR REPLACE FUNCTION int_agg_state (int4, int4)
diff --git a/contrib/intarray/_int.sql.in b/contrib/intarray/_int.sql.in
index c75916507f6..21786e51e7a 100644
--- a/contrib/intarray/_int.sql.in
+++ b/contrib/intarray/_int.sql.in
@@ -6,8 +6,6 @@
-- opclasses get created.
SET search_path = public;
-SET autocommit TO 'on';
-
-- Query type
CREATE FUNCTION bqarr_in(cstring)
RETURNS query_int
diff --git a/contrib/intarray/expected/_int.out b/contrib/intarray/expected/_int.out
index b29cf0b0ee0..b602df33d83 100644
--- a/contrib/intarray/expected/_int.out
+++ b/contrib/intarray/expected/_int.out
@@ -3,8 +3,8 @@
-- does not depend on contents of seg.sql.
--
\set ECHO none
-psql:_int.sql:15: NOTICE: ProcedureCreate: type query_int is not yet defined
-psql:_int.sql:20: NOTICE: Argument type "query_int" is only a shell
+psql:_int.sql:13: NOTICE: ProcedureCreate: type query_int is not yet defined
+psql:_int.sql:18: NOTICE: Argument type "query_int" is only a shell
SELECT intset(1234);
intset
--------
diff --git a/contrib/isbn_issn/isbn_issn.sql.in b/contrib/isbn_issn/isbn_issn.sql.in
index fc9aef97ce8..d1130967f42 100644
--- a/contrib/isbn_issn/isbn_issn.sql.in
+++ b/contrib/isbn_issn/isbn_issn.sql.in
@@ -1,14 +1,12 @@
--
-- PostgreSQL code for ISSNs.
--
--- $Id: isbn_issn.sql.in,v 1.7 2002/10/18 18:41:20 momjian Exp $
+-- $Id: isbn_issn.sql.in,v 1.8 2003/05/14 03:25:56 tgl Exp $
--
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
--
-- Input and output functions and the type itself:
--
@@ -124,7 +122,7 @@ CREATE OPERATOR <> (
--
-- PostgreSQL code for ISBNs.
--
--- $Id: isbn_issn.sql.in,v 1.7 2002/10/18 18:41:20 momjian Exp $
+-- $Id: isbn_issn.sql.in,v 1.8 2003/05/14 03:25:56 tgl Exp $
--
--
-- Input and output functions and the type itself:
diff --git a/contrib/lo/lo.sql.in b/contrib/lo/lo.sql.in
index 68c0114a5f0..f043363301f 100644
--- a/contrib/lo/lo.sql.in
+++ b/contrib/lo/lo.sql.in
@@ -1,7 +1,7 @@
--
-- PostgreSQL code for LargeObjects
--
--- $Id: lo.sql.in,v 1.9 2002/12/31 10:22:03 inoue Exp $
+-- $Id: lo.sql.in,v 1.10 2003/05/14 03:25:56 tgl Exp $
--
--
-- Create the data type
@@ -12,8 +12,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE FUNCTION lo_in(cstring)
RETURNS lo
AS 'MODULE_PATHNAME'
diff --git a/contrib/lo/lo_drop.sql b/contrib/lo/lo_drop.sql
index d7f34f8bed5..c6c491b2c1f 100644
--- a/contrib/lo/lo_drop.sql
+++ b/contrib/lo/lo_drop.sql
@@ -6,8 +6,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
-- remove our test table
DROP TABLE a;
diff --git a/contrib/ltree/expected/ltree.out b/contrib/ltree/expected/ltree.out
index 01246444f89..d856f0dbabc 100644
--- a/contrib/ltree/expected/ltree.out
+++ b/contrib/ltree/expected/ltree.out
@@ -1,12 +1,12 @@
\set ECHO none
-psql:ltree.sql:9: NOTICE: ProcedureCreate: type ltree is not yet defined
-psql:ltree.sql:14: NOTICE: Argument type "ltree" is only a shell
-psql:ltree.sql:301: NOTICE: ProcedureCreate: type lquery is not yet defined
-psql:ltree.sql:306: NOTICE: Argument type "lquery" is only a shell
-psql:ltree.sql:412: NOTICE: ProcedureCreate: type ltxtquery is not yet defined
-psql:ltree.sql:417: NOTICE: Argument type "ltxtquery" is only a shell
-psql:ltree.sql:479: NOTICE: ProcedureCreate: type ltree_gist is not yet defined
-psql:ltree.sql:484: NOTICE: Argument type "ltree_gist" is only a shell
+psql:ltree.sql:7: NOTICE: ProcedureCreate: type ltree is not yet defined
+psql:ltree.sql:12: NOTICE: Argument type "ltree" is only a shell
+psql:ltree.sql:299: NOTICE: ProcedureCreate: type lquery is not yet defined
+psql:ltree.sql:304: NOTICE: Argument type "lquery" is only a shell
+psql:ltree.sql:410: NOTICE: ProcedureCreate: type ltxtquery is not yet defined
+psql:ltree.sql:415: NOTICE: Argument type "ltxtquery" is only a shell
+psql:ltree.sql:477: NOTICE: ProcedureCreate: type ltree_gist is not yet defined
+psql:ltree.sql:482: NOTICE: Argument type "ltree_gist" is only a shell
SELECT ''::ltree;
ltree
-------
diff --git a/contrib/ltree/ltree.sql.in b/contrib/ltree/ltree.sql.in
index 2f267b9828a..7d8bdc35240 100644
--- a/contrib/ltree/ltree.sql.in
+++ b/contrib/ltree/ltree.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE FUNCTION ltree_in(cstring)
RETURNS ltree
AS 'MODULE_PATHNAME'
diff --git a/contrib/miscutil/misc_utils.sql.in b/contrib/miscutil/misc_utils.sql.in
index ddf32748137..b7e0a8b3671 100644
--- a/contrib/miscutil/misc_utils.sql.in
+++ b/contrib/miscutil/misc_utils.sql.in
@@ -13,8 +13,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION backend_pid()
RETURNS int4
AS 'MODULE_PATHNAME'
diff --git a/contrib/noupdate/noup.sql.in b/contrib/noupdate/noup.sql.in
index 47213779b46..32a047447f3 100644
--- a/contrib/noupdate/noup.sql.in
+++ b/contrib/noupdate/noup.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION noup ()
RETURNS trigger
AS 'MODULE_PATHNAME'
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c
index d6cb526a1a5..a5c18d761f8 100644
--- a/contrib/oid2name/oid2name.c
+++ b/contrib/oid2name/oid2name.c
@@ -247,8 +247,6 @@ sql_conn(const char *dbName, struct options * my_opts)
sql_exec(conn, "SET search_path = public;", 0);
- sql_exec(conn, "SET autocommit TO 'on';", 0);
-
/* return the conn if good */
return conn;
}
diff --git a/contrib/pg_dumplo/main.c b/contrib/pg_dumplo/main.c
index e0758f35443..b6783c23efa 100644
--- a/contrib/pg_dumplo/main.c
+++ b/contrib/pg_dumplo/main.c
@@ -1,7 +1,7 @@
/* -------------------------------------------------------------------------
* pg_dumplo
*
- * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.15 2003/01/09 18:27:39 tgl Exp $
+ * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.16 2003/05/14 03:25:56 tgl Exp $
*
* Karel Zak 1999-2000
* -------------------------------------------------------------------------
@@ -191,8 +191,6 @@ main(int argc, char **argv)
PQexec(pgLO->conn, "SET search_path = public");
- PQexec(pgLO->conn, "SET autocommit TO 'on'");
-
PQexec(pgLO->conn, "BEGIN");
switch (pgLO->action)
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index 1f64e9dc0e2..b41b8641b3c 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -1,5 +1,5 @@
/*
- * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.22 2002/10/20 19:38:10 tgl Exp $
+ * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.23 2003/05/14 03:25:56 tgl Exp $
*
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
* written by Tatsuo Ishii
@@ -147,13 +147,6 @@ doConnect()
exit(1);
}
PQclear(res);
- res = PQexec(con, "SET autocommit TO 'on'");
- if (PQresultStatus(res) != PGRES_COMMAND_OK)
- {
- fprintf(stderr, "%s", PQerrorMessage(con));
- exit(1);
- }
- PQclear(res);
return (con);
}
diff --git a/contrib/pgcrypto/pgcrypto.sql.in b/contrib/pgcrypto/pgcrypto.sql.in
index 0f3cbe537a0..31e1773a417 100644
--- a/contrib/pgcrypto/pgcrypto.sql.in
+++ b/contrib/pgcrypto/pgcrypto.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION digest(text, text)
RETURNS bytea
AS 'MODULE_PATHNAME', 'pg_digest'
diff --git a/contrib/pgstattuple/pgstattuple.sql.in b/contrib/pgstattuple/pgstattuple.sql.in
index 5489c938121..c32c00ba3fe 100644
--- a/contrib/pgstattuple/pgstattuple.sql.in
+++ b/contrib/pgstattuple/pgstattuple.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
DROP TYPE pgstattuple_type CASCADE;
CREATE TYPE pgstattuple_type AS (
table_len BIGINT, -- physical table length in bytes
diff --git a/contrib/reindexdb/reindexdb b/contrib/reindexdb/reindexdb
index f0dd79930a3..b1cea9201a6 100644
--- a/contrib/reindexdb/reindexdb
+++ b/contrib/reindexdb/reindexdb
@@ -1,6 +1,6 @@
#!/bin/sh
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
-# Package : reindexdb Version : $Revision: 1.3 $
+# Package : reindexdb Version : $Revision: 1.4 $
# Date : 05/08/2002 Author : Shaun Thomas
# Req : psql, sh, perl, sed Type : Utility
#
@@ -193,11 +193,11 @@ fi
# If index was set, reindex that index.
if [ "$index" ]; then
- $PSQL $PSQLOPT $ECHOOPT -c "SET autocommit TO 'on';REINDEX INDEX $index" -d $dbname
+ $PSQL $PSQLOPT $ECHOOPT -c "REINDEX INDEX $index" -d $dbname
# Ok, no index. Is there a specific table to reindex?
elif [ "$table" ]; then
- $PSQL $PSQLOPT $ECHOOPT -c "SET autocommit TO 'on';REINDEX TABLE \"$table\"" -d $dbname
+ $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$table\"" -d $dbname
# No specific table, no specific index, either we have a specific database,
# or were told to do all databases. Do it!
@@ -213,9 +213,9 @@ else
# Ok, reindex every table in the database. Use the same method
# we used to get a list of databases, and get a list of tables in this
# database that we may reindex.
- tables=`$PSQL $PSQLOPT -q -t -A -d $db -c "SET autocommit TO 'on';$sql"`
+ tables=`$PSQL $PSQLOPT -q -t -A -d $db -c "$sql"`
for tab in $tables; do
- $PSQL $PSQLOPT $ECHOOPT -c "SET autocommit TO 'on';REINDEX TABLE \"$tab\"" -d $db
+ $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$tab\"" -d $db
done
done
diff --git a/contrib/rtree_gist/bench/bench.pl b/contrib/rtree_gist/bench/bench.pl
index e42ec9c63a3..e73fd2671cd 100755
--- a/contrib/rtree_gist/bench/bench.pl
+++ b/contrib/rtree_gist/bench/bench.pl
@@ -32,13 +32,6 @@ my $setsql = qq{
my $sth = $dbi->prepare($setsql);
$sth->execute();
-my $setsql2 = qq{
- SET autocommit TO 'on';
-};
-
-my $sth2 = $dbi->prepare($setsql2);
-$sth2->execute();
-
my $sql;
my $notice;
my $sss = '(3000,3000,2990,2990)';
diff --git a/contrib/rtree_gist/rtree_gist.sql.in b/contrib/rtree_gist/rtree_gist.sql.in
index f7ad2748bc2..c721694f390 100644
--- a/contrib/rtree_gist/rtree_gist.sql.in
+++ b/contrib/rtree_gist/rtree_gist.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
--
--
--
diff --git a/contrib/seg/expected/seg.out b/contrib/seg/expected/seg.out
index bf075593c94..5c0c1fceaa8 100644
--- a/contrib/seg/expected/seg.out
+++ b/contrib/seg/expected/seg.out
@@ -6,8 +6,8 @@
-- does not depend on contents of seg.sql.
--
\set ECHO none
-psql:seg.sql:12: NOTICE: ProcedureCreate: type seg is not yet defined
-psql:seg.sql:17: NOTICE: Argument type "seg" is only a shell
+psql:seg.sql:10: NOTICE: ProcedureCreate: type seg is not yet defined
+psql:seg.sql:15: NOTICE: Argument type "seg" is only a shell
--
-- testing the input and output functions
--
@@ -395,25 +395,25 @@ SELECT '100(+-)1'::seg AS seg;
SELECT ''::seg AS seg;
ERROR: seg_in: can't parse an empty string
SELECT 'ABC'::seg AS seg;
-ERROR: parse error at or near position 1, character ('A', \101), input: 'ABC'
+ERROR: syntax error at or near position 1, character ('A', \101), input: 'ABC'
SELECT '1ABC'::seg AS seg;
-ERROR: parse error at or near position 2, character ('A', \101), input: '1ABC'
+ERROR: syntax error at or near position 2, character ('A', \101), input: '1ABC'
SELECT '1.'::seg AS seg;
-ERROR: parse error at or near position 2, character ('.', \056), input: '1.'
+ERROR: syntax error at or near position 2, character ('.', \056), input: '1.'
SELECT '1.....'::seg AS seg;
-ERROR: parse error at or near position 6, character ('.', \056), input: '1.....'
+ERROR: syntax error at or near position 6, character ('.', \056), input: '1.....'
SELECT '.1'::seg AS seg;
-ERROR: parse error at or near position 2, character ('1', \061), input: '.1'
+ERROR: syntax error at or near position 2, character ('1', \061), input: '.1'
SELECT '1..2.'::seg AS seg;
-ERROR: parse error at or near position 5, character ('.', \056), input: '1..2.'
+ERROR: syntax error at or near position 5, character ('.', \056), input: '1..2.'
SELECT '1 e7'::seg AS seg;
-ERROR: parse error at or near position 3, character ('e', \145), input: '1 e7'
+ERROR: syntax error at or near position 3, character ('e', \145), input: '1 e7'
SELECT '1e700'::seg AS seg;
ERROR: numeric value 1e700 unrepresentable
diff --git a/contrib/seg/seg.sql.in b/contrib/seg/seg.sql.in
index 42e2deec4bf..a1e7e0cf488 100644
--- a/contrib/seg/seg.sql.in
+++ b/contrib/seg/seg.sql.in
@@ -4,8 +4,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE FUNCTION seg_in(cstring)
RETURNS seg
AS 'MODULE_PATHNAME'
diff --git a/contrib/spi/autoinc.sql.in b/contrib/spi/autoinc.sql.in
index cec50b61895..75889b3786d 100644
--- a/contrib/spi/autoinc.sql.in
+++ b/contrib/spi/autoinc.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION autoinc()
RETURNS trigger
AS 'MODULE_PATHNAME'
diff --git a/contrib/spi/insert_username.sql.in b/contrib/spi/insert_username.sql.in
index c8c67665799..3d096592d29 100644
--- a/contrib/spi/insert_username.sql.in
+++ b/contrib/spi/insert_username.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION insert_username()
RETURNS trigger
AS 'MODULE_PATHNAME'
diff --git a/contrib/spi/moddatetime.sql.in b/contrib/spi/moddatetime.sql.in
index e89c37e6d52..9bdaa9aefe0 100644
--- a/contrib/spi/moddatetime.sql.in
+++ b/contrib/spi/moddatetime.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION moddatetime()
RETURNS trigger
AS 'MODULE_PATHNAME'
diff --git a/contrib/spi/refint.sql.in b/contrib/spi/refint.sql.in
index 322de9521e5..14b135e2580 100644
--- a/contrib/spi/refint.sql.in
+++ b/contrib/spi/refint.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION check_primary_key()
RETURNS trigger
AS 'MODULE_PATHNAME'
diff --git a/contrib/spi/timetravel.sql.in b/contrib/spi/timetravel.sql.in
index b297a23ec27..f20e9fedf64 100644
--- a/contrib/spi/timetravel.sql.in
+++ b/contrib/spi/timetravel.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION timetravel()
RETURNS trigger
AS 'MODULE_PATHNAME'
diff --git a/contrib/tablefunc/tablefunc.sql.in b/contrib/tablefunc/tablefunc.sql.in
index 3055d9cab0f..3271d280649 100644
--- a/contrib/tablefunc/tablefunc.sql.in
+++ b/contrib/tablefunc/tablefunc.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION normal_rand(int4, float8, float8, int4)
RETURNS setof float8
AS 'MODULE_PATHNAME','normal_rand'
diff --git a/contrib/tsearch/expected/tsearch.out b/contrib/tsearch/expected/tsearch.out
index 91f28dd47d7..6b92d45f7ca 100644
--- a/contrib/tsearch/expected/tsearch.out
+++ b/contrib/tsearch/expected/tsearch.out
@@ -3,14 +3,14 @@
-- does not depend on contents of seg.sql.
--
\set ECHO none
-psql:tsearch.sql:11: NOTICE: ProcedureCreate: type txtidx is not yet defined
-psql:tsearch.sql:16: NOTICE: Argument type "txtidx" is only a shell
-psql:tsearch.sql:40: NOTICE: ProcedureCreate: type query_txt is not yet defined
-psql:tsearch.sql:45: NOTICE: Argument type "query_txt" is only a shell
-psql:tsearch.sql:57: NOTICE: ProcedureCreate: type mquery_txt is not yet defined
-psql:tsearch.sql:63: NOTICE: Argument type "mquery_txt" is only a shell
-psql:tsearch.sql:158: NOTICE: ProcedureCreate: type gtxtidx is not yet defined
-psql:tsearch.sql:163: NOTICE: Argument type "gtxtidx" is only a shell
+psql:tsearch.sql:9: NOTICE: ProcedureCreate: type txtidx is not yet defined
+psql:tsearch.sql:14: NOTICE: Argument type "txtidx" is only a shell
+psql:tsearch.sql:38: NOTICE: ProcedureCreate: type query_txt is not yet defined
+psql:tsearch.sql:43: NOTICE: Argument type "query_txt" is only a shell
+psql:tsearch.sql:55: NOTICE: ProcedureCreate: type mquery_txt is not yet defined
+psql:tsearch.sql:61: NOTICE: Argument type "mquery_txt" is only a shell
+psql:tsearch.sql:156: NOTICE: ProcedureCreate: type gtxtidx is not yet defined
+psql:tsearch.sql:161: NOTICE: Argument type "gtxtidx" is only a shell
--txtidx
SELECT '1'::txtidx;
txtidx
diff --git a/contrib/tsearch/tsearch.sql.in b/contrib/tsearch/tsearch.sql.in
index 4577fa02e8e..899b720eb64 100644
--- a/contrib/tsearch/tsearch.sql.in
+++ b/contrib/tsearch/tsearch.sql.in
@@ -1,8 +1,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
-- TXTIDX type
CREATE FUNCTION txtidx_in(cstring)
diff --git a/contrib/userlock/user_locks.sql.in b/contrib/userlock/user_locks.sql.in
index 1826fcf2491..62689c55436 100644
--- a/contrib/userlock/user_locks.sql.in
+++ b/contrib/userlock/user_locks.sql.in
@@ -12,8 +12,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-SET autocommit TO 'on';
-
CREATE OR REPLACE FUNCTION user_lock(int4,int4,int4)
RETURNS int4
AS 'MODULE_PATHNAME'
diff --git a/contrib/vacuumlo/vacuumlo.c b/contrib/vacuumlo/vacuumlo.c
index 3d30f0b7b37..cc86e70ed5e 100644
--- a/contrib/vacuumlo/vacuumlo.c
+++ b/contrib/vacuumlo/vacuumlo.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.19 2002/12/10 01:57:16 momjian Exp $
+ * $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.20 2003/05/14 03:25:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -218,17 +218,6 @@ vacuumlo(char *database, struct _param * param)
}
PQclear(res);
- res = PQexec(conn, "SET autocommit TO 'on'");
- if (PQresultStatus(res) != PGRES_COMMAND_OK)
- {
- fprintf(stderr, "Failed to set autocommit on:\n");
- fprintf(stderr, "%s", PQerrorMessage(conn));
- PQclear(res);
- PQfinish(conn);
- return -1;
- }
- PQclear(res);
-
/*
* First we create and populate the LO temp table
*/
diff --git a/contrib/xml/pgxml.sql.in b/contrib/xml/pgxml.sql.in
index 0814baa5938..514643b936e 100644
--- a/contrib/xml/pgxml.sql.in
+++ b/contrib/xml/pgxml.sql.in
@@ -3,8 +3,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path TO public;
-SET autocommit TO on;
-
CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;
diff --git a/contrib/xml/pgxml_dom.sql.in b/contrib/xml/pgxml_dom.sql.in
index 0814baa5938..514643b936e 100644
--- a/contrib/xml/pgxml_dom.sql.in
+++ b/contrib/xml/pgxml_dom.sql.in
@@ -3,8 +3,6 @@
-- Adjust this setting to control where the objects get created.
SET search_path TO public;
-SET autocommit TO on;
-
CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;