mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +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:
@@ -134,7 +134,7 @@ statext_ndistinct_load(Oid mvoid)
|
||||
elog(ERROR, "cache lookup failed for statistics %u", mvoid);
|
||||
|
||||
ndist = SysCacheGetAttr(STATEXTOID, htup,
|
||||
Anum_pg_statistic_ext_standistinct, &isnull);
|
||||
Anum_pg_statistic_ext_stxndistinct, &isnull);
|
||||
if (isnull)
|
||||
elog(ERROR,
|
||||
"requested statistic kind %c not yet built for statistics %u",
|
||||
|
||||
Reference in New Issue
Block a user