]> granicus.if.org Git - postgresql/commit
Create the system catalog infrastructure needed for KNNGIST.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Nov 2010 19:20:39 +0000 (14:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Nov 2010 19:22:17 +0000 (14:22 -0500)
commit725d52d0c27cffe8c99bb78e2b0d2480d5cd702b
tree23aae31466c0f7e0e65762946b0012d30e92ab4d
parent4fc09ad00c3cc95003a5523d85999da1dd4f9d75
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
21 files changed:
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/alter_opfamily.sgml
doc/src/sgml/ref/create_opclass.sgml
doc/src/sgml/xindex.sgml
src/backend/commands/opclasscmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/optimizer/util/plancat.c
src/backend/optimizer/util/predtest.c
src/backend/parser/gram.y
src/backend/utils/cache/lsyscache.c
src/backend/utils/cache/syscache.c
src/bin/pg_dump/pg_dump.c
src/include/catalog/catversion.h
src/include/catalog/indexing.h
src/include/catalog/pg_am.h
src/include/catalog/pg_amop.h
src/include/nodes/parsenodes.h
src/include/nodes/relation.h
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/opr_sanity.sql