Re: Fix log_line_prefix to display the transaction id (%x) for statements not in a transaction block - Mailing list pgsql-hackers

From Quan Zongliang
Subject Re: Fix log_line_prefix to display the transaction id (%x) for statements not in a transaction block
Date
Msg-id 41b00754-0bbd-4a11-b9e7-fbff5b5bf5b7@yeah.net
Whole thread Raw
In response to Re: Fix log_line_prefix to display the transaction id (%x) for statements not in a transaction block  (Quan Zongliang <quanzongliang@yeah.net>)
Responses Re: Fix log_line_prefix to display the transaction id (%x) for statements not in a transaction block
List pgsql-hackers

On 2024/3/11 09:25, Quan Zongliang wrote:
> 
> 
> On 2024/3/4 15:48, jian he wrote:
> 
>> Maybe we can tolerate LOG, first output the query plan then statement.
>>
> It is more appropriate to let the extension solve its own problems.
> Of course, this change is not easy to implement.
> Due to the way XID is assigned, there seems to be no good solution at 
> the moment.
> 
> 
According to the discussion with Jian He. Use the guc hook to check if 
the xid needs to be output. If needed, the statement log can be delayed 
to be output.
Attachment

pgsql-hackers by date:

Previous
From: Stefan Fercot
Date:
Subject: Re: pg_combinebackup fails on file named INCREMENTAL.*
Next
From: Bertrand Drouvot
Date:
Subject: Re: Disallow changing slot's failover option in transaction block