Re: 9.0: plpgsql eror when restoring a database as a non superuser - Mailing list pgsql-general

From Tom Lane
Subject Re: 9.0: plpgsql eror when restoring a database as a non superuser
Date
Msg-id 9599.1319300497@sss.pgh.pa.us
Whole thread Raw
In response to Re: 9.0: plpgsql eror when restoring a database as a non superuser  (stefan <stefan@therp.nl>)
Responses Re: 9.0: plpgsql eror when restoring a database as a non superuser  (stefan <stefan@therp.nl>)
List pgsql-general
stefan <stefan@therp.nl> writes:
> However, due to the fact that in 9.0, the language is in template1 and
> owned by postgres, a non superuser database owner will not have the
> right to create or replace this language in any newly created database
> owned by himself.

True.

> Therefore the only solution I see is to drop plpgsql from template1, or
> writing a wrapper script that exploits the -l and -L options of pg_restore.

Or just ignore the error during restore.

            regards, tom lane

pgsql-general by date:

Previous
From: stefan
Date:
Subject: Re: 9.0: plpgsql eror when restoring a database as a non superuser
Next
From: "Charles Waweru"
Date:
Subject: is there a function in postgresql that can be used for retrieving deleted rows