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 1rQTms-001YKd-BP for pgsql-docs@arkaria.postgresql.org; Thu, 18 Jan 2024 14:54:35 +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 1rQTmr-003CS1-Dk for pgsql-docs@arkaria.postgresql.org; Thu, 18 Jan 2024 14:54:33 +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 1rQTmq-003CRt-IY for pgsql-docs@lists.postgresql.org; Thu, 18 Jan 2024 14:54:33 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQTmn-002AOP-IU for pgsql-docs@lists.postgresql.org; Thu, 18 Jan 2024 14:54:31 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AA4755C00CE; Thu, 18 Jan 2024 09:54:28 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 Jan 2024 09:54:28 -0500 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=fm2; t=1705589668; x=1705676068; bh=+Xr+pEOb5BRq5S8MqSu06THvC4txu/C6BwR5RoaowTo=; b= uCZ540t7tBo2wbSKH9JLBjmvnOkCWono/KNJMKY3sPER9lzbZWzE5KCdw9XJsS5Q MPw7eQZa7HmcyIYidkzqYY+WCxpAiDsaKz8Ma3rAPg4hf/s5dKoAYhjF5TKJhuUO vZnCJVuVJjhmZEFaZjvZOrZOOo8wkNoIuuUgFyPmev1WfCOgNMrnDihTZvfkXOnL Mweoi+ugl/nwBKnqqORIYydfnBUxLIr2q3tYkc6dMS+7fc6lrjnDDHxT2TtlijWt ZL4kXiCOavZ3oPW3bgN4/Cn8UizTrl2MQfK5uOug4h45I3ZNB126HIa0JDOGN017 Z2Awd0nCQ5ueSN//a1geHg== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705589668; x= 1705676068; bh=+Xr+pEOb5BRq5S8MqSu06THvC4txu/C6BwR5RoaowTo=; b=P 1NEQHm4o81vZ2HON4qat2HbqODX6GUlmZLaPZlYUc0zPsEOXnGHp4Sen62xO94hX 8WoTk4j5x30SzVtuRZr8jU+U+TVGcq7LjpUFbhx0xDWiSwBIbIzbhmQCmW7atl8z q+f4vHYY3OtFOrpypVM9a6Ta3dCHXhC47oI/onb5X/MvwFDr5dGgdoRWMjZ/+gLU faaRe2ri364MjW03gV0HxwKfxsjswLZDpE7+wnXCtasxWZh67k8+BbyhNOCAq/z1 Hj5k3Oql5rzJ6DqJPeKqQMVn56Bs5RBBxuOvj6cBR+COW+zo1B9f0a24y4wOlYHU XVsVP+zuG5Hu9hLWqTE7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejkedggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqe enucggtffrrghtthgvrhhnpeehiedvhfeuhfeugefgfeehgeejtdevuefhtefhueefvddu gfdtueehgfefudfhffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Jan 2024 09:54:27 -0500 (EST) Message-ID: Date: Thu, 18 Jan 2024 15:54:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: create table explicitly mention that unique|primary key constraint will create an Content-Language: en-US To: Laurenz Albe , jian he , pgsql-docs@lists.postgresql.org References: <24f01200b651ff87311ae0f46b99eaf91fc3ec43.camel@cybertec.at> From: Peter Eisentraut In-Reply-To: <24f01200b651ff87311ae0f46b99eaf91fc3ec43.camel@cybertec.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 27.11.23 03:30, Laurenz Albe wrote: > True; I don't find it documented that all objects in pg_class share a > namespace and that constraints are implemented by indexes of the same > name. But I think that the first part is a property of schemas and had > better be documented there. It is documented prominently on the CREATE INDEX reference page. We could document it in more places, of course. I find the specific change proposal for ddl.sgml a bit weird, though, because this is a very introductory section, and you are referring people to pg_class (what is that?!?) for details. If we want to put something there, it should respect the order in which that chapter introduces concepts. The changes on create_table.sgml seem ok. Although I had actually expected that the system applies the find-a-unique-name routine rather than taking the constraint name for the index name unaltered. Perhaps taking the create_table.sgml changes and combination with the existing text on CREATE INDEX is sufficient.