diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-02-24 11:16:04 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-02-24 11:16:04 -0500 |
commit | 9de2cc455eb9c60dda979c32985df967522a8ab2 (patch) | |
tree | 5af9fa03ece686e4ac81f6ec0dd36ed80a6aa51f /src/backend/access/gist/gistsplit.c | |
parent | e889422d98e066dcf095fa275fbcb14ffd45708c (diff) | |
download | postgresql-9de2cc455eb9c60dda979c32985df967522a8ab2.tar.gz postgresql-9de2cc455eb9c60dda979c32985df967522a8ab2.zip |
Fix confusion about data type of pg_class.relpages and relallvisible.
Although they're exposed as int4 in pg_class, relpages and
relallvisible are really of type BlockNumber, that is uint32.
Correct type puns in relation_statistics_update() and remove
inappropriate range-checks. The type puns are only cosmetic
issues, but the range checks would cause failures with huge
relations.
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Author: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/614341.1740269035@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistsplit.c')
0 files changed, 0 insertions, 0 deletions