mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +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:
4
src/backend/utils/cache/relcache.c
vendored
4
src/backend/utils/cache/relcache.c
vendored
@@ -4497,9 +4497,9 @@ RelationGetStatExtList(Relation relation)
|
||||
*/
|
||||
result = NIL;
|
||||
|
||||
/* Prepare to scan pg_statistic_ext for entries having starelid = this rel. */
|
||||
/* Prepare to scan pg_statistic_ext for entries having stxrelid = this rel. */
|
||||
ScanKeyInit(&skey,
|
||||
Anum_pg_statistic_ext_starelid,
|
||||
Anum_pg_statistic_ext_stxrelid,
|
||||
BTEqualStrategyNumber, F_OIDEQ,
|
||||
ObjectIdGetDatum(RelationGetRelid(relation)));
|
||||
|
||||
|
||||
4
src/backend/utils/cache/syscache.c
vendored
4
src/backend/utils/cache/syscache.c
vendored
@@ -731,8 +731,8 @@ static const struct cachedesc cacheinfo[] = {
|
||||
StatisticExtNameIndexId,
|
||||
2,
|
||||
{
|
||||
Anum_pg_statistic_ext_staname,
|
||||
Anum_pg_statistic_ext_stanamespace,
|
||||
Anum_pg_statistic_ext_stxname,
|
||||
Anum_pg_statistic_ext_stxnamespace,
|
||||
0,
|
||||
0
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user