From ee6922112e9b3c02b995bd1d838c9a261f060133 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 17 Apr 2017 18:34:29 -0300 Subject: 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 --- doc/src/sgml/catalogs.sgml | 22 ++++++++++++---------- doc/src/sgml/planstats.sgml | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 5254bb3025a..ef36e87a720 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -4291,21 +4291,21 @@ - starelid + stxrelid oid pg_class.oid The table that the described columns belongs to - staname + stxname name Name of the statistic. - stanamespace + stxnamespace oid pg_namespace.oid @@ -4314,24 +4314,26 @@ - staowner + stxowner oid pg_authid.oid Owner of the statistic - staenabled + stxkind char[] - An array with the modes of the enabled statistic types, encoded as - d for ndistinct coefficients. + An array with the modes of the enabled statistic types. Valid values + are: + d for ndistinct coefficients, + f for functional dependencies. - stakeys + stxkeys int2vector pg_attribute.attnum @@ -4342,7 +4344,7 @@ - standistinct + stxndistinct pg_ndistinct @@ -4351,7 +4353,7 @@ - stadependencies + stxdependencies pg_dependencies diff --git a/doc/src/sgml/planstats.sgml b/doc/src/sgml/planstats.sgml index a4f91c737af..124e7e20ced 100644 --- a/doc/src/sgml/planstats.sgml +++ b/doc/src/sgml/planstats.sgml @@ -525,8 +525,8 @@ EXPLAIN ANALYZE SELECT * FROM t WHERE a = 1 AND b = 1; you may do this: -SELECT staname,stadependencies FROM pg_statistic_ext WHERE staname = 's1'; - staname | stadependencies +SELECT stxname,stxdependencies FROM pg_statistic_ext WHERE stxname = 's1'; + stxname | stxdependencies ---------+-------------------------------------------- s1 | [{1 => 2 : 1.000000}, {2 => 1 : 1.000000}] (1 row) -- cgit v1.2.3