aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-08-04 04:31:44 +0000
committerBruce Momjian <bruce@momjian.us>2002-08-04 04:31:44 +0000
commit19e0e35bcd3d0a1e46cb294ab08fbe062d4cf0d6 (patch)
tree0e46bff54197af8970529fc54e8766cbcda23567 /src/backend/tcop/postgres.c
parentfecc04f95a136bbfbded44c476d597eed6ac6258 (diff)
downloadpostgresql-19e0e35bcd3d0a1e46cb294ab08fbe062d4cf0d6.tar.gz
postgresql-19e0e35bcd3d0a1e46cb294ab08fbe062d4cf0d6.zip
The attached patch implements START TRANSACTION, per SQL99. The
functionality of the command is basically identical to that of BEGIN; it just accepts a few extra options (only one of which PostgreSQL currently implements), and is standards-compliant. The patch includes a simple regression test and documentation. [ Regression tests removed, per Peter.] Neil Conway
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 8aae5f5406d..976d366fe78 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.276 2002/07/30 16:55:45 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.277 2002/08/04 04:31:44 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1693,7 +1693,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.276 $ $Date: 2002/07/30 16:55:45 $\n");
+ puts("$Revision: 1.277 $ $Date: 2002/08/04 04:31:44 $\n");
}
/*
@@ -2160,6 +2160,10 @@ CreateCommandTag(Node *parsetree)
tag = "BEGIN";
break;
+ case START:
+ tag = "START TRANSACTION";
+ break;
+
case COMMIT:
tag = "COMMIT";
break;