Re: 9.0: plpgsql eror when restoring a database as a non superuser

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: stefan <stefan(at)therp(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 9.0: plpgsql eror when restoring a database as a non superuser
Date: 2011-10-22 16:21:37
Message-ID: 9599.1319300497@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

stefan <stefan(at)therp(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2011-10-22 16:59:16 Re: is there a function in postgresql that can be used for retrieving deleted rows
Previous Message stefan 2011-10-22 15:33:01 Re: 9.0: plpgsql eror when restoring a database as a non superuser