git.postgresql.org Git - postgresql.git/commit
2015年6月28日 18:59:29 +0000 (21:59 +0300)
2015年6月28日 19:16:21 +0000 (22:16 +0300)
commit a45c70acf35e43257d86313dcbb7bb0e5201fab1
Fix double-XLogBeginInsert call in GIN page splits.
If data checksums or wal_log_hints is on, and a GIN page is split, the code
to find a new, empty, block was called after having already called
XLogBeginInsert(). That causes an assertion failure or PANIC, if finding the
new block involves updating a FSM page that had not been modified since last
checkpoint, because that update is WAL-logged, which calls XLogBeginInsert
again. Nested XLogBeginInsert calls are not supported.
To fix, rearrange GIN code so that XLogBeginInsert is called later, after
finding the victim buffers.
Reported by Jeff Janes.
This is the main PostgreSQL git repository.
RSS
Atom