git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b181062) | patch
amcheck: Optimize speed of checking for unique constraint violation
2024年7月28日 10:50:57 +0000 (13:50 +0300)
2024年7月28日 10:50:57 +0000 (13:50 +0300)
commit cdd6ab9d1f5396ec1097d51c21a224aa41118c9c
amcheck: Optimize speed of checking for unique constraint violation

Currently, when amcheck validates a unique constraint, it visits the heap for
each index tuple. This commit implements skipping keys, which have only one
non-dedeuplicated index tuple (quite common case for unique indexes). That
gives substantial economy on index checking time.

Reported-by: Noah Misch
Discussion: https://postgr.es/m/20240325020323.fd.nmisch%40google.com
Author: Alexander Korotkov, Pavel Borisov
contrib/amcheck/verify_nbtree.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /