]> granicus.if.org Git - postgresql/commit
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:33 +0000 (19:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Feb 2006 19:01:33 +0000 (19:01 +0000)
commitbce1d83ee55d0f217c4254216a5c7ccec46f87ad
tree755c5bdca0a7712ef6a46ed335ecac68c02c0264
parentf28106381a8f03c8c32d27c8f94934b5a8726262
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