mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
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
This commit is contained in:
@@ -131,6 +131,9 @@ extern HeapTuple SearchSysCacheAttName(Oid relid, const char *attname);
|
||||
extern HeapTuple SearchSysCacheCopyAttName(Oid relid, const char *attname);
|
||||
extern bool SearchSysCacheExistsAttName(Oid relid, const char *attname);
|
||||
|
||||
extern HeapTuple SearchSysCacheAttNum(Oid relid, int16 attnum);
|
||||
extern HeapTuple SearchSysCacheCopyAttNum(Oid relid, int16 attnum);
|
||||
|
||||
extern Datum SysCacheGetAttr(int cacheId, HeapTuple tup,
|
||||
AttrNumber attributeNumber, bool *isNull);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user