Re: Something is wrong with wal_compression

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Something is wrong with wal_compression
Дата
Msg-id 3248602.1674785044@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Something is wrong with wal_compression  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Something is wrong with wal_compression  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Fri, Jan 27, 2023 at 1:30 PM Michael Paquier <michael@paquier.xyz> wrote:
>> My opinion would be to make this function more reliable, FWIW, even if
>> that involves a performance impact when called in a close loop by
>> forcing more WAL flushes to ensure its report durability and
>> consistency.

> Yeah, the other thread has a patch for that.  But it would hurt some
> workloads.

I think we need to get the thing correct first and worry about
performance later.  What's wrong with simply making pg_xact_status
write and flush a record of the XID's existence before returning it?
Yeah, it will cost you if you use that function, but not if you don't.

> A better patch would do some kind of amortisation
> (reserving N xids at a time or some such scheme, while being careful
> to make sure the right CLOG pages etc exist if you crash and skip a
> bunch of xids on recovery) but be more complicated.

Maybe that would be appropriate for HEAD, but I'd be wary of adding
anything complicated to the back branches.  This is clearly a very
under-tested area.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: wrong Append/MergeAppend elision?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: New strategies for freezing, advancing relfrozenxid early