diff options
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 85fcc49c839..5658e10d453 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.432 2004/09/13 20:07:05 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.433 2004/09/26 00:26:25 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2811,6 +2811,9 @@ PostgresMain(int argc, char *argv[], const char *username) DisableNotifyInterrupt(); DisableCatchupInterrupt(); + /* Make sure libpq is in a good state */ + pq_comm_reset(); + /* Report the error to the client and/or server log */ EmitErrorReport(); |