RE: Restore of a reference database kills the auto analyze processing. - Mailing list pgsql-general

From HORDER Philip
Subject RE: Restore of a reference database kills the auto analyze processing.
Date
Msg-id 3d25cd915cd0433aa119728139fb0bdb@uk.thalesgroup.com
Whole thread Raw
In response to Re: Restore of a reference database kills the auto analyze processing.  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Restore of a reference database kills the auto analyze processing.
List pgsql-general
Classified as: {OPEN}

Backups of this db are created with:

pg_dump --file=fsm.dmp  -Fc --blobs --oids --dbname=lfm --host=localhost --port=nnnn --username=superuser

Restore is run with:

dropdb --port=nnnn --maintenance-db=postgres --username=superuser --if-exists lfm
pg_restore -Fc --create --dbname=postgres --port=nnnn  --username=superuser
fsm.dmp

-------------

> 2) From earlier post: '...  only analyzes tables in the new db at the point of reload, then shuts off again.' Provide
thatsequence of events from the Postgres log.
 

Log file extract is attached, with object names obfuscated.

> 3) Also statistics from
https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ALL-TABLES-VIEW
for that table after the reload.

Well, 'that' table is everything, I'll add an entry for a table that obviously needs stats collection.

From yesterday, current stats for table a.accp, from pg_STAT_all_tables:
"811486381""airscape""accp"16458538988177871456553503047055581967135016364880294000"2024-05-14
14:51:37.158892+00""2024-05-0908:27:45.328468+00""2024-05-14 13:15:31.999198+00"01815170101653
 

This table has a low row count, but high content turnover.
It usually gets auto-analyzed every minute.

For today, this hasn't been auto analysed since the update at 3am.


> 4) The autovacuum settings you have in effect:

vacuum_cost_limit = 2000
log_autovacuum_min_duration = 0
autovacuum_max_workers = 10

all other vacuum settings are defaults.

------------

Phil Horder
Database Mechanic

Thales
Land & Air Systems


{OPEN}
The information contained in this e-mail is confidential. It is intended only for the stated addressee(s) and access to
itby any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any
otherway use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. If you have
receivedthis 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.

Attachment

pgsql-general by date:

Previous
From: Sašo Gantar
Date:
Subject: problem with query
Next
From: Laurenz Albe
Date:
Subject: Re: Sequence values change during upgrade