From 0843ec088ca5fc091553e0876cb30c159b6303b1 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 24 Jan 2001 15:53:59 +0000 Subject: Add "idle in transaction" status message --- src/backend/tcop/postgres.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index f5df5c1c63a..82e132f07db 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.204 2001/01/24 14:32:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.205 2001/01/24 15:53:59 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -1680,7 +1680,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.204 $ $Date: 2001/01/24 14:32:32 $\n"); + puts("$Revision: 1.205 $ $Date: 2001/01/24 15:53:59 $\n"); } /* @@ -1791,7 +1791,9 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha EnableNotifyInterrupt(); - set_ps_display("idle"); + if (!IsTransactionBlock()) + set_ps_display("idle"); + else set_ps_display("idle in transaction"); /* Allow "die" interrupt to be processed while waiting */ ImmediateInterruptOK = true; -- cgit v1.2.3