Re: problems restoring database from plain text backup from psql
В списке pgsql-novice по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: problems restoring database from plain text backup from psql |
| Дата | |
| Msg-id | 28834.1135089496@sss.pgh.pa.us обсуждение |
| Ответ на | problems restoring database from plain text backup from psql (Oleg <evdakov@iwk.uka.de>) |
| Список | pgsql-novice |
Oleg <evdakov@iwk.uka.de> writes:
> One more thing to mention is that this database is PostGIS enabled. So I
> had to remove all CREATE FUNCTION commands in the backup file.
Don't remove them; instead, load an up-to-date version of PostGIS into
the database before you try to restore the dump. You'll then get
"duplicate function" complaints during the restore, but you can ignore
those. This avoids the risk of introducing errors into the dump by
manual editing.
> In the mean time I tried to restore with psql:
> psql mydb < mybackup.sql -U postgres
> Unfortunately I have no possibility to enter my password
On Windows you must use "-f mybackup.sql" --- if you use "<" then that
commandeers stdin entirely and so there's no way to enter a password
from the keyboard. Alternatively, start psql normally and then read
the dump file with "\i mybackup.sql".
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера