pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: wieck@debis.com
To: Vladimir Terziev <vlady@school.digsys.bg>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Problem with PL/pgSQL
Date: Tue, 8 Feb 2000 17:04:28 +0100 (CET)
Message-ID: <m12ID7s-0003kGC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <200002081346.PAA11001@lorna.digsys.bg>

>
>
>     Hi
>
>
>     I try to create the next function:
>
> create function ttt() RETURNS OPAQUE AS '
> BEGIN
> RAISE EXCEPTION "Hello"
> END' language 'plpgsql';
>
> The result is:
>
> ERROR:  Unrecognized language specified in a CREATE FUNCTION: 'plpgsql'.
> Recognized languages are sql, C, internal and the created procedural languages.
>
>
>     I have postgres SQL ver. 6.5.2.
>
>
>     What's going on?

    As  the  message  says, only the created procedural languages
    can be recognized.  You haven't enabled the language  and  it
    isn't installed by default.  Use

        createlang <dbname>

    to  install  it  in  your  database. If you install it in the
    template1 database, than  all  subsequent  created  databases
    automatically inherit this.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#========================================= wieck@debis.com (Jan Wieck) #





view thread (11+ messages)  latest in thread

Message-ID: <m12ID7s-0003kGC@orion.SAPserv.Hamburg.dsh.de>
Permalink:  ../m12ID7s-0003kGC@orion.SAPserv.Hamburg.dsh.de/
Also on:    postgresql.org/message-id/m12ID7s-0003kGC@orion.SAPserv.Hamburg.dsh.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: wieck@debis.com, vlady@school.digsys.bg
  Subject: Re: [SQL] Problem with PL/pgSQL
  In-Reply-To: <m12ID7s-0003kGC@orion.SAPserv.Hamburg.dsh.de>
  References: <200002081346.PAA11001@lorna.digsys.bg> <m12ID7s-0003kGC@orion.SAPserv.Hamburg.dsh.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox