Re: Do we need to handle orphaned prepared transactions in the server?
От | Craig Ringer |
---|---|
Тема | Re: Do we need to handle orphaned prepared transactions in the server? |
Дата | |
Msg-id | CAMsr+YFk=FuyLV2sqcYx9Y8xfB-y6rMO70KcbnjuKria2_rAWQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Do we need to handle orphaned prepared transactions in the server? (Craig Ringer <craig@2ndquadrant.com>) |
Ответы |
Re: Do we need to handle orphaned prepared transactions in the server?
|
Список | pgsql-hackers |
On Thu, 16 Apr 2020 at 13:23, Craig Ringer <craig@2ndquadrant.com> wrote:
Just discarding the prepared xacts is not the answer though.
We wouldn't need to track a fine-grained snapshot with an in-progress list (or inverted in-progress list like historic snapshots) for these. We'd just remember the needed xid range in [xmin,xmax] form. And we could even do the same for live backends' PGXACT - it might not be worth the price there, but if you have workloads that have batch xacts + high churn rate xacts it'd be pretty appealing.
It wouldn't help with xid wraparound concerns, but it could help a lot with bloat caused by old snapshots for some very common workloads.
В списке pgsql-hackers по дате отправления: