pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix initialization of fake LSN for unlogged relations 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix initialization of fake LSN for unlogged relations @ 2019-10-27 04:56 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2019-10-27 04:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix initialization of fake LSN for unlogged relations 9155580 has changed the value of the first fake LSN for unlogged relations from 1 to FirstNormalUnloggedLSN (aka 1000), GiST requiring a non-zero LSN on some pages to allow an interlocking logic to work, but its value was still initialized to 1 at the beginning of recovery or after running pg_resetwal. This fixes the initialization for both code paths. Author: Takayuki Tsunakawa Reviewed-by: Dilip Kumar, Kyotaro Horiguchi, Michael Paquier Discussion: https://postgr.es/m/OSBPR01MB2503CE851940C17DE44AE3D9FE6F0@OSBPR01MB2503.jpnprd01.prod.outlook.com Backpatch-through: 12 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/51970fa8df9b32b5501ca1cb9d5b805894c1e064 Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- src/bin/pg_resetwal/pg_resetwal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix initialization of fake LSN for unlogged relations @ 2019-10-27 04:56 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2019-10-27 04:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix initialization of fake LSN for unlogged relations 9155580 has changed the value of the first fake LSN for unlogged relations from 1 to FirstNormalUnloggedLSN (aka 1000), GiST requiring a non-zero LSN on some pages to allow an interlocking logic to work, but its value was still initialized to 1 at the beginning of recovery or after running pg_resetwal. This fixes the initialization for both code paths. Author: Takayuki Tsunakawa Reviewed-by: Dilip Kumar, Kyotaro Horiguchi, Michael Paquier Discussion: https://postgr.es/m/OSBPR01MB2503CE851940C17DE44AE3D9FE6F0@OSBPR01MB2503.jpnprd01.prod.outlook.com Backpatch-through: 12 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9f0172bba75028a7a5b1a470406adcc2af0f3b86 Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- src/bin/pg_resetwal/pg_resetwal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-10-27 04:56 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-10-27 04:56 pgsql: Fix initialization of fake LSN for unlogged relations Michael Paquier <michael@paquier.xyz> 2019-10-27 04:56 pgsql: Fix initialization of fake LSN for unlogged relations Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox