*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.206 2001/01/24 19:43:09 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.207 2001/02/18 04:28:31 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
/* Now commit the command */
if (DebugLvl >= 1)
elog(DEBUG, "CommitTransactionCommand");
- set_ps_display("commit"); /* XXX probably the wrong place to do this */
+
CommitTransactionCommand();
#ifdef SHOW_MEMORY_STATS
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.206 $ $Date: 2001/01/24 19:43:09 $\n");
+ puts("$Revision: 1.207 $ $Date: 2001/02/18 04:28:31 $\n");
}
/*
*/
ReadyForQuery(whereToSendOutput);
+ if (IsTransactionBlock())
+ set_ps_display("idle in transaction");
+ else
+ set_ps_display("idle");
+
/* ----------------
* (2) deal with pending asynchronous NOTIFY from other backends,
* and enable async.c's signal handler to execute NOTIFY directly.
EnableNotifyInterrupt();
- if (!IsTransactionBlock())
- set_ps_display("idle");
- else set_ps_display("idle in transaction");
-
/* Allow "die" interrupt to be processed while waiting */
ImmediateInterruptOK = true;
/* and don't forget to detect one that already arrived */