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 1lGA6T-0001sr-Fa for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Feb 2021 00:38:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lGA6S-0007AX-63 for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Feb 2021 00:38:32 +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 1lGA3T-0005lF-NE for pgsql-bugs@lists.postgresql.org; Sun, 28 Feb 2021 00:35:27 +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 1lGA3R-0005f8-KR for pgsql-bugs@lists.postgresql.org; Sun, 28 Feb 2021 00:35:27 +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 11S0ZNAM541427; Sat, 27 Feb 2021 19:35:23 -0500 From: Tom Lane To: Sven Klemm cc: pgsql-bugs@lists.postgresql.org Subject: Re: pg_event_trigger_ddl_commands fails with cache lookup failed In-reply-to: References: <540819.1614471659@sss.pgh.pa.us> Comments: In-reply-to Sven Klemm message dated "Sun, 28 Feb 2021 01:30:18 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <541425.1614472523.1@sss.pgh.pa.us> Date: Sat, 27 Feb 2021 19:35:23 -0500 Message-ID: <541426.1614472523@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Sven Klemm writes: > Oh sorry, the steps to reproduce were in the initial mail and i didnt > add them again. > This fails on master too. The drop identity drops the sequence which means > pg_event_trigger_ddl_commands cannot lookup details for the sequence. > This still fails on master. Hm. I don't know much about the event trigger stuff, but I wonder how it ever copes with *any* object-dropping commands. Seems like the issue would exist in all such cases. regards, tom lane