RE: Restore of a reference database kills the auto analyze processing.

From: HORDER Philip <Phil(dot)Horder(at)uk(dot)thalesgroup(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: Restore of a reference database kills the auto analyze processing.
Date: 2024-05-07 09:38:51
Message-ID: 545ad7354f5f4c239df25faf8e883e98@uk.thalesgroup.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for your time Adrian

> Is there enough data processing?

Yes, one table is receiving upwards of 20 million rows daily.
We noticed the problem when fetch performance on this table degraded after updates.

> Autovacuum has thresholds for turning on, are you sure those thresholds are just not being met?

Yes we're sure. Our biggest table is set for a fixed number of rows rather than a percentage, this gets an auto analyse about every 15 minutes.

After an update this just stops, and there are no analyse entries in the log file. None at all, for any table.

When we restart Postgres the auto analyse restarts and catches up with the backlog.

Phil Horder
Database Mechanic

Thales
Land & Air Systems

The information contained in this e-mail is confidential. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. If you have received this e-mail in error, please inform the originator immediately and delete it and all copies from your system.

Thales UK Limited. A company registered in England and Wales. Registered Office: 350 Longwater Avenue, Green Park, Reading, Berks RG2 6GF. Registered Number: 868273

Please consider the environment before printing a hard copy of this e-mail.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Frans Simmelvuo (Papula-Nevinpat) 2024-05-07 10:28:23 pg_basebackup "Permission denied" error when initiating streaming replication
Previous Message HORDER Philip 2024-05-07 09:30:43 RE: Restore of a reference database kills the auto analyze processing.