From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Yves NOLEN <jynolen@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems while restoring databases
Date: Mon, 12 Dec 2011 11:11:19 -0500
Message-ID: <19696.1323706279@sss.pgh.pa.us> (raw)
In-Reply-To: <00ff01ccb8c1$b19f2e60$14dd8b20$@gmail.com>
References: <00ff01ccb8c1$b19f2e60$14dd8b20$@gmail.com>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jynolen@gmail.com
Subject: Re: Problems while restoring databases
In-Reply-To: <19696.1323706279@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox