*** pgsql/src/include/executor/execdesc.h 2009/01/01 17:23:59 1.39 --- pgsql/src/include/executor/execdesc.h 2009/01/02 20:42:00 1.40 *************** *** 8,14 **** * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * ! * $PostgreSQL: pgsql/src/include/executor/execdesc.h,v 1.38 2008/11/19 01:10:23 tgl Exp $ * *------------------------------------------------------------------------- */ --- 8,14 ---- * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * ! * $PostgreSQL: pgsql/src/include/executor/execdesc.h,v 1.39 2009/01/01 17:23:59 momjian Exp $ * *------------------------------------------------------------------------- */ *************** typedef struct QueryDesc *** 37,42 **** --- 37,43 ---- CmdType operation; /* CMD_SELECT, CMD_UPDATE, etc. */ PlannedStmt *plannedstmt; /* planner's output, or null if utility */ Node *utilitystmt; /* utility statement, or null */ + const char *sourceText; /* source text of the query */ Snapshot snapshot; /* snapshot to use for query */ Snapshot crosscheck_snapshot; /* crosscheck for RI update/delete */ DestReceiver *dest; /* the destination for tuple output */ *************** typedef struct QueryDesc *** 54,59 **** --- 55,61 ---- /* in pquery.c */ extern QueryDesc *CreateQueryDesc(PlannedStmt *plannedstmt, + const char *sourceText, Snapshot snapshot, Snapshot crosscheck_snapshot, DestReceiver *dest, *************** extern QueryDesc *CreateQueryDesc(Planne *** 61,66 **** --- 63,69 ---- bool doInstrument); extern QueryDesc *CreateUtilityQueryDesc(Node *utilitystmt, + const char *sourceText, Snapshot snapshot, DestReceiver *dest, ParamListInfo params);