Re: pg_restore problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_restore problem
Дата
Msg-id 8436.1029338024@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_restore problem  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Ответы Re: pg_restore problem  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Список pgsql-novice
"Jules Alberts" <jules.alberts@arbodienst-limburg.nl> writes:
> BTW in between I do a dropdb mydb

You probably defined plpgsql in template1, so that when you do "createdb
mydb" there's already a plpgsql definition in mydb.  This confuses
pg_restore, which is expecting to restore into a virgin database.
Try "createdb -T template0 mydb" to make a database with no local
additions, and then restore into that.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: disappearing tables
Следующее
От: Tom Ansley
Дата:
Сообщение: Linking two tables from different databases