Re: normal user dump gives error because of plpgsql - Mailing list pgsql-general

From Tom Lane
Subject Re: normal user dump gives error because of plpgsql
Date
Msg-id 15964.1110475073@sss.pgh.pa.us
Whole thread Raw
In response to Re: normal user dump gives error because of plpgsql  (John Sidney-Woollett <johnsw@wardbrook.com>)
Responses Re: normal user dump gives error because of plpgsql
Re: normal user dump gives error because of plpgsql
List pgsql-general
John Sidney-Woollett <johnsw@wardbrook.com> writes:
> I'm pretty sure I had the same problem when using pg_restore. If
> pl/pgsql is installed in template1, then the restore fails.

> And I couldn't find any solution to this on the list either.

You're supposed to restore into a database cloned from template0,
not template1.

> Can pg_restore be made to ignore the error?

It does, at least since 8.0.

            regards, tom lane

pgsql-general by date:

Previous
From: John Sidney-Woollett
Date:
Subject: Re: normal user dump gives error because of plpgsql
Next
From: Scott Marlowe
Date:
Subject: Re: PostgreSQL still for Linux only?