pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Rename columns in new pg_statistic_ext catalog
Date: Mon, 17 Apr 2017 21:37:37 +0000
Message-ID: <E1d0EL3-0006KO-Uz@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ee6922112e9b3c02b995bd1d838c9a261f060133

Modified Files
--------------
doc/src/sgml/catalogs.sgml                  | 22 ++++++++++---------
doc/src/sgml/planstats.sgml                 |  4 ++--
src/backend/catalog/aclchk.c                |  2 +-
src/backend/catalog/heap.c                  |  8 +++----
src/backend/catalog/objectaddress.c         | 12 +++++-----
src/backend/commands/statscmds.c            | 32 +++++++++++++--------------
src/backend/optimizer/util/plancat.c        |  4 ++--
src/backend/statistics/dependencies.c       |  4 ++--
src/backend/statistics/extended_stats.c     | 34 ++++++++++++++---------------
src/backend/statistics/mvdistinct.c         |  2 +-
src/backend/utils/adt/ruleutils.c           | 18 +++++++--------
src/backend/utils/cache/relcache.c          |  4 ++--
src/backend/utils/cache/syscache.c          |  4 ++--
src/bin/pg_dump/pg_dump.c                   | 20 ++++++++---------
src/bin/psql/describe.c                     | 14 ++++++------
src/include/catalog/catversion.h            |  2 +-
src/include/catalog/indexing.h              |  4 ++--
src/include/catalog/pg_statistic_ext.h      | 34 ++++++++++++++---------------
src/test/regress/expected/alter_generic.out |  8 +++----
src/test/regress/expected/stats_ext.out     | 30 ++++++++++++-------------
src/test/regress/sql/alter_generic.sql      |  6 ++---
src/test/regress/sql/stats_ext.sql          | 14 ++++++------
22 files changed, 142 insertions(+), 140 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1d0EL3-0006KO-Uz@gemulon.postgresql.org>
Permalink:  ../E1d0EL3-0006KO-Uz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1d0EL3-0006KO-Uz@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Rename columns in new pg_statistic_ext catalog
  In-Reply-To: <E1d0EL3-0006KO-Uz@gemulon.postgresql.org>
  References: <E1d0EL3-0006KO-Uz@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox