![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Upgraded from 7.1.3 to 7.4 (been waiting on this for a while thanks for all the hard work guys) and am having problems restoring from a pg_dumpall. |
#2
| |||
| |||
|
|
$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. |
|
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 |
#3
| |||
| |||
|
|
me,and yet this does seem to be relevant, because if I try it as userpostgres, 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 |
#4
| |||
| |||
|
|
On Thu, 2004-01-08 at 14:05, Cath Lawrence wrote: me,and yet this does seem to be relevant, because if I try it as userpostgres, 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 Hi Cath, I see this all the time doing restores. I think there are some situations (on Debian, at least) where pl/pgsql gets added to the template1 database. Once that happens you will always have to do a "DROP LANGUAGE plpgsql CASCADE" after creating the database and before restoring your dump. |
![]() |
| Thread Tools | |
| Display Modes | |
| |