aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2024-06-25 15:42:36 -0400
committerRobert Haas <rhaas@postgresql.org>2024-06-28 08:29:05 -0400
commit065583cf460f980a182498941ac52810f709a897 (patch)
tree662e576de7ce5f5a099df95b1efd07803c916f70 /src/backend/parser/parse_expr.c
parent55e56c84da99fe7becda2194563f48bb3083c2d1 (diff)
downloadpostgresql-065583cf460f980a182498941ac52810f709a897.tar.gz
postgresql-065583cf460f980a182498941ac52810f709a897.zip
Prevent summarizer hang when summarize_wal turned off and back on.
Before this commit, when the WAL summarizer started up or recovered from an error, it would resume summarization from wherever it left off. That was OK normally, but wrong if summarize_wal=off had been turned off temporary, allowing some WAL to be removed, and then turned back on again. In such cases, the WAL summarizer would simply hang forever. This commit changes the reinitialization sequence for WAL summarizer to rederive the starting position in the way we were already doing at initial startup, fixing the problem. Per report from Israel Barth Rubio. Reviewed by Tom Lane. Discussion: http://postgr.es/m/CA+TgmoYN6x=YS+FoFOS6=nr6=qkXZFWhdiL7k0oatGwug2hcuA@mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions