postgresql/src/backend/access
Tom Lane 4093ff5737 Store the deletion horizon XID for a deleted GIN page on the right page.
Commit b10714080 moved the GinPageSetDeleteXid() call to a spot where
the "page" variable was pointing to the wrong page, causing the XID
to be inserted on a page that's not being deleted, thus allowing later
GinPageIsRecyclable tests to recycle the deleted page too soon.

It might be a good idea to stop using the single "page" variable for
multiple purposes in this function.  But for the moment I just moved
the GinPageSetDeleteXid() call down beside the GinPageSetDeleted()
call, which seems like a more logical place for it anyway.

Back-patch to v11, as the faulty patch was.  (Fortunately, the bug
hasn't made it into any release yet.)

Discussion: https://postgr.es/m/21620.1581098806@sss.pgh.pa.us
2020-02-09 12:02:57 -05:00
..
brin Fix crash in BRIN inclusion op functions, due to missing datum copy. 2020-01-20 10:36:35 +02:00
common Force tuple conversion when the source has missing attributes. 2020-02-05 20:21:20 +00:00
gin Store the deletion horizon XID for a deleted GIN page on the right page. 2020-02-09 12:02:57 -05:00
gist Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
hash Remove dependency on HeapTuple from predicate locking functions. 2020-01-28 13:13:04 +13:00
heap Make vacuum buffer counters 64 bits wide 2020-02-05 16:59:29 -03:00
index Remove dependency on HeapTuple from predicate locking functions. 2020-01-28 13:13:04 +13:00
nbtree Handle lack of DSM slots in parallel btree build, take 2. 2020-02-05 12:27:00 +13:00
rmgrdesc Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
spgist Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
table Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tablesample Update copyrights for 2020 2020-01-01 12:21:45 -05:00
transam Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00