Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback. - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback.
Date
Msg-id CAKFQuwa2efAF3VWVVoSQBMUTYx3FsERx2y+o93yToEHL88kwzw@mail.gmail.com
Whole thread Raw
In response to Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback.  (Sébastien <bokanist@gmail.com>)
Responses Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Wed, Mar 15, 2023 at 11:24 AM Sébastien <bokanist@gmail.com> wrote:
What more can I say ? It's clear that the auto_explain feature, which is a logging process, can make perfectly fine transactions being rolled back. That makes no sense, the transaction should be committed before any logging event is triggered, for me it's a bug in the core of postgres. It has nothing to do with the plugin used.


It may be an undesired behavior, and I do sympathize with the position, but the current design is quite intentional and long-standing and is not going to be treated as a bug to be fixed immediately and back-patched.

A query you can execute should be incapable of failing if EXPLAIN for the same query is issued.  If some interplay with oracle_fdw causes this fundamental assumption to be falsified then auto_explain, which works under that assumption, and oracle_fdw are incompatible and you will need to decide which one (possibly on a per-transaction basis) you wish to use.

David J.

pgsql-bugs by date:

Previous
From: Sergei Kornilov
Date:
Subject: Re:Certificate expired
Next
From: Tom Lane
Date:
Subject: Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback.