summaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/relcache.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-04-17 18:34:29 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-04-17 18:34:29 -0300
commitee6922112e9b3c02b995bd1d838c9a261f060133 (patch)
tree2d8678c97967dbdccdfa692a4b75fdd5f21cbe06 /src/backend/utils/cache/relcache.c
parent8c5cdb7f4f6e1d6a6104cb58ce4f23453891651b (diff)
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
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r--src/backend/utils/cache/relcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index 5bf02d4c0e6..85c6b613102 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -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)));