mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.566 2009/05/15 15:56:39 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.567 2009/06/11 14:49:02 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* this is the "main" module of the postgres backend and
|
||||
@@ -2509,8 +2509,8 @@ quickdie(SIGNAL_ARGS)
|
||||
* system reset cycle if some idiot DBA sends a manual SIGQUIT to a random
|
||||
* backend. This is necessary precisely because we don't clean up our
|
||||
* shared memory state. (The "dead man switch" mechanism in pmsignal.c
|
||||
* should ensure the postmaster sees this as a crash, too, but no harm
|
||||
* in being doubly sure.)
|
||||
* should ensure the postmaster sees this as a crash, too, but no harm in
|
||||
* being doubly sure.)
|
||||
*/
|
||||
exit(2);
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.130 2009/03/27 18:30:21 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.131 2009/06/11 14:49:02 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -74,7 +74,7 @@ CreateQueryDesc(PlannedStmt *plannedstmt,
|
||||
qd->operation = plannedstmt->commandType; /* operation */
|
||||
qd->plannedstmt = plannedstmt; /* plan */
|
||||
qd->utilitystmt = plannedstmt->utilityStmt; /* in case DECLARE CURSOR */
|
||||
qd->sourceText = sourceText; /* query text */
|
||||
qd->sourceText = sourceText; /* query text */
|
||||
qd->snapshot = RegisterSnapshot(snapshot); /* snapshot */
|
||||
/* RI check snapshot */
|
||||
qd->crosscheck_snapshot = RegisterSnapshot(crosscheck_snapshot);
|
||||
@@ -106,7 +106,7 @@ CreateUtilityQueryDesc(Node *utilitystmt,
|
||||
qd->operation = CMD_UTILITY; /* operation */
|
||||
qd->plannedstmt = NULL;
|
||||
qd->utilitystmt = utilitystmt; /* utility command */
|
||||
qd->sourceText = sourceText; /* query text */
|
||||
qd->sourceText = sourceText; /* query text */
|
||||
qd->snapshot = RegisterSnapshot(snapshot); /* snapshot */
|
||||
qd->crosscheck_snapshot = InvalidSnapshot; /* RI check snapshot */
|
||||
qd->dest = dest; /* output dest */
|
||||
@@ -871,7 +871,7 @@ PortalRun(Portal portal, long count, bool isTopLevel,
|
||||
|
||||
if (log_executor_stats && portal->strategy != PORTAL_MULTI_QUERY)
|
||||
ShowUsage("EXECUTOR STATISTICS");
|
||||
|
||||
|
||||
TRACE_POSTGRESQL_QUERY_EXECUTE_DONE();
|
||||
|
||||
return result;
|
||||
@@ -1156,7 +1156,7 @@ static void
|
||||
PortalRunUtility(Portal portal, Node *utilityStmt, bool isTopLevel,
|
||||
DestReceiver *dest, char *completionTag)
|
||||
{
|
||||
bool active_snapshot_set;
|
||||
bool active_snapshot_set;
|
||||
|
||||
elog(DEBUG3, "ProcessUtility");
|
||||
|
||||
@@ -1201,7 +1201,7 @@ PortalRunUtility(Portal portal, Node *utilityStmt, bool isTopLevel,
|
||||
|
||||
/*
|
||||
* Some utility commands may pop the ActiveSnapshot stack from under us,
|
||||
* so we only pop the stack if we actually see a snapshot set. Note that
|
||||
* so we only pop the stack if we actually see a snapshot set. Note that
|
||||
* the set of utility commands that do this must be the same set
|
||||
* disallowed to run inside a transaction; otherwise, we could be popping
|
||||
* a snapshot that belongs to some other operation.
|
||||
|
@@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.307 2009/05/07 22:58:28 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.308 2009/06/11 14:49:02 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -148,8 +148,8 @@ check_xact_readonly(Node *parsetree)
|
||||
|
||||
/*
|
||||
* Note: Commands that need to do more complicated checking are handled
|
||||
* elsewhere, in particular COPY and plannable statements do their
|
||||
* own checking.
|
||||
* elsewhere, in particular COPY and plannable statements do their own
|
||||
* checking.
|
||||
*/
|
||||
|
||||
switch (nodeTag(parsetree))
|
||||
@@ -252,7 +252,7 @@ ProcessUtility(Node *parsetree,
|
||||
DestReceiver *dest,
|
||||
char *completionTag)
|
||||
{
|
||||
Assert(queryString != NULL); /* required as of 8.4 */
|
||||
Assert(queryString != NULL); /* required as of 8.4 */
|
||||
|
||||
check_xact_readonly(parsetree);
|
||||
|
||||
@@ -423,8 +423,8 @@ ProcessUtility(Node *parsetree,
|
||||
|
||||
if (IsA(stmt, CreateStmt))
|
||||
{
|
||||
Datum toast_options;
|
||||
static char *validnsps[] = HEAP_RELOPT_NAMESPACES;
|
||||
Datum toast_options;
|
||||
static char *validnsps[] = HEAP_RELOPT_NAMESPACES;
|
||||
|
||||
/* Create the table itself */
|
||||
relOid = DefineRelation((CreateStmt *) stmt,
|
||||
@@ -438,7 +438,7 @@ ProcessUtility(Node *parsetree,
|
||||
|
||||
/* parse and validate reloptions for the toast table */
|
||||
toast_options = transformRelOptions((Datum) 0,
|
||||
((CreateStmt *)stmt)->options,
|
||||
((CreateStmt *) stmt)->options,
|
||||
"toast",
|
||||
validnsps,
|
||||
true, false);
|
||||
@@ -1000,6 +1000,7 @@ ProcessUtility(Node *parsetree,
|
||||
break;
|
||||
|
||||
case T_LockStmt:
|
||||
|
||||
/*
|
||||
* Since the lock would just get dropped immediately, LOCK TABLE
|
||||
* outside a transaction block is presumed to be user error.
|
||||
|
Reference in New Issue
Block a user