Re: Problems while restoring databases - Mailing list pgsql-admin

From Tom Lane
Subject Re: Problems while restoring databases
Date
Msg-id 19696.1323706279@sss.pgh.pa.us
Whole thread Raw
In response to Problems while restoring databases  ("Jean-Yves NOLEN" <jynolen@gmail.com>)
List 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 by date:

Previous
From: "Jean-Yves NOLEN"
Date:
Subject: Problems while restoring databases
Next
From: Paul Rogers
Date:
Subject: Pg-restore Only Privileges/ACL?