Re: Help! Can't pg_dump anything: handler procedure for procedural language plpgsql not found - Mailing list pgsql-general

From Tom Lane
Subject Re: Help! Can't pg_dump anything: handler procedure for procedural language plpgsql not found
Date
Msg-id 10403.1060802961@sss.pgh.pa.us
Whole thread Raw
In response to Re: Help! Can't pg_dump anything: handler procedure for procedural language plpgsql not found  ("Mark Mikulec" <mm98au@brocku.ca>)
List pgsql-general
"Mark Mikulec" <mm98au@brocku.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

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: [ADMIN] Why table has drop, but the foreign key still there?
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] Why table has drop, but the foreign key still there?