]> granicus.if.org Git - postgresql/commit
Cleanup covering infrastructure
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 12 Apr 2018 13:37:22 +0000 (16:37 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 12 Apr 2018 13:37:22 +0000 (16:37 +0300)
commitc266ed31a8a3beed3533e6a78faeca78234cbd43
tree7e84de64e37a2a7f17739fb28fcbcded62f704ff
parent08ea7a2291db21a618d19d612c8060cda68f1892
Cleanup covering infrastructure

- Explicitly forbids opclass, collation and indoptions (like DESC/ASC etc) for
  including columns. Throw an error if user points that.
- Truncated storage arrays for such attributes to store only key atrributes,
  added assertion checks.
- Do not check opfamily and collation for including columns in
  CompareIndexInfo()

Discussion: https://www.postgresql.org/message-id/5ee72852-3c4e-ee35-e2ed-c1d053d45c08@sigaev.ru
src/backend/catalog/index.c
src/backend/commands/indexcmds.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/util/plancat.c
src/backend/parser/parse_utilcmd.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/cache/relcache.c