Re: Help! Database restored with disabled triggers

Поиск
Список
Период
Сортировка
От Joe Kramer
Тема Re: Help! Database restored with disabled triggers
Дата
Msg-id b4c00a110909230814l61064512r477803ed818db3ea@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Help! Database restored with disabled triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Help! Database restored with disabled triggers
Список pgsql-general
On Thu, Sep 24, 2009 at 12:53 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Joe Kramer <cckramer@gmail.com> writes:
>> I have database backup schema+data in text (non-compressed) format.
>> Backup is created using "pg_dump -i  -h ... -U ... -f dump.sql".
>> I run it with "psql <dump.sql" but after restore all triggers are disabled!
>
> You sure they weren't disabled in the source database?  AFAICS pg_dump
> just duplicates the trigger state it sees in the source.
>
>                        regards, tom lane
>

Yes, I'm absolutely sure they are not disabled. And in the SQL dump
file there are no commands that would disable them.
It simply goes on to creating triggers, but in the end they are all disabled.

Regards.

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

Предыдущее
От: Joe Kramer
Дата:
Сообщение: Re: Help! Database restored with disabled triggers
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Help! Database restored with disabled triggers