public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: David Fogarty <[email protected]>
Cc: [email protected]
Subject: Re: Performance after restart/reboot pre-Analyze
Date: Thu, 28 Mar 2024 11:52:59 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

David Fogarty <[email protected]> writes:
> It seems like whenever I restart my database server performance is quite bad until an Analyze has been performed. I expect this is due to the query planner needing new stats, but that leads me to three questions:

A simple restart shouldn't invalidate statistics.  I'd lay some small
change on your actual problem being not that, but the need to
repopulate the server's buffers from disk files.  If so, pg_prewarm
might help you.

			regards, tom lane





view thread (4+ messages)  latest in thread

reply

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Performance after restart/reboot pre-Analyze
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox