Re: Upgrade function problem - c language

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Cath Lawrence <Cath(dot)Lawrence(at)anu(dot)edu(dot)au>
Cc: "<pgsql-novice(at)postgresql(dot)org> <pgsql-novice(at)postgresql(dot)org>" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Upgrade function problem - c language
Date: 2004-01-08 06:14:56
Message-ID: 4100.1073542496@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-novice

Cath Lawrence <Cath(dot)Lawrence(at)anu(dot)edu(dot)au> writes:
> $pg_restore -O -d cbisdb SampleTableChange.tar
> pg_restore: [archiver (db)] could not execute query: ERROR: permission
> denied for language c

> "language c"? never saw that before.

Apparently your dump contains some function definitions for C-language
functions. You must run the dump script as a Postgres superuser to load
these definitions.

> and yet this does seem to be relevant, because if I try it as user
> postgres, I get a different error:
> pg_restore -O -d cbisdb SampleTableChange.tar
> pg_restore: [archiver (db)] could not execute query: ERROR: function
> "plpgsql_call_handler" already exists with same argument types

Best to drop and recreate the database before re-trying the restore,
else you'll get complaints about pre-existing objects.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Marcin Gil 2004-01-08 07:16:40 pgsql 7.0 recovery to 7.4
Previous Message Cath Lawrence 2004-01-08 01:05:07 Upgrade function problem - c language