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 1m84Yc-0002kz-V8 for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jul 2021 17:38:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m84Yb-0007jo-Gb for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jul 2021 17:38:25 +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 1m84Yb-0007jg-8f for pgsql-hackers@lists.postgresql.org; Mon, 26 Jul 2021 17:38:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m84YZ-0002oM-C2 for pgsql-hackers@lists.postgresql.org; Mon, 26 Jul 2021 17:38:24 +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 16QHcGj7171677; Mon, 26 Jul 2021 13:38:17 -0400 From: Tom Lane To: Alvaro Herrera cc: Arne Roland , vignesh C , Zhihong Yu , Pg Hackers Subject: Re: Rename of triggers for partitioned tables In-reply-to: <202107261714.kuzrvstzrufh@alvherre.pgsql> References: <202107261714.kuzrvstzrufh@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 26 Jul 2021 13:14:20 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <171675.1627321096.1@sss.pgh.pa.us> Date: Mon, 26 Jul 2021 13:38:16 -0400 Message-ID: <171676.1627321096@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Arne complained that there should be a unique constraint on (tgrelid, > tgparentid) which would sidestep the need for this to be a loop. I > don't think it's really necessary, and I'm not sure how to create a > system index WHERE tgparentid <> 0. Yeah, we don't support partial indexes on catalogs, and this example doesn't make me feel like we ought to open that can of worms. But then maybe this function shouldn't assume there's only one match? regards, tom lane