Replacing data

Поиск
Список
Период
Сортировка
От chelsea boot
Тема Replacing data
Дата
Msg-id 20060615112250.68776.qmail@web86802.mail.ukl.yahoo.com
обсуждение исходный текст
Ответы Re: Replacing data  (Frank Bax <fbax@sympatico.ca>)
Re: Replacing data  (Aarni Ruuhimäki <aarni@kymi.com>)
Список pgsql-novice
Hi
 
I want to replace all the data in a database with an earlier backup I took.  I have a plain sql-script dump (backup.sql) and am using the following command to replace the current data:
 
psql -U postgres dbname < backup.sql
 
However, the command seems to append the data to the database so that I have the old data and any new data added since the backup was taken.  How can I replace all the data so that my database only contains data from the backup?  Maybe I'm using the wrong backup and restore method?
 
Thanks

Send instant messages to your online friends http://uk.messenger.yahoo.com

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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: order by desc - with zeros on top
Следующее
От: Frank Bax
Дата:
Сообщение: Re: Replacing data