CREATE FUNCTION .. SET vs. pg_dump

Поиск
Список
Период
Сортировка
От Stefan Kaltenbrunner
Тема CREATE FUNCTION .. SET vs. pg_dump
Дата
Msg-id 5210AA60.4030306@kaltenbrunner.cc
обсуждение исходный текст
Ответы Re: CREATE FUNCTION .. SET vs. pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi all!


While working on upgrading the database of the search system on
postgresql.org to 9.2 I noticed that the dumps that pg_dump generates on
that system are actually invalid and cannot be reloaded without being
hacked on manually...

Simple way to reproduce is using the following:



CREATE TEXT SEARCH CONFIGURATION pg (   PARSER = pg_catalog."default" );

CREATE FUNCTION test() RETURNS INTEGER
LANGUAGE sql SET default_text_search_config TO 'public.pg' AS $$
SELECT 1;
$$;


once you dump that you will end up with an invalid dump because the
function will be dumped before the actual text search configuration is
(re)created. I have not checked in any more detail but I suspect that
this problem is not only affecting default_text_search_config.


Stefan



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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Feature Request on Extensions
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Feature Request on Extensions