aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/trigger.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-04-14 12:33:15 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-04-14 12:33:15 -0400
commit2a67d6440db4360efff2078a05bc172ca8f34b2b (patch)
tree03ea3f0c673cd5fc1f921e013ab84e54624e9254 /src/backend/commands/trigger.c
parente013288a6509549866c5d531257480f159c6900d (diff)
downloadpostgresql-2a67d6440db4360efff2078a05bc172ca8f34b2b.tar.gz
postgresql-2a67d6440db4360efff2078a05bc172ca8f34b2b.zip
Add commentary explaining why MaxIndexTuplesPerPage calculation is safe.
MaxIndexTuplesPerPage ignores the fact that btree indexes sometimes store tuples with no data payload. But it also ignores the possibility of "special space" on index pages, which offsets that, so that the result isn't an underestimate. This all seems worth documenting, though. In passing, remove #define MinIndexTupleSize, which was added by commit 2c03216d8 but not used in that commit nor later ones. Comment text by me; issue noticed by Peter Geoghegan. Discussion: https://postgr.es/m/CAH2-WzkQmb54Kbx-YHXstRKXcNc+_87jwV3DRb54xcybLR7Oig@mail.gmail.com
Diffstat (limited to 'src/backend/commands/trigger.c')
0 files changed, 0 insertions, 0 deletions