From: Simon Riggs <simon@2ndQuadrant.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow SET STATISTICS on expression indexes
Date: Wed, 06 Sep 2017 20:48:10 +0000
Message-ID: <E1dphF4-0005gk-Nm@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Allow SET STATISTICS on expression indexes
Index columns are referenced by ordinal number rather than name, e.g.
CREATE INDEX coord_idx ON measured (x, y, (z + t));
ALTER INDEX coord_idx ALTER COLUMN 3 SET STATISTICS 1000;
Incompatibility note for release notes:
\d+ for indexes now also displays Stats Target
Authors: Alexander Korotkov, with contribution by Adrien NAYRAT
Review: Adrien NAYRAT, Simon Riggs
Wordsmith: Simon Riggs
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5b6d13eec72b960eb0f78542199380e49c8583d4
Modified Files
--------------
doc/src/sgml/ref/alter_index.sgml | 39 +++++++++++++++++++++
src/backend/commands/tablecmds.c | 55 +++++++++++++++++++++++-------
src/backend/nodes/copyfuncs.c | 1 +
src/backend/nodes/equalfuncs.c | 1 +
src/backend/parser/gram.y | 16 +++++++++
src/backend/utils/cache/syscache.c | 46 +++++++++++++++++++++++++
src/bin/psql/describe.c | 2 ++
src/bin/psql/tab-complete.c | 5 ++-
src/include/nodes/parsenodes.h | 2 ++
src/include/utils/syscache.h | 3 ++
src/test/regress/expected/alter_table.out | 24 +++++++++++++
src/test/regress/expected/create_index.out | 8 ++---
src/test/regress/sql/alter_table.sql | 16 +++++++++
13 files changed, 201 insertions(+), 17 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: simon@2ndQuadrant.com
Subject: Re: pgsql: Allow SET STATISTICS on expression indexes
In-Reply-To: <E1dphF4-0005gk-Nm@gemulon.postgresql.org>
References: <E1dphF4-0005gk-Nm@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