Re: set not null column using existing constraint - Mailing list pgsql-admin

From David G. Johnston
Subject Re: set not null column using existing constraint
Date
Msg-id CAKFQuwY4KzV3=xqXQUw3WP68D3DrbN5Ukzt4O=JGH=OjdL26Fw@mail.gmail.com
Whole thread Raw
In response to Re: set not null column using existing constraint  (Marco Piovan <mpiovan@workwave.com>)
List pgsql-admin
On Wednesday, January 10, 2018, Marco Piovan <mpiovan@workwave.com> wrote:
The column is not marked as NOT NULL but a valid constraint  "CHECK (column IS NOT NULL)" exists.

I haven't found a way to use that specific constraint and avoid the table rescan.

It probably doesn't exist then, which is not that surprising; no one foresaw people using a check constraint for not null when an explicit specifier exists.

David J.

pgsql-admin by date:

Previous
From: Marco Piovan
Date:
Subject: Re: set not null column using existing constraint
Next
From: flumbador@virgilio.it
Date:
Subject: Re: Issue on restore / recover