8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.347 2003/06/11 18:01:14 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.348 2003/06/20 21:58:02 tgl Exp $
12
12
*
13
13
* NOTES
14
14
* this is the "main" module of the postgres backend and
@@ -1947,7 +1947,7 @@ PostgresMain(int argc, char *argv[], const char *username)
1947
1947
char * tmp ;
1948
1948
int firstchar ;
1949
1949
StringInfo input_message ;
1950
- bool send_rfq ;
1950
+ volatile bool send_rfq = true ;
1951
1951
1952
1952
/*
1953
1953
* Catch standard options before doing much else. This even works on
@@ -2547,7 +2547,7 @@ PostgresMain(int argc, char *argv[], const char *username)
2547
2547
if (!IsUnderPostmaster )
2548
2548
{
2549
2549
puts ("\nPOSTGRES backend interactive interface " );
2550
- puts ("$Revision: 1.347 $ $Date: 2003/06/11 18:01:14 $\n" );
2550
+ puts ("$Revision: 1.348 $ $Date: 2003/06/20 21:58:02 $\n" );
2551
2551
}
2552
2552
2553
2553
/*
@@ -2627,7 +2627,8 @@ PostgresMain(int argc, char *argv[], const char *username)
2627
2627
2628
2628
/*
2629
2629
* If we were handling an extended-query-protocol message,
2630
- * initiate skip till next Sync.
2630
+ * initiate skip till next Sync. This also causes us not
2631
+ * to issue ReadyForQuery (until we get Sync).
2631
2632
*/
2632
2633
if (doing_extended_query_message )
2633
2634
ignore_till_sync = true;
@@ -2642,7 +2643,8 @@ PostgresMain(int argc, char *argv[], const char *username)
2642
2643
2643
2644
PG_SETMASK (& UnBlockSig );
2644
2645
2645
- send_rfq = true; /* initially, or after error */
2646
+ if (!ignore_till_sync )
2647
+ send_rfq = true; /* initially, or after error */
2646
2648
2647
2649
/*
2648
2650
* Non-error queries loop here.
0 commit comments