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 1pc5Md-0007FH-8U for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Mar 2023 14:10:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pc5Mb-00088I-Eu for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Mar 2023 14:10:53 +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 1pc5Mb-000889-6Y for pgsql-bugs@lists.postgresql.org; Tue, 14 Mar 2023 14:10:53 +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 1pc5MY-0001Mg-L5 for pgsql-bugs@lists.postgresql.org; Tue, 14 Mar 2023 14:10:52 +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 32EEAm4P2558507; Tue, 14 Mar 2023 10:10:48 -0400 From: Tom Lane To: bokanist@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback. In-reply-to: <17840-c480ed3600feea0e@postgresql.org> References: <17840-c480ed3600feea0e@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 14 Mar 2023 11:18:47 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2558505.1678803048.1@sss.pgh.pa.us> Date: Tue, 14 Mar 2023 10:10:48 -0400 Message-ID: <2558506.1678803048@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > I had this problem when importing data from oracle with oracle_fdw and > auto_explain option set on the postgres server : If the query took too long, > it triggers the auto_explain wich queries things on oracle side where there > was a permission problem. The error bubble up outside of logging scope and > make the transaction rollback after having properly transferred dozen > million records (that then stood as dead tuples). > Logging is one thing with its own scope and it should never interfere with > the behavior of the software. Beside whatever reason triggering the error in > logging scope, the transaction that had no problem itself should not be > rollbacked. It makes no sense. > Isn't there something to refactor in Postgres ? This bug report is not actionable due to complete lack of specifics. Please read https://wiki.postgresql.org/wiki/Guide_to_reporting_problems Having said that, my guess is that if there's anything to be done it would need to be done in oracle_fdw. So you need to take this up with the oracle_fdw authors, not here which is for core-server problem reports. regards, tom lane