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 1ts0sq-00DEvF-K0 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 14:47:04 +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 1ts0so-00027I-Dg for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 14:47:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ts0so-000279-3N for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 14:47:02 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ts0sh-002F9x-1U for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 14:47:00 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id 02A251382CAB; Tue, 11 Mar 2025 10:46:55 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Tue, 11 Mar 2025 10:46:55 -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-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741704414; x=1741790814; bh=9 iBz6UClBa3dXj60OMJKyfEguH/mgb64VZRE88JxM4g=; b=JSQpr6T/2/dg9S18R wVstdUJVZqJc4JstgpvW7y5MmJfMDLeNucLMQRzIN87QLFfaTMFcdpbM9JlCmQc7 MBqRE4c+IE5ukOo649n+JCzEBgbtR0w+lFll1XXFxc8EV+SjDEa6UajFO6+c0qP/ met4RCSKskX2JbWxU+Jop0BcxK0XujsLnEIcvNL0bMOJfXwwXwKYcpsRi4IiuZtr gTLDvVZpAZ/5qt7IWy6brewRfrlTkZI9donzYZ94ZwcO0toJMjvpmfm0//IDBzQ/ hIyaZ7xYl/uVpMUusO85tkNjJbUTdElkk+UFoueCB6MiLi+DYW/O/yy19Lu+HLoO H3PCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvddvhedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdehueffhefgueekueef heehgffhuefgfedukeejveduffegffekgeffffevgeehnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehpvghtvghr segvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopehjihgrnhdruhhnihhvvghrsh grlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtohepnhgrthhhrghnuggsohhsshgr rhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslh hishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdr phhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Mar 2025 10:46:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741704412; bh=lYOpYctkhz+99eA5Fl2FV4hikKZ6X1i6kOMMRR4mv/8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=mesP0D3OAs05GgS0h1u0rM91FTrJrXl/puNvQEcLMAhY8PtWpS2ecv+2ccqbppqtk klImRVSXVkwZygq5ej7b/+kVju/+fwy4tA8FbMGarjZO+EJWm6thZ4fdC1igqfU2X1 SaRv/vSzRPZKJbCh6WpiX44/pZX+1ZgGLyZkEuC1E+EukZZBjAiUbtvydkf1fbD/6w hiNOljwpNIBgSO6QMKU7Re6jVJHQLJYRek1prvnePDB2hvoFFqF6v/GuYFKgcEJvw7 R1ZYCE+xOzFBsoA8MBQ2MqrfwMso8s0wtzGbl7M4rTwo3jVlu8xHU7Vt7jQWzL4Nid pnPXyDvY761vw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 9002191; Tue, 11 Mar 2025 15:46:52 +0100 (CET) Date: Tue, 11 Mar 2025 15:46:52 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: jian he Cc: Tom Lane , Pg Hackers , Peter Eisentraut , Nathan Bossart Subject: Re: bogus error message for ALTER TABLE ALTER CONSTRAINT Message-ID: <202503111446.3ht6hlgszavl@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 2025-Mar-11, jian he wrote: > but it's better to align CREATE DOMAIN with ALTER DOMAIN. > For example, the following two logic should behave the same. > > create domain d_int as int4 constraint nn1 not null initially immediate; > alter domain d_int add constraint nn1 not null initially immediate; Sure, they should. > Also if we do not error out, then in the create_domain.sgml, alter_domain.sgml > section we should include these "useless" keywords. Yeah, I guess we should do that. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/