Re: Validating check constraints without a table scan?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Philip Couling <couling(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Validating check constraints without a table scan?
Date: 2024-11-15 08:44:08
Message-ID: 18994f31b8e5f9d7a0f0327f99fcb73e647ed99d.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andy Hartman 2024-11-15 14:27:36 DB Files
Previous Message Philip Couling 2024-11-14 21:33:31 Validating check constraints without a table scan?