Re: Problems while restoring databases

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problems while restoring databases
Дата
Msg-id 19696.1323706279@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problems while restoring databases  ("Jean-Yves NOLEN" <jynolen@gmail.com>)
Список pgsql-admin
"Jean-Yves NOLEN" <jynolen@gmail.com> writes:
> [ while restoring a pg_dump backup ]
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 626; 2612 16386 PROCEDURAL
> LANGUAGE plpgsql postgres
> pg_restore: [archiver (db)] could not execute query: ERREUR:  language
> "plpgsql" already exists

Probably the reason you get this is that you have plpgsql installed in
template1, and so it's already there in your destination database.
You can avoid that by cloning the new database from template0
(add "TEMPLATE template0" to your CREATE DATABASE command).

            regards, tom lane

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

Предыдущее
От: "Jean-Yves NOLEN"
Дата:
Сообщение: Problems while restoring databases
Следующее
От: Paul Rogers
Дата:
Сообщение: Pg-restore Only Privileges/ACL?