mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Rename columns in new pg_statistic_ext catalog
The new catalog reused a column prefix "sta" from pg_statistic, but this is undesirable, so change the catalog to use prefix "stx" instead. Also, rename the column that lists enabled statistic kinds as "stxkind" rather than "enabled". Discussion: https://postgr.es/m/CAKJS1f_2t5jhSN7huYRFH3w3rrHfG2QU7hiUHsu-Vdjd1rYT3w@mail.gmail.com
This commit is contained in:
@ -1293,8 +1293,8 @@ get_relation_statistics(RelOptInfo *rel, Relation relation)
|
||||
* wasted if no stats are actually built, but it doesn't seem worth
|
||||
* troubling over that case.
|
||||
*/
|
||||
for (i = 0; i < staForm->stakeys.dim1; i++)
|
||||
keys = bms_add_member(keys, staForm->stakeys.values[i]);
|
||||
for (i = 0; i < staForm->stxkeys.dim1; i++)
|
||||
keys = bms_add_member(keys, staForm->stxkeys.values[i]);
|
||||
|
||||
/* add one StatisticExtInfo for each kind built */
|
||||
if (statext_is_kind_built(htup, STATS_EXT_NDISTINCT))
|
||||
|
Reference in New Issue
Block a user