Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2UYi-00061E-Q3 for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Jan 2021 07:39:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2UYh-0002Sz-NG for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Jan 2021 07:39:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2UYg-0002SU-SP for pgsql-hackers@lists.postgresql.org; Thu, 21 Jan 2021 07:39:11 +0000 Received: from wforward1-smtp.messagingengine.com ([64.147.123.30]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2UYd-0005hz-Nr for pgsql-hackers@postgresql.org; Thu, 21 Jan 2021 07:39:09 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id CCC27EBC; Thu, 21 Jan 2021 02:39:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 21 Jan 2021 02:39:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=vaChc2VNz8DgADfiMDFNND9YADOGizyf6m13KC3ms 0I=; b=qvGdkSvK7lmwZVkSmSpx1BL0U4M0Yr3IOERVNrKTDDkkLSkqZwhdnPUx9 y/ukJH/K+QIS962R2PX5jBlxmjzoifPKNmWLBYqk74WHFsRfEYBucDLQjMiyKXH+ RzWk3qj/o5P21Bl36CUdstDYebeHNeasgXWvj/tv/sRg8pY3OJuGzqOotPsVXOD2 RccZdjJzhV/MMrVna+YzHMMrkh3CTk+v2KW0bj6QfOXmdvPlTC7GYL0cXeRvs8ie 6lDFvj443tlbJF3npY1q++4S2SNruG9aZQHN6hSj/Kp2HdaLuZy+RjMM4sb+bSCm TO+I/w49w3t/8sRxDF3pJimpHBh5Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrjedvrddugedvnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b1488e.dip0.t-ipconnect.de [87.177.72.142]) by mail.messagingengine.com (Postfix) with ESMTPA id 7BD6524005E; Thu, 21 Jan 2021 02:39:04 -0500 (EST) Subject: Re: Add primary keys to system catalogs To: Robert Haas , Craig Ringer References: Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Thu, 21 Jan 2021 08:39:03 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-01-18 00:35, Robert Haas wrote: > I don't have any complaint about labelling some of the unique indexes > as primary keys, but I think installing foreign keys that don't really > enforce anything may lead to confusion. FWIW, "not enforced" constraints (such as foreign keys) is a feature that is in the SQL standard and in other SQL implementations. -- Peter Eisentraut 2ndQuadrant, an EDB company https://www.2ndquadrant.com/