]> granicus.if.org Git - postgresql/commit
Speed up CREATE INDEX CONCURRENTLY's TID sort.
authorRobert Haas <rhaas@postgresql.org>
Wed, 16 Dec 2015 20:23:45 +0000 (15:23 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 16 Dec 2015 20:23:45 +0000 (15:23 -0500)
commitb648b70342fbe712383e8cd76dc8f7feaba9aaa3
tree80c2ccf9e1ebb91f93bec8105f6112aa1c1e268e
parentf27a6b15e6566fba7748d0d9a3fc5bcfd52c4a1b
Speed up CREATE INDEX CONCURRENTLY's TID sort.

Encode TIDs as 64-bit integers to speed up comparisons.  This seems to
speed things up on all platforms, but is even more beneficial when
8-byte integers are passed by value.

Peter Geoghegan.  Design suggestions and review by Tom Lane.  Review
also by Simon Riggs and by me.
src/backend/catalog/index.c