vacuum and query plans?

From: MirrorX <mirrorx(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: vacuum and query plans?
Date: 2018-09-12 13:31:49
Message-ID: 1536759109470-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2018-09-12 14:28:47 Re: vacuum and query plans?
Previous Message Laurenz Albe 2018-09-12 12:47:05 Re: Questions