diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-14 03:26:03 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-14 03:26:03 +0000 |
commit | f85f43dfb5b9043ea6b01d8b824c195cd7f9ed3c (patch) | |
tree | 149a8221767ed2e9c63adc58cc88c4d8faca5381 /src/bin/psql/command.c | |
parent | d9b679c13a820eb7b464a1eeb1f177c3fea13ece (diff) | |
download | postgresql-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 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 199b86d0041..fd6193dd243 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.95 2003/04/04 20:40:45 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.96 2003/05/14 03:26:02 tgl Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -1460,12 +1460,8 @@ test_superuser(const char *username) if (!username) return false; - /* - * Use begin/commit to avoid starting a transaction block if server - * has autocommit off by default. - */ initPQExpBuffer(&buf); - printfPQExpBuffer(&buf, "BEGIN; SELECT usesuper FROM pg_catalog.pg_user WHERE usename = '%s'; COMMIT", username); + printfPQExpBuffer(&buf, "SELECT usesuper FROM pg_catalog.pg_user WHERE usename = '%s'", username); res = PSQLexec(buf.data, true); termPQExpBuffer(&buf); |