pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik@postgresfriends.org>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: cataloguing NOT NULL constraints
Date: Mon, 24 Jul 2023 19:19:48 +0200
Message-ID: <ca44cc48-786d-d64e-d202-69106c6de85b@postgresfriends.org> (raw)
In-Reply-To: <20230724164228.r57cshpl7v2cxqnj@alvherre.pgsql>
References: <20230724164228.r57cshpl7v2cxqnj@alvherre.pgsql>

On 7/24/23 18:42, Alvaro Herrera wrote:
> 55490 17devel 3166154=# create table foo (a int constraint nn not null);
> CREATE TABLE
> 55490 17devel 3166154=# alter table foo add constraint nn not null a;
> ERROR:  column "a" of table "foo" is already NOT NULL

Surely this should be a WARNING or INFO?  I see no reason to ERROR here.
-- 
Vik Fearing






view thread (196+ messages)  latest in thread

Message-ID: <ca44cc48-786d-d64e-d202-69106c6de85b@postgresfriends.org>
Permalink:  ../ca44cc48-786d-d64e-d202-69106c6de85b@postgresfriends.org/
Also on:    postgresql.org/message-id/ca44cc48-786d-d64e-d202-69106c6de85b@postgresfriends.org

 · 

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: pgsql-hackers@postgresql.org
  Cc: vik@postgresfriends.org, alvherre@alvh.no-ip.org, dean.a.rasheed@gmail.com, peter@eisentraut.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: cataloguing NOT NULL constraints
  In-Reply-To: <ca44cc48-786d-d64e-d202-69106c6de85b@postgresfriends.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox