OSDN Git Service

Change search for default operator classes so that it examines all opclasses
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Feb 2006 19:01:12 +0000 (19:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Feb 2006 19:01:12 +0000 (19:01 +0000)
commit3ac1ac58cc34b87fd5da2abc146bb386ef587dec
treef55eab643dadc660a2e9532e415549cea528905f
parentb35fdaaa1a8439b9437190287ed1ed17edf02efd
Change search for default operator classes so that it examines all opclasses
regardless of the current schema search path.  Since CREATE OPERATOR CLASS
only allows one default opclass per datatype regardless of schemas, this
should have minimal impact, and it fixes problems with failure to find a
desired opclass while restoring dump files.  Per discussion at
http://archives.postgresql.org/pgsql-hackers/2006-02/msg00284.php.
Remove now-redundant-or-unused code in typcache.c and namespace.c,
and backpatch as far as 8.0.
src/backend/catalog/namespace.c
src/backend/commands/indexcmds.c
src/backend/utils/cache/typcache.c
src/include/catalog/namespace.h
src/include/commands/defrem.h