[bug fix] Stats collector is not restarted on the standby - Mailing list pgsql-hackers

From Tsunakawa, Takayuki
Subject [bug fix] Stats collector is not restarted on the standby
Date
Msg-id 0A3221C70F24FB45833433255569204D1F636A1D@G01JPEXMBYT05
Whole thread Raw
Responses Re: [bug fix] Stats collector is not restarted on the standby
List pgsql-hackers
Hello,

If the stats collector is forcibly terminated on the standby in streaming replication configuration, it won't be
restarteduntil the standby is promoted to the primary.  The attached patch restarts the stats collector on the standby. 

FYI, when the stats collector is down, SELECTs against the statistics views get stale data with the following message.

LOG:  using stale statistics instead of current ones because stats collector is not responding
STATEMENT:  select * from pg_stat_user_tables

Regards
Takayuki Tsunakawa


Attachment

pgsql-hackers by date:

Previous
From: vinayak
Date:
Subject: Minor typo in reorderbuffer.c
Next
From: Masahiko Sawada
Date:
Subject: