*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.347 2003/06/11 18:01:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.348 2003/06/20 21:58:02 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
char *tmp;
int firstchar;
StringInfo input_message;
- bool send_rfq;
+ volatile bool send_rfq = true;
/*
* Catch standard options before doing much else. This even works on
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.347 $ $Date: 2003/06/11 18:01:14 $\n");
+ puts("$Revision: 1.348 $ $Date: 2003/06/20 21:58:02 $\n");
}
/*
/*
* If we were handling an extended-query-protocol message,
- * initiate skip till next Sync.
+ * initiate skip till next Sync. This also causes us not
+ * to issue ReadyForQuery (until we get Sync).
*/
if (doing_extended_query_message)
ignore_till_sync = true;
PG_SETMASK(&UnBlockSig);
- send_rfq = true; /* initially, or after error */
+ if (!ignore_till_sync)
+ send_rfq = true; /* initially, or after error */
/*
* Non-error queries loop here.