Re: surprising query optimisation

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: surprising query optimisation
Date: 2018-12-05 11:48:28
Message-ID: 4b68075c-55b0-e937-f794-125251573011@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Frost schrieb am 30.11.2018 um 14:05:
> PG doesn’t know, with complete certainty, that there’s only 3
> values.

Would the optimizer consult a check constraint ensuring that?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2018-12-05 11:49:53 Re: surprising query optimisation
Previous Message Chris Withers 2018-12-05 11:42:15 Re: surprising query optimisation