Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rklh3-00FBm4-1Y for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 14:04:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rklh1-000JeC-F0 for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 14:04:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rklfy-000Gfg-K5 for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2024 14:03:20 +0000 Received: from fout1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rklfv-004UgM-4K for pgsql-hackers@postgresql.org; Thu, 14 Mar 2024 14:03:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 791881380110; Thu, 14 Mar 2024 10:03:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 14 Mar 2024 10:03:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1710424992; x= 1710511392; bh=EIVkKc2o+NUK2N+vinujH+kSIQ/X5Yt4w+EZZo3UO98=; b=J H8r0/2FH4iBzmwdQVinUcSlD0zcOB15gZgR6a181K8ZE+UT6wK1uWcVPfTw8Hh+x JfG5y96AVZ5Lb1TxsKyO2Gos3HwX5TrIk6ro7Lypyz44g7YmF/6/shhcbpB4NTcl TBNfveMS0A/a98ZJ5nw/2OBhUL1llJ+fTpEb4Maeuht4Dg171YlfmPToKyD1D99g ldyLhxb4WM1vl7SeKTBjDSoCwZyoFAFd/p0oKb04mzQlT/FmgB/d3eQn+sgci721 Pbhy37qZ+rB0P7372hnPzjNFnr2EedBmKWbOtdeB0qnkFGiCCTCeiokYSic2cnBk EoTg46rq/gfQzPCU+HciQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeejgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Mar 2024 10:03:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1710424988; bh=hnPtATspLzN27/f+oWJ5xEI50wqGDjbRsjdvokUe6xE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HvYDdMgyloxZcJbZqLEL2MvQyxoWn85NfPsaQRN0jpsgx1fysc1Cm6+w1UKY17Uih M/dGYozTHYyHiKCqg2H+ZzFhj7/vNSb1ey2wSsAPY1hvb/R1UMwL2p7m7PaSwJBYK5 64DMQc17IvLysVE92nNN1//CrGh3ukxuH/lJggzPwRfx2InG2aSst6vsAKp75qDdYE FU94JmKmsrtEgf70mgklCUWOiiCCsy68s9JniyQq+gmh+PUTOw2IMC1Ll/lYux1q5z w6tuef4FqGJWaS9qGjqwz0oz4liVPe5zITfqu2EBppRwbTLOrCffDi0GTckF0u048c HDcq+nyD/zRDg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 02924CD5; Thu, 14 Mar 2024 15:03:07 +0100 (CET) Date: Thu, 14 Mar 2024 15:03:07 +0100 From: Alvaro Herrera To: Peter Eisentraut Cc: jian he , pgsql-hackers , vignesh C , Aleksander Alekseev Subject: Re: Catalog domain not-null constraints Message-ID: <202403141403.r2nkh3vuhpje@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Mar-14, Peter Eisentraut wrote: > Perhaps it would make sense if we change the ALTER TABLE command to be like > > ALTER TABLE t1 ADD IF NOT EXISTS NOT NULL c1 > > Then the behavior is like one would expect. > > For ALTER TABLE, we would reject this command if IF NOT EXISTS is not > specified. (Since this is mainly for pg_dump, it doesn't really matter for > usability.) For ALTER DOMAIN, we could accept both variants. I don't understand why you want to change this behavior, though. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "La victoria es para quien se atreve a estar solo"