Re: store procedure in pl/pgsql - Mailing list pgsql-general

From Raymond Chui
Subject Re: store procedure in pl/pgsql
Date
Msg-id 3A9FB8D7.5586A9A0@noaa.gov
Whole thread Raw
In response to store procedure in pl/pgsql  (Juan Ramón Cortabitarte <jcorta@tribctas.gba.gov.ar>)
List pgsql-general
Juan Ramón Cortabitarte wrote:

> Hello,
>
> I'm trying to do some store procedure in pl/pgsql but the sql server says
> me:
>
> Error: ERROR:  Unrecognized language specified in a CREATE FUNCTION:
> 'plpgsql'.  Recognized languages are sql, C, internal and the created
> procedural languages.
>
> I´m using Red Hat Linux 7.0 and Postgress 7.02.
> i executed:
>
> #createlang plpgsql dbhtc
>
> createlang: missing required argument PGLIB directory

createlang --username=postgres --dbname=yourdb --pglib=/usr/lib/pgsql plpgsql
yourdb

If you don't see plpgsql.so in PGLIB directory, then you better re-install
your
PostgreSQL.




Attachment

pgsql-general by date:

Previous
From: Raymond Chui
Date:
Subject: Does PostgreSQL support Constant Expression (Alias Name)?
Next
From: Michael Fork
Date:
Subject: Re: Re: SERIAL values