mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user