~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/backend/tcop/pquery.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.130 2009/03/27 18:30:21 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.131 2009/06/11 14:49:02 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
74
74
        qd->operation = plannedstmt->commandType;       /* operation */
75
75
        qd->plannedstmt = plannedstmt;          /* plan */
76
76
        qd->utilitystmt = plannedstmt->utilityStmt; /* in case DECLARE CURSOR */
77
 
        qd->sourceText = sourceText;            /* query text */
 
77
        qd->sourceText = sourceText;    /* query text */
78
78
        qd->snapshot = RegisterSnapshot(snapshot);      /* snapshot */
79
79
        /* RI check snapshot */
80
80
        qd->crosscheck_snapshot = RegisterSnapshot(crosscheck_snapshot);
106
106
        qd->operation = CMD_UTILITY;    /* operation */
107
107
        qd->plannedstmt = NULL;
108
108
        qd->utilitystmt = utilitystmt;          /* utility command */
109
 
        qd->sourceText = sourceText;            /* query text */
 
109
        qd->sourceText = sourceText;    /* query text */
110
110
        qd->snapshot = RegisterSnapshot(snapshot);      /* snapshot */
111
111
        qd->crosscheck_snapshot = InvalidSnapshot;      /* RI check snapshot */
112
112
        qd->dest = dest;                        /* output dest */
871
871
 
872
872
        if (log_executor_stats && portal->strategy != PORTAL_MULTI_QUERY)
873
873
                ShowUsage("EXECUTOR STATISTICS");
874
 
        
 
874
 
875
875
        TRACE_POSTGRESQL_QUERY_EXECUTE_DONE();
876
876
 
877
877
        return result;
1156
1156
PortalRunUtility(Portal portal, Node *utilityStmt, bool isTopLevel,
1157
1157
                                 DestReceiver *dest, char *completionTag)
1158
1158
{
1159
 
        bool    active_snapshot_set;
 
1159
        bool            active_snapshot_set;
1160
1160
 
1161
1161
        elog(DEBUG3, "ProcessUtility");
1162
1162
 
1201
1201
 
1202
1202
        /*
1203
1203
         * Some utility commands may pop the ActiveSnapshot stack from under us,
1204
 
         * so we only pop the stack if we actually see a snapshot set.  Note that
 
1204
         * so we only pop the stack if we actually see a snapshot set.  Note that
1205
1205
         * the set of utility commands that do this must be the same set
1206
1206
         * disallowed to run inside a transaction; otherwise, we could be popping
1207
1207
         * a snapshot that belongs to some other operation.