public inbox for [email protected]  
help / color / mirror / Atom feed
From: Laurenz Albe <[email protected]>
To: Philip Couling <[email protected]>
To: [email protected]
Subject: Re: Validating check constraints without a table scan?
Date: Fri, 15 Nov 2024 09:44:08 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CANWftzK2MZ7Js_56V+ZcLxZyH1utBZx4uEg03P7Cee86K2roCQ@mail.gmail.com>
References: <CANWftzK2MZ7Js_56V+ZcLxZyH1utBZx4uEg03P7Cee86K2roCQ@mail.gmail.com>

On Thu, 2024-11-14 at 21:33 +0000, Philip Couling wrote:
> Is there a solid ready why validating check constraints cannot use existing indexes?
> If I can prove the constraint is valid so trivially with a SELECT, then why can
> Postgres not do the same (or similar)?

I assume that the simple answer is: because nobody implemented that.

Yours,
Laurenz Albe






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: Validating check constraints without a table scan?
  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