Re: restore error - language "plperlu" is not trusted

From: Christopher Murtagh <christopher(dot)murtagh(at)mcgill(dot)ca>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: restore error - language "plperlu" is not trusted
Date: 2003-12-17 17:31:38
Message-ID: 1071682298.6551.7.camel@brahma.wcg.mcgill.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

On Wed, 2003-12-17 at 10:55, scott.marlowe wrote:
> > which performed everything as expected with the following ERROR
> > message:
> >
> > ERROR: language "plperlu" is not trusted
> >
> > and it gave a line number, which contained the following:
> >
> > GRANT ALL ON LANGUAGE plperlu TO postgres WITH GRANT OPTION;
> >
> > Now, my plperlu functions seem to behaving as expected (they read from
> > and write to /tmp). Should I be worried?
>
> Did you install plperlu ahead of time as the super user, then run your
> restore as the regular database owner?

No, I hadn't, I guess I had assumed that the restore would do that.
More interestingly, I did the restore on a different
machine/architecture (PPC instead of Intel) running 7.4 final release
(instead of RC2) and I didn't get the error message. However all of my
plperlu triggers seem to behaving normally. When I tried to install
plperlu afterwards I got this:

createlang plperlu a
createlang: language "plperlu" is already installed in database "a"

Hrm... Ah well. I'll know for next time to install the language first,
I just hope it won't bit me in the ass before then. :-)

Cheers,

Chris

--
Christopher Murtagh
Enterprise Systems Administrator
ISR / Web Communications Group
McGill University
Montreal, Quebec
Canada

Tel.: (514) 398-3122
Fax: (514) 398-2017

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bernd Helmle 2003-12-17 17:39:07 Re: copy command problem
Previous Message Stephan Szabo 2003-12-17 17:27:26 Re: Need to understand PL/PGSQL, Foreign Key Deferable,

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-12-17 18:07:35 Re: [PATCHES] Double Backslash example patch
Previous Message Andrew Dunstan 2003-12-17 17:12:11 Re: [PATCHES] Double Backslash example patch