[COMMITTERS] pgsql: Don’t push nextid too far forwards in recovery

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема [COMMITTERS] pgsql: Don’t push nextid too far forwards in recovery
Дата
Msg-id E1d0QQJ-0003xI-KV@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Don’t push nextid too far forwards in recovery

Doing so allows various crash possibilities. Fix by avoiding
having PrescanPreparedTransactions() increment
ShmemVariableCache->nextXid when it has no 2PC files

Bug found by Jeff Janes, diagnosis and patch by Pavan Deolasee,
then patch re-designed for clarity and full accuracy by
Michael Paquier.

Reported-by: Jeff Janes
Author: Pavan Deolasee, Michael Paquier
Discussion: https://postgr.es/m/CAMkU=1zMLnH_i1-PVQ-biZzvNx7VcuatriquEnh7HNk6K8Ss3Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aa203e76004daaee3d70b19cc727ed17b87b3d3a

Modified Files
--------------
src/backend/access/transam/twophase.c | 77 ++++++++++++++++-------------------
1 file changed, 36 insertions(+), 41 deletions(-)


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: [COMMITTERS] pgsql: Allow COMMENT ON COLUMN with partitioned tables
Следующее
От: Simon Riggs
Дата:
Сообщение: [COMMITTERS] pgsql: Exit correctly from PrepareRedoRemove() when not found