pg_dump, problem with user defined types?
pg_dump, problem with user defined types?
От:
Keith Parks <emkxp01@mtcc.demon.co.uk>
Дата:
Hi All, I can't confirm this against the current latest CVS as my local tree has undergone some changes, but we seem to have a problem with "pg_dump" and user defined types. If I create a type like so:- CREATE FUNCTION sotime_in (opaque ) RETURNS opaque AS '/usr/local/pgsql/shlibs/obj/sotimes.so' LANGUAGE 'C'; CREATE FUNCTION sotime_out (opaque ) RETURNS opaque AS '/usr/local/pgsql/shlibs/obj/sotimes.so' LANGUAGE 'C'; CREATE TYPE sotime ( internallength = 2, externallength = 5, input = sotime_in, output = sotime_out, send = sotime_out, receive = sotime_in, default = '-',passedbyvalue); pg_dump gives me back :- CREATE TYPE sotime ( internallength = 2, externallength = 5, input = sotime_in_18272, output = sotime_out_18304, send = sotime_out_18304, receive = sotime_in_18272, default = '-',passedbyvalue); CREATE TYPE _sotime ( internallength = -1, externallength = -1, input = array_in_750, output = array_out_751, send = array_out_751, receive = array_in_750, default = '-'); .