Skip to content

Commit 09f3175

Browse files
committed
Fix for BEGIN with ISOLATION/READONLY clauses.
Fix for code originally added for 7.5.
1 parent 3133835 commit 09f3175

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/backend/tcop/utility.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.211 2004/03/23 19:35:17 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.212 2004/04/19 21:21:33 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -302,15 +302,12 @@ ProcessUtility(Node *parsetree,
302302

303303
switch (stmt->kind)
304304
{
305+
/*
306+
* START TRANSACTION, as defined by SQL99:
307+
* Identical to BEGIN, except that it takes a few
308+
* additional options. Same code for both.
309+
*/
305310
case TRANS_STMT_BEGIN:
306-
BeginTransactionBlock();
307-
break;
308-
309-
/*
310-
* START TRANSACTION, as defined by SQL99:
311-
* Identical to BEGIN, except that it takes a few
312-
* additional options.
313-
*/
314311
case TRANS_STMT_START:
315312
{
316313
BeginTransactionBlock();

src/backend/utils/misc/guc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.199 2004/04/07 18:52:26 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.200 2004/04/19 21:21:34 momjian Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -3394,6 +3394,8 @@ void
33943394
SetPGVariable(const char *name, List *args, bool is_local)
33953395
{
33963396
char *argstring = flatten_set_variable_args(name, args);
3397+
printf("bjm: %s %s\n", name, argstring);
3398+
fflush(stdout);
33973399

33983400
/* Note SET DEFAULT (argstring == NULL) is equivalent to RESET */
33993401
set_config_option(name,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy