diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-07-01 13:53:46 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-07-01 13:53:46 -0400 |
commit | 1bdae16fca884a9190dc330790e7a63c04989fa3 (patch) | |
tree | efd2fe00b1e7f4065ee443d69b7afa276baf8423 /src/backend/access/gist/gist.c | |
parent | 9e703987a8a1961af8edd751169a8ae1055890eb (diff) | |
download | postgresql-1bdae16fca884a9190dc330790e7a63c04989fa3.tar.gz postgresql-1bdae16fca884a9190dc330790e7a63c04989fa3.zip |
walreceiver: tweak pg_stat_wal_receiver behavior
There are two problems in the original coding: one is that if one
walreceiver process exits, the ready_to_display flag remains set in
shared memory, exposing the conninfo of the next walreceiver before
obfuscating. Fix by having WalRcvDie reset the flag.
Second, the sleep-and-retry behavior that waited until walreceiver had
set ready_to_display wasn't liked; the preference is to have it return
no data instead, so let's do that.
Bugs in 9ed551e0a reported by Fujii Masao and Michël Paquier.
Author: Michaël Paquier
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions