Search Postgresql Archives

Re: pg_restore, search_path and operator class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Jozsef Szalay" <jszalay@xxxxxxxxxxxx> writes:
> 8.1.2 on Linux

> I've got a user defined data type that has been defined in the "public"
> schema. I use pg_dump to dump a table that has a column of this type:
> create myschema.mytable (id public.mytype primary key, name varchar);
> ...
> psql:mytable.dump:48: ERROR:  data type public.mytype has no default
> operator class for access method "btree"

Yeah, this is a known bug; it was fixed in ... umm ... 8.1.3 actually.

2006-02-10 14:01  tgl

	* src/: backend/catalog/namespace.c, backend/commands/indexcmds.c,
	backend/utils/cache/typcache.c, include/catalog/namespace.h,
	include/commands/defrem.h (REL8_1_STABLE): 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.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux