Pg_Restore with --clean option

Поиск
Список
Период
Сортировка
От Jyoti Seth
Тема Pg_Restore with --clean option
Дата
Msg-id 25693180.post@talk.nabble.com
обсуждение исходный текст
Ответы Re: Pg_Restore with --clean option  (Peter Eisentraut <peter_e@gmx.net>)
Re: Pg_Restore with --clean option  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-sql
I want to restore data of a single table. Before restoring the data I
disabled all the triggers and constraints on that table. I used the restore
command with --clean option so that data gets deleted from that table and
then fresh data get inserted.
But this is throwing error: duplicate key value violates unique constraint.

How can I restore the data to a table that already has data?

Thanks,
-- 
View this message in context: http://www.nabble.com/Pg_Restore-with---clean-option-tp25693180p25693180.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Disable Constraints in Postgresql 8.4
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Pg_Restore with --clean option