Re: Moving a database between servers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Moving a database between servers
Дата
Msg-id 13066.1071153149@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Moving a database between servers  ("Michael ." <phifli@yahoo.com>)
Ответы Re: Moving a database between servers  ("Michael ." <phifli@yahoo.com>)
Список pgsql-general
"Michael ." <phifli@yahoo.com> writes:
> [ SQL function that references a TEMP table ]

> How do I get these functions to import correctly if it
> fails due to this "current_transaction" table not
> being found?

I don't think there is any good solution in 7.3, because it will insist
on trying to validate the function body.  A hack workaround is to create
the "current_transaction" table (as a plain, not TEMP, table), then
import your dump, then drop the table.

7.4 has a better solution (you can turn off function body checking in
CREATE FUNCTION), and 7.4's pg_dump will use it.

            regards, tom lane

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

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: [NOVICE] PostgreSQL Training
Следующее
От: "Nagib Abi Fadel"
Дата:
Сообщение: Should we consider empty fields as NULL values when dealing with string columns ?