| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Create the system catalog infrastructure needed for KNNGIST. |
| Date: | 2010-11-24 19:30:08 |
| Message-ID: | E1PLL2e-0002wz-DO@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=725d52d0c27cffe8c99bb78e2b0d2480d5cd702b
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 69 +++-
doc/src/sgml/ref/alter_opfamily.sgml | 18 +-
doc/src/sgml/ref/create_opclass.sgml | 18 +-
doc/src/sgml/xindex.sgml | 65 +++-
src/backend/commands/opclasscmds.c | 78 +++-
src/backend/nodes/copyfuncs.c | 1 +
src/backend/nodes/equalfuncs.c | 1 +
src/backend/optimizer/util/plancat.c | 1 +
src/backend/optimizer/util/predtest.c | 8 +-
src/backend/parser/gram.y | 14 +-
src/backend/utils/cache/lsyscache.c | 15 +-
src/backend/utils/cache/syscache.c | 4 +-
src/bin/pg_dump/pg_dump.c | 163 +++++--
src/include/catalog/catversion.h | 2 +-
src/include/catalog/indexing.h | 2 +-
src/include/catalog/pg_am.h | 58 ++--
src/include/catalog/pg_amop.h | 746 +++++++++++++++---------------
src/include/nodes/parsenodes.h | 1 +
src/include/nodes/relation.h | 1 +
src/test/regress/expected/opr_sanity.out | 69 +++-
src/test/regress/sql/opr_sanity.sql | 54 ++-
21 files changed, 913 insertions(+), 475 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2010-11-24 22:04:28 | pgsql: When reporting the server as not responding, if the hostname was |
| Previous Message | Peter Eisentraut | 2010-11-23 22:03:54 | pgsql: Add index entries for more functions |