Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyQ6I-0005u5-7O for pgsql-general@arkaria.postgresql.org; Fri, 16 Aug 2019 00:28:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hyQ6H-00081P-3P for pgsql-general@arkaria.postgresql.org; Fri, 16 Aug 2019 00:28:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyQ6G-0007xW-N8 for pgsql-general@lists.postgresql.org; Fri, 16 Aug 2019 00:28:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyQ6E-0002oB-9L for pgsql-general@postgresql.org; Fri, 16 Aug 2019 00:28:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7G0S6HB008459; Thu, 15 Aug 2019 20:28:07 -0400 From: Tom Lane To: Simon Windsor cc: pgsql-general@postgresql.org Subject: Re: Error XX000 After pg11 upgrade In-reply-to: <1a413d27-523f-c09c-cda8-572ad0eb0cef@cornfield.me.uk> References: <29076.1565883118@sss.pgh.pa.us> <1a413d27-523f-c09c-cda8-572ad0eb0cef@cornfield.me.uk> Comments: In-reply-to Simon Windsor message dated "Thu, 15 Aug 2019 17:35:28 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8457.1565915286.1@sss.pgh.pa.us> Date: Thu, 15 Aug 2019 20:28:06 -0400 Message-ID: <8458.1565915286@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Simon Windsor writes: > Since then, large bulk inserts of configuration changes are failing with > this Error, but adhoc and small changes are working ok. Might it be that things work as long as the trigger is only tasked with redirecting to the same child table (or limited set of child tables) within a particular insertion command? I'm wondering if this could be related to bug #15913 --- which I just fixed today, so maybe I just have it on the brain too much. The manifestation doesn't look quite the same, but given the way your trigger is written, something about NEW.* changing type from one call to the next might have something to do with it. I also wonder how often you create/delete child tables. regards, tom lane