Re: Do table-level CHECK constraints affect the query optimizer? - Mailing list pgsql-general

From Tom Lane
Subject Re: Do table-level CHECK constraints affect the query optimizer?
Date
Msg-id 452839.1624988762@sss.pgh.pa.us
Whole thread Raw
In response to Re: Do table-level CHECK constraints affect the query optimizer?  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: Do table-level CHECK constraints affect the query optimizer?
List pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> On 6/29/21 11:42 AM, Tom Lane wrote:
>> If there's a significant difference in relallvisible fractions, that
>> would point to something different in your VACUUM housekeeping on
>> the two systems.

> Prod is brand new.  Loaded on Saturday; we saw this problem on Sunday during
> pre-acceptance.  Thus, while running ANALYZE was top of the list of Things
> To Do, running VACUUM was low.

> Is that a mistaken belief?

ANALYZE won't update relallvisible AFAIR, while VACUUM will.
So if you are depending on lots of IOS, you need a round of
vacuuming.

            regards, tom lane



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Do table-level CHECK constraints affect the query optimizer?
Next
From: Mark Dilger
Date:
Subject: Re: Do table-level CHECK constraints affect the query optimizer?