From: MirrorX <mirrorx@gmail.com>
To: pgsql-admin@postgresql.org
Subject: vacuum and query plans?
Date: Wed, 12 Sep 2018 06:31:49 -0700 (MST)
Message-ID: <1536759109470-0.post@n3.nabble.com> (raw)
hello,
a bit of a theoretical question if you dont mind..
i ve seen lately more and more occurences of queries having huge planning
times (>500ms) while their execution time is very low (<10ms). at that
point, if a vacuum is executed on the table involved (without analyze) then
the planning time goes back to 'normal'. could someone elaborate on the
connection between planning time and what vacuum does? i am asking bc i
would have thought that an analyze would have resolved the issue (with
increased sampling for example) but it didnt. only vacuum does resolve it.
thank you in advance
(the version is 9.4.x)
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: mirrorx@gmail.com
Subject: Re: vacuum and query plans?
In-Reply-To: <1536759109470-0.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox