Create the system catalog infrastructure needed for KNNGIST.
This commit adds columns amoppurpose and amopsortfamily to pg_amop, and column amcanorderbyop to pg_am. For the moment all the entries in amcanorderbyop are "false", since the underlying support isn't there yet. Also, extend the CREATE OPERATOR CLASS/ALTER OPERATOR FAMILY commands with [ FOR SEARCH | FOR ORDER BY sort_operator_family ] clauses to allow the new columns of pg_amop to be populated, and create pg_dump support for dumping that information. I also added some documentation, although it's perhaps a bit premature given that the feature doesn't do anything useful yet. Teodor Sigaev, Robert Haas, Tom Lane
Showing
- doc/src/sgml/catalogs.sgml 66 additions, 3 deletionsdoc/src/sgml/catalogs.sgml
- doc/src/sgml/ref/alter_opfamily.sgml 17 additions, 1 deletiondoc/src/sgml/ref/alter_opfamily.sgml
- doc/src/sgml/ref/create_opclass.sgml 17 additions, 1 deletiondoc/src/sgml/ref/create_opclass.sgml
- doc/src/sgml/xindex.sgml 62 additions, 3 deletionsdoc/src/sgml/xindex.sgml
- src/backend/commands/opclasscmds.c 73 additions, 5 deletionssrc/backend/commands/opclasscmds.c
- src/backend/nodes/copyfuncs.c 1 addition, 0 deletionssrc/backend/nodes/copyfuncs.c
- src/backend/nodes/equalfuncs.c 1 addition, 0 deletionssrc/backend/nodes/equalfuncs.c
- src/backend/optimizer/util/plancat.c 1 addition, 0 deletionssrc/backend/optimizer/util/plancat.c
- src/backend/optimizer/util/predtest.c 5 additions, 3 deletionssrc/backend/optimizer/util/predtest.c
- src/backend/parser/gram.y 11 additions, 3 deletionssrc/backend/parser/gram.y
- src/backend/utils/cache/lsyscache.c 12 additions, 3 deletionssrc/backend/utils/cache/lsyscache.c
- src/backend/utils/cache/syscache.c 2 additions, 2 deletionssrc/backend/utils/cache/syscache.c
- src/bin/pg_dump/pg_dump.c 123 additions, 40 deletionssrc/bin/pg_dump/pg_dump.c
- src/include/catalog/catversion.h 1 addition, 1 deletionsrc/include/catalog/catversion.h
- src/include/catalog/indexing.h 1 addition, 1 deletionsrc/include/catalog/indexing.h
- src/include/catalog/pg_am.h 30 additions, 28 deletionssrc/include/catalog/pg_am.h
- src/include/catalog/pg_amop.h 379 additions, 367 deletionssrc/include/catalog/pg_amop.h
- src/include/nodes/parsenodes.h 1 addition, 0 deletionssrc/include/nodes/parsenodes.h
- src/include/nodes/relation.h 1 addition, 0 deletionssrc/include/nodes/relation.h
- src/test/regress/expected/opr_sanity.out 62 additions, 7 deletionssrc/test/regress/expected/opr_sanity.out
Loading
Please register or sign in to comment