Re: Help! Can't pg_dump anything: handler procedure for procedural language plpgsql not found

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mark Mikulec" <mm98au(at)brocku(dot)ca>
Cc: "Richard Huxton" <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Help! Can't pg_dump anything: handler procedure for procedural language plpgsql not found
Date: 2003-08-13 19:29:21
Message-ID: 10403.1060802961@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mark Mikulec" <mm98au(at)brocku(dot)ca> writes:
> Tried pg_dump - still didn't work. So I took tom lane's suggestion, only I
> used the droplang command and after that, it succeeded! Ok, so try to
> restore, I dropped my test database, created it again, then called
> pg_restore on my tar, and I got:

> pg_restore: [archiver (db)] could not execute query: ERROR: function
> plpgsql_call_handler already exists with same argument types

> Which doesn't makes to sense to me, because I dropped the language!

Sounds to me like you have a definition (possibly a broken one) in
the template1 database, where it will be copied by CREATE DATABASE.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-08-13 19:38:29 Re: Why table has drop, but the foreign key still there?
Previous Message Gianni Mariani 2003-08-13 18:54:46 Re: Sorting Problem