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 1pcZGS-0002D3-TI for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Mar 2023 22:06:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pcZGR-0001t4-G7 for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Mar 2023 22:06:31 +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 1pcZGR-0001sv-7q for pgsql-bugs@lists.postgresql.org; Wed, 15 Mar 2023 22:06:31 +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 1pcZGO-0007HP-MF for pgsql-bugs@lists.postgresql.org; Wed, 15 Mar 2023 22:06:30 +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 32FM6Peh3632531; Wed, 15 Mar 2023 18:06:25 -0400 From: Tom Lane To: "David G. Johnston" cc: bokanist@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback. In-reply-to: References: <17840-c480ed3600feea0e@postgresql.org> <2558506.1678803048@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Wed, 15 Mar 2023 12:33:46 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3632529.1678917985.1@sss.pgh.pa.us> Date: Wed, 15 Mar 2023 18:06:25 -0400 Message-ID: <3632530.1678917985@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > A query you can execute should be incapable of failing if EXPLAIN for the > same query is issued. Indeed. This should be especially true for auto_explain, which isn't even doing a re-parse or re-plan, but just dumping data from the executor state tree for the just-finished query. Barring edge cases like out-of-memory, it really shouldn't fail; so I see no reason why we should consider major structural changes to make it (perhaps) less likely to fail. I continue to think that the most likely explanation is oracle_fdw doing something it probably shouldn't be doing. I have no interest in poking into that code myself, though. regards, tom lane