Re: help with "plpgsql"

From: Shane Ambler <pgsql(at)Sheeky(dot)Biz>
To: Pau Marc Munoz Torres <paumarc(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: help with "plpgsql"
Date: 2008-04-21 16:58:20
Message-ID: 480CC7AC.5090402@Sheeky.Biz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pau Marc Munoz Torres wrote:
> Hi everybody
>
> I trying to upload some plpsql functions to postgresql database using a perl
> script and i get the following error
>
>
> psql:/usr/local/Make2D-DB_II
> /pgsql/make2db_functions.pgsql:85: ERROR: language "plpgsql" does not exist
> HINT: Use CREATE LANGUAGE to load the language into the database.
>
>
> and then when I try to create the language, i get
>
> geldb=# CREATE LANGUAGE plpgsql;
>
> ERROR: language "plpgsql" already exists
>
> anybody knows what's wrong?
>
> Thanks
>

My first guess would be what db are you connected to?

Is the script connected to the same db you are connected to when you run
psql?

I would probably add the CREATE LANGUAGE command to the start of the
perl script.

--

Shane Ambler
pgSQL (at) Sheeky (dot) Biz

Get Sheeky @ http://Sheeky.Biz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2008-04-21 17:22:46 Re: Tsearch2 Spanish Dictionary
Previous Message Mario Ignacio Rodríguez Cortés 2008-04-21 16:39:51 Tsearch2 Spanish Dictionary