Allow SET STATISTICS on expression indexes
Simon Riggs <simon@2ndQuadrant.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_index.sgml | modified | +39 −0 |
| src/backend/commands/tablecmds.c | modified | +43 −12 |
| src/backend/nodes/copyfuncs.c | modified | +1 −0 |
| src/backend/nodes/equalfuncs.c | modified | +1 −0 |
| src/backend/parser/gram.y | modified | +16 −0 |
| src/backend/utils/cache/syscache.c | modified | +46 −0 |
| src/bin/psql/describe.c | modified | +2 −0 |
| src/bin/psql/tab-complete.c | modified | +4 −1 |
| src/include/nodes/parsenodes.h | modified | +2 −0 |
| src/include/utils/syscache.h | modified | +3 −0 |
| src/test/regress/expected/alter_table.out | modified | +24 −0 |
| src/test/regress/expected/create_index.out | modified | +4 −4 |
| src/test/regress/sql/alter_table.sql | modified | +16 −0 |