Re: vacuum analyze query performance - help me understand - Mailing list pgsql-general

From Greg Sabino Mullane
Subject Re: vacuum analyze query performance - help me understand
Date
Msg-id CAKAnmmJKOykz=xwGGTRJX9arvhOLa6rXShv-S_sZ52urDfaXnQ@mail.gmail.com
Whole thread Raw
In response to RE: vacuum analyze query performance - help me understand  (Scot Kreienkamp <Scot.Kreienkamp@la-z-boy.com>)
List pgsql-general

Moving forward advice:

* Run the query more than once before doing a manual vacuum to rule out caching.
* Change your flags for the vacuumdb from --quiet to --verbose and we can see exactly what vacuum has done. Ideally have cron append to a file on disk
* Similarly, set log_autovacuum_min_duration to 0 (which logs all autovacuum activity).
* As mentioned upthread, use explain (analyze, buffers, settings) for better output
* Using the pg_buffercache extension can show you exactly what is in shared buffers (for future debugging)

Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support

pgsql-general by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: Domains vs data types
Next
From: Ron Clarke
Date:
Subject: Re: Domains vs data types