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 1oRlPt-0006HO-IV for pgsql-general@arkaria.postgresql.org; Sat, 27 Aug 2022 02:19:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oRlPr-0003Nk-HU for pgsql-general@arkaria.postgresql.org; Sat, 27 Aug 2022 02:19:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRlPr-0003Nb-6v for pgsql-general@lists.postgresql.org; Sat, 27 Aug 2022 02:19:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRlPk-0000oo-MH for pgsql-general@lists.postgresql.org; Sat, 27 Aug 2022 02:19:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 27R2J7lJ2159877; Fri, 26 Aug 2022 22:19:07 -0400 From: Tom Lane To: Bryn Llewellyn cc: Christophe Pettus , Adrian Klaver , pgsql-general list , "David G. Johnston" Subject: Re: Two questions about "pg_constraint" In-reply-to: <81677DFB-5C73-4737-B42D-EF950D25FFB1@yugabyte.com> References: <496793CE-A048-434B-ABC0-6BFC0C65C3EC@yugabyte.com> <520dd935-a12c-6444-99a7-5a8f2d0f046d@aklaver.com> <19BF09AA-B8B1-4837-905E-F6EAABC3E2E2@thebuild.com> <23F434B6-9293-4F80-9CB3-6786E07960B8@yugabyte.com> <81677DFB-5C73-4737-B42D-EF950D25FFB1@yugabyte.com> Comments: In-reply-to Bryn Llewellyn message dated "Fri, 26 Aug 2022 18:47:56 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2159875.1661566747.1@sss.pgh.pa.us> Date: Fri, 26 Aug 2022 22:19:07 -0400 Message-ID: <2159876.1661566747@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bryn Llewellyn writes: > My other question was about the "connamespace" column. It seemed to me, > both at first and still now, that this is a clear instance of a > transitive dependency. I think a more productive way to think about it is that it's denormalization for efficiency; specifically to let constraints be looked up by name+namespace without having to get other catalogs involved. (SET CONSTRAINTS is one thing that requires that, and I think there are others.) regards, tom lane