Re: Bug #787: Backup Files Output Constraints Before Functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #787: Backup Files Output Constraints Before Functions
Дата
Msg-id 7005.1033161000@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug #787: Backup Files Output Constraints Before Functions  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> Would it be possible for pg_dump to do the right thing here?

Not real soon :-(.  It's possible that 7.4 pg_dump will be smart enough
to handle circular dependencies like this one.  The current pg_dump
doesn't even know there is a problem, much less have a strategy for
coping.

I assume you can't simply create the try_it() function before the table
that uses it?  (If you rewrote it as a plpgsql function, you probably
could do that, since the body of a PL function isn't checked when it's
defined.  Perhaps this can serve as a workaround until pg_dump gets
smarter about dependencies.)

            regards, tom lane

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

Предыдущее
От: Adam Doligalski
Дата:
Сообщение: Nie ma mnie w biurze
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: Nie ma mnie w biurze