Re: Something is wrong with wal_compression - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Something is wrong with wal_compression
Date
Msg-id 20230128025758.h47sg4cpgjz4v3s2@awork3.anarazel.de
Whole thread Raw
In response to Re: Something is wrong with wal_compression  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Something is wrong with wal_compression
List pgsql-hackers
Hi,

On 2023-01-27 16:15:08 +1300, Thomas Munro wrote:
> It would be pg_current_xact_id() that would have to pay the cost of
> the WAL flush, not pg_xact_status() itself, but yeah that's what the
> patch does (with some optimisations).  I guess one question is whether
> there are any other reasonable real world uses of
> pg_current_xact_id(), other than the original goal[1].

txid_current() is a lot older than pg_current_xact_id(), and they're backed by
the same code afaict. 8.4 I think.

Unfortunately txid_current() is used in plenty montiring setups IME.

I don't think it's a good idea to make a function that was quite cheap for 15
years, suddenly be several orders of magnitude more expensive...

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: bug: copy progress reporting of backends which run multiple COPYs
Next
From: Maciek Sakrejda
Date:
Subject: Re: Something is wrong with wal_compression