Skip site navigation (1) Skip section navigation (2)

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 (view raw, whole thread or download thread 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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group