Re: Subtle pg_dump problem...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Subtle pg_dump problem...
Дата
Msg-id 26087.1084380262@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Subtle pg_dump problem...  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: Subtle pg_dump problem...
Список pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> Hmm, what other hackers thinks ? This is not just a tsearch2 problem,
> it could happens with any such kind of things, like defining user defined
> type in one scheme, using it in another, dumping separate data.
> Could pg_dump  be enough smart to set search_path properly  ?

It could not.  I think the fundamental point here is that it is a real
bad idea for the tsearch routines to make any assumptions about the
current search path.  What I would suggest is that the internal objects
used by the tsearch routines (such as pg_ts_cfg) should be required to
live in a specific schema ("tsearch2" seems like a good name) and that
all the internal references inside the tsearch functions should be fully
qualified names.

You could perhaps make this private schema name be selectable at the
time tsearch is built ... but I'm not sure it's worth the trouble.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: threads stuff/UnixWare
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: threads stuff/UnixWare