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 1u2sdG-007Dsv-07 for pgsql-docs@arkaria.postgresql.org; Thu, 10 Apr 2025 14:11:54 +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 1u2sdD-00CAWa-Th for pgsql-docs@arkaria.postgresql.org; Thu, 10 Apr 2025 14:11:52 +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 1u2sdD-00CAWS-0O for pgsql-docs@lists.postgresql.org; Thu, 10 Apr 2025 14:11:51 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u2sd9-004XBc-2R for pgsql-docs@lists.postgresql.org; Thu, 10 Apr 2025 14:11:50 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 0F5F91140098; Thu, 10 Apr 2025 10:11:45 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Thu, 10 Apr 2025 10:11:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1744294304; x=1744380704; bh=NEQqYMRwjaurosOIEzke38YJCJ5vKrQwgtQmmmkvdd8=; b= ibFiMdaPL/qDdbOh+7KtuO3uVbC/7AwMb1Yx6GyEdVVnIiSgXa3Fcn5GKuHPJLoQ W+MGXPG8u9XdjVZRbV/uUohrqz0qQC8vvamoPBQ6T2FaE7k54IYMHT6IXFSZ2n0+ KduKJxU45eesz79j/vREujWoaRTEeWntVRC96Vxm+zBdiwp38wfUTJ8u5FdJad9x d2nVanYu3AlxftTY/Si9p75SqhpDAVob2q+gc1AF6TzHzdV6zXYv4N5dsu/SJqB/ ntWn0WzkduhPitGjIg8X0PtBRY6GtKUtP8rV5nqzZMEz4wONh6bV88rXiBMebAu4 /ml6DDRL97wTJUIDZI8tKg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1744294304; x=1744380704; bh=N EQqYMRwjaurosOIEzke38YJCJ5vKrQwgtQmmmkvdd8=; b=w8W9O9pfuFZE9AGRv fxu13nvqPbKcRl6wmQbEElQH9BfkrHctgW5pGmbvgkjhAMDXptcwwY5CP1dxkeFq LGPjROuhUrVAn9Tk9qg2O7bUuFnw9ZJoPfOvbK1uDsackL+873D1aJGDzVG59XJs DUf9SYnzv4Df+OREL5eqHevK7xCWkpIYINJ+SXWHA/qCl0Nvpq7gTiZAJzVSCai2 Z573YnqFHAp3JFyKhFZ0y11rcx+YX5XhkLy/jBhEYX1RCaHc2+Fu0QhuGipEHmTx K3vZjbr9ynOe5D8wz2pjudON+KP4Cgl3wP66hZlmGGbe/lNayKbjy9swNiwwyHEr FPBaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvtdeludduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpeffueetudelgeejiedujefg teehhfdtudekhedthedtgedugffhtdevudegudduieenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhnsggprhgtphhtth hopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegurghvihgurdhgrdhjohhh nhhsthhonhesghhmrghilhdrtghomhdprhgtphhtthhopeihrdhsrggsuhhrohhvsehgmh grihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqughotghssehlihhsthhsrdhpohhs thhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Apr 2025 10:11:43 -0400 (EDT) Message-ID: <8fd70ac1-9eb2-49bf-bdb4-dd2b12beb25e@eisentraut.org> Date: Thu, 10 Apr 2025 16:11:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: generated constraint name To: "David G. Johnston" , "y.saburov@gmail.com" , "pgsql-docs@lists.postgresql.org" References: <174393459040.678.17810152410419444783@wrigleys.postgresql.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 07.04.25 15:34, David G. Johnston wrote: > On Sunday, April 6, 2025, PG Doc comments form > wrote: > > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/17/ddl-alter.html www.postgresql.org/docs/17/ddl-alter.html> > Description: > > url: > https://www.postgresql.org/docs/current/ddl-alter.html#DDL-ALTER- > REMOVING-A-CONSTRAINT alter.html#DDL-ALTER-REMOVING-A-CONSTRAINT> > > (If you are dealing with a generated constraint name like $2, don't > forget > that you'll need to double-quote it to make it a valid identifier.) > > If I have a constraint with the name $2, are there other constraints > with > names $1, $3 ... ? > > > I feel like that whole parenthetical should just go away.  The point of > the comment is to remind the user of how identifier values work with > respect to mandatory double quoting.  The name itself, other than having > a $, has no special importance. I think generated constraint names were generally "$1", "$2", etc. at some point, instead of the more readable ones you get today. But this must be ancient.