diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-11 17:15:40 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-11 17:15:40 +0000 |
commit | b58dba797645bbfbb75eda42bd22b9fa6eff85cc (patch) | |
tree | 430f60d1318680d0b41c0d28c3edfac8c5c6be22 | |
parent | 71760652731235918cf878be7d0b8e6bb8c6b1ec (diff) | |
download | postgresql-b58dba797645bbfbb75eda42bd22b9fa6eff85cc.tar.gz postgresql-b58dba797645bbfbb75eda42bd22b9fa6eff85cc.zip |
Make sure that open hash table scans are cleaned up when bgwriter tries to
recover from elog(ERROR). Problem was created by introduction of hash seq
search tracking awhile back, and affects all branches that have bgwriter;
in HEAD the disease has snuck into autovacuum and walwriter too. (Not sure
that the latter two use hash_seq_search at the moment, but surely they might
someday.) Per report from Sergey Koposov.
-rw-r--r-- | src/backend/postmaster/bgwriter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/postmaster/bgwriter.c b/src/backend/postmaster/bgwriter.c index 1fec1e4b11b..04dc7428f75 100644 --- a/src/backend/postmaster/bgwriter.c +++ b/src/backend/postmaster/bgwriter.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.33.2.1 2007/01/27 20:15:47 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.33.2.2 2007/09/11 17:15:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -273,6 +273,7 @@ BackgroundWriterMain(void) /* we needn't bother with the other ResourceOwnerRelease phases */ AtEOXact_Buffers(false); AtEOXact_Files(); + AtEOXact_HashTables(false); /* Warn any waiting backends that the checkpoint failed. */ if (ckpt_active) |