Re: Can you please suggest how to configure hot_standby_feedback?

2019-11-02 Thread Nikolay Samokhvalov
On Sat, Nov 2, 2019 at 8:52 PM Konstantin Gredeskoul wrote: > A related question is — *how can you avoid doing auto vacuum during the > busy peak hours, and do more aggressive auto vacuuming at night during low > traffic?* Is that possible? > > I tried achieving that with a manual vacuum, but tha

Re: Can you please suggest how to configure hot_standby_feedback?

2019-11-02 Thread Konstantin Gredeskoul
I have a follow up question on *hot_standby_feedback*. If I have 3 read replicas that all have this set to ON, and someone runs a very long query on *one* of the replicas, can all three replicas fall behind until the query is finished? This is the behavior I observed more than once, but I can’t se

RE: Getting following error in using cursor to fetch the records from a large table in c language(current transaction is aborted, commands ignored until end of transaction block)

2019-11-02 Thread M Tarkeshwar Rao
Thanks Yes it is in c++. Actually we just written this code. Due to vaccum full cursor query failing on a connection and all the subsequent queries are failing and we found shared errors in /var/logs of the postgres installed machine. We also last query sent by the client application is: replic

Re: QUERY: autovacuum: VACUUM ANALYZE table versus QUERY: autovacuum: VACUUM table

2019-11-02 Thread Tom Lane
Jason Ralph writes: > I am trying to find out if the naming convention from autovacuum does what > its command line equivalent does, or at least what I think it does. > QUERY: autovacuum: VACUUM ANALYZE table versus autovacuum: VACUUM ANALYZE > table. > I have been getting my autovacuum tuned

Re: QUERY: autovacuum: VACUUM ANALYZE table versus QUERY: autovacuum: VACUUM table

2019-11-02 Thread Adrian Klaver
On 11/1/19 7:49 PM, Jason Ralph wrote: Hello list, I am trying to find out if the naming convention from autovacuum does what its command line equivalent does, or at least what I think it does. QUERY: autovacuum: VACUUM ANALYZE table versus autovacuum: VACUUM ANALYZE table. The above are the