Skip to content

Commit 2a2f6cf

Browse files
committed
Fix oversight: ignore-till-SYNC state should not ignore EOF ...
1 parent 22c4cae commit 2a2f6cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/tcop/postgres.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.344 2003/05/14 03:26:01 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.345 2003/05/14 18:40:37 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -309,6 +309,7 @@ SocketBackend(StringInfo inBuf)
309309

310310
case 'X': /* terminate */
311311
doing_extended_query_message = false;
312+
ignore_till_sync = false;
312313
break;
313314

314315
case 'B': /* bind */
@@ -2525,7 +2526,7 @@ PostgresMain(int argc, char *argv[], const char *username)
25252526
if (!IsUnderPostmaster)
25262527
{
25272528
puts("\nPOSTGRES backend interactive interface ");
2528-
puts("$Revision: 1.344 $ $Date: 2003/05/14 03:26:01 $\n");
2529+
puts("$Revision: 1.345 $ $Date: 2003/05/14 18:40:37 $\n");
25292530
}
25302531

25312532
/*
@@ -2714,7 +2715,7 @@ PostgresMain(int argc, char *argv[], const char *username)
27142715
/*
27152716
* (6) process the command. But ignore it if we're skipping till Sync.
27162717
*/
2717-
if (ignore_till_sync)
2718+
if (ignore_till_sync && firstchar != EOF)
27182719
continue;
27192720

27202721
switch (firstchar)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy