Repository navigation
Tags
Tags
bcs tip from which v20261118 (13 NUMA patches) and basepin-v2 were ge… …nerated, 2026-11-18
bcs before the shared_buffers_numa=off / avoid-idle / pg_buffercache_… …partitions fixes
bcs before commit-message vocabulary fix, 2026-11-18
bcs before the max_pinned_blocks resize fix (crash on raising the GUC… … after the first base pin)
GiST root base-pin caller: mechanism 49,999/50,000 local, throughput … …+3.8% @48c vs GUC=0, +2.0% vs control (within noise). Not proposed.
BARK: convert a versioned multikey index that becomes a constraint's A multikey index on a table whose locator is versioned stores tags (BARK_META_MKTAGS) and lets updates keep a row's locator. Such an index can later become unique or an exclusion constraint's index (DocumentDB's prepareUnique does that with only AccessShareLock on the table), and an update whose statement began before the change can still keep its locator. While it is in progress a dirty snapshot sees two versions at one locator, each reached only through its own entries, and a check that kept one row per locator could miss the conflicting version and commit a duplicate. Until the conversion has settled, a non-MVCC scan of such an index judges every entry by itself and rechecks every row, keeping one row per locator only for the row its own transaction inserted last. The meta page records the conversion (CONVERTING, then SETTLED once a VACUUM has waited out every writer that could still keep a locator; an autovacuum worker does not block), inserts store untagged entries from SETTLED on, and a VACUUM that finds no tagged entry left clears the bits and MKTAGS, leaving the index a REINDEX would build. amcheck and the page validator check the bits. test_versioned_tableam gains real in-place updates on a HOT chain (keep_locator = inplace), and the isolation test bark_mk_convert shows the check waiting for the in-place update and then failing or succeeding by its outcome.
BARK: convert a versioned multikey index that becomes a constraint's A multikey index on a table whose locator is versioned stores tags (BARK_META_MKTAGS) and lets updates keep a row's locator. Such an index can later become unique or an exclusion constraint's index (DocumentDB's prepareUnique does that with only AccessShareLock on the table), and an update whose statement began before the change can still keep its locator. While it is in progress a dirty snapshot sees two versions at one locator, each reached only through its own entries, and a check that kept one row per locator could miss the conflicting version and commit a duplicate. Until the conversion has settled, a non-MVCC scan of such an index judges every entry by itself and rechecks every row, keeping one row per locator only for the row its own transaction inserted last. The meta page records the conversion (CONVERTING, then SETTLED once a VACUUM has waited out every writer that could still keep a locator; an autovacuum worker does not block), inserts store untagged entries from SETTLED on, and a VACUUM that finds no tagged entry left clears the bits and MKTAGS, leaving the index a REINDEX would build. amcheck and the page validator check the bits. test_versioned_tableam gains real in-place updates on a HOT chain (keep_locator = inplace), and the isolation test bark_mk_convert shows the check waiting for the in-place update and then failing or succeeding by its outcome.
BARK: convert a versioned multikey index that becomes a constraint's A multikey index on a table whose locator is versioned stores tags (BARK_META_MKTAGS) and lets updates keep a row's locator. Such an index can later become unique or an exclusion constraint's index (DocumentDB's prepareUnique does that with only AccessShareLock on the table), and an update whose statement began before the change can still keep its locator. While it is in progress a dirty snapshot sees two versions at one locator, each reached only through its own entries, and a check that kept one row per locator could miss the conflicting version and commit a duplicate. Until the conversion has settled, a non-MVCC scan of such an index judges every entry by itself and rechecks every row, keeping one row per locator only for the row its own transaction inserted last. The meta page records the conversion (CONVERTING, then SETTLED once a VACUUM has waited out every writer that could still keep a locator; an autovacuum worker does not block), inserts store untagged entries from SETTLED on, and a VACUUM that finds no tagged entry left clears the bits and MKTAGS, leaving the index a REINDEX would build. amcheck and the page validator check the bits. test_versioned_tableam gains real in-place updates on a HOT chain (keep_locator = inplace), and the isolation test bark_mk_convert shows the check waiting for the in-place update and then failing or succeeding by its outcome.
BARK: convert a versioned multikey index that becomes a constraint's A multikey index on a table whose locator is versioned stores tags (BARK_META_MKTAGS) and lets updates keep a row's locator. Such an index can later become unique or an exclusion constraint's index (DocumentDB's prepareUnique does that with only AccessShareLock on the table), and an update whose statement began before the change can still keep its locator. While it is in progress a dirty snapshot sees two versions at one locator, each reached only through its own entries, and a check that kept one row per locator could miss the conflicting version and commit a duplicate. Until the conversion has settled, a non-MVCC scan of such an index judges every entry by itself and rechecks every row, keeping one row per locator only for the row its own transaction inserted last. The meta page records the conversion (CONVERTING, then SETTLED once a VACUUM has waited out every writer that could still keep a locator; an autovacuum worker does not block), inserts store untagged entries from SETTLED on, and a VACUUM that finds no tagged entry left clears the bits and MKTAGS, leaving the index a REINDEX would build. amcheck and the page validator check the bits. test_versioned_tableam gains real in-place updates on a HOT chain (keep_locator = inplace), and the isolation test bark_mk_convert shows the check waiting for the in-place update and then failing or succeeding by its outcome.
BARK: convert a versioned multikey index that becomes a constraint's A multikey index on a table whose locator is versioned stores tags (BARK_META_MKTAGS) and lets updates keep a row's locator. Such an index can later become unique or an exclusion constraint's index (DocumentDB's prepareUnique does that with only AccessShareLock on the table), and an update whose statement began before the change can still keep its locator. While it is in progress a dirty snapshot sees two versions at one locator, each reached only through its own entries, and a check that kept one row per locator could miss the conflicting version and commit a duplicate. Until the conversion has settled, a non-MVCC scan of such an index judges every entry by itself and rechecks every row, keeping one row per locator only for the row its own transaction inserted last. The meta page records the conversion (CONVERTING, then SETTLED once a VACUUM has waited out every writer that could still keep a locator; an autovacuum worker does not block), inserts store untagged entries from SETTLED on, and a VACUUM that finds no tagged entry left clears the bits and MKTAGS, leaving the index a REINDEX would build. amcheck and the page validator check the bits. test_versioned_tableam gains real in-place updates on a HOT chain (keep_locator = inplace), and the isolation test bark_mk_convert shows the check waiting for the in-place update and then failing or succeeding by its outcome.
PreviousNext