Re: Do table-level CHECK constraints affect the query optimizer?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Do table-level CHECK constraints affect the query optimizer?
Date: 2021-06-29 17:46:02
Message-ID: 452839.1624988762@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron <ronljohnsonjr(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Dilger 2021-06-29 17:46:03 Re: Do table-level CHECK constraints affect the query optimizer?
Previous Message Ron 2021-06-29 17:33:46 Re: Do table-level CHECK constraints affect the query optimizer?