reltuplesは100000になっている。 • histogram_boundsの値域も1~100000の範囲 $ psql testdb2 -x -c "SELECT relname, reltuples FROM pg_class WHERE relname = 'pgbench_accounts';" -[ RECORD 1 ]--------------- relname | pgbench_accounts reltuples | 100000 $ psql testdb2 -t -x -c "SELECT relname, reltuples FROM pg_class WHERE relname = 'pgbench_accounts';" relname | pgbench_accounts reltuples | 100000 $ psql testdb2 -t -x -c "SELECT tablename,attname,histogram_bounds FROM pg_stats WHERE tablename = 'pgbench_accounts' and attname = 'aid';" tablename | pgbench_accounts attname | aid histogram_bounds | {4,929,1943,2997,3980,5036,6069,7132,8156,9161,10128,11110,12096,13149,14104,15141,16272,17213,18255,19307,202 61,21310,22260,23203,24204,25274,26248,27308,28337,29376,30379,31340,32361,33326,34415,35362,36267,37191,38191 ,39234,40227,41258,42192,43216,44299,45251,46294,47350,48362,49409,50387,51326,52269,53258,54214,55164,56134,5 7059,58152,59215,60207,61123,62104,63097,64109,65133,66117,67139,68086,69138,70134,70977,72063,73018,74067,750 64,76103,77074,78104,79071,80028,80982,81843,82918,83937,84948,85933,86899,87913,88927,89868,90922,91871,92928 ,93905,94975,96063,97067,98088,99054,99997}