pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Victor Yegorov <viktors.jegorovs@nordlb.lv>
To: Bruce Young <hbrucey@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: language "plpgsql" does not exist
Date: Fri, 23 May 2003 14:32:43 +0300
Message-ID: <20030523113243.GD15931@nordlb.lv> (raw)
In-Reply-To: <20030523064831.64448.qmail@web10403.mail.yahoo.com>
References: <20030523064831.64448.qmail@web10403.mail.yahoo.com>

* Bruce Young <hbrucey@yahoo.com> [23.05.2003 14:29]:
> i am trying to create functions only to get the above error in return.
> what do i need to do to get PL/PGSQL functions working?
> example:
> 
> CREATE FUNCTION logfunc1(text) RETURNS timestamp AS '
>      DECLARE
>          logtxt ALIAS FOR $1;
>      BEGIN
>          INSERT INTO logtable VALUES (logtxt, ''now'');
>          RETURN ''now'';
>      END;
> ' LANGUAGE plpgsql;
> 
> #  ERROR:  language "plpgsql" does not exist

issue the following command on console (comand interpreter):

$ createlang plpgsql <dbname>

-- 

Victor Yegorov



view thread (13+ messages)  latest in thread

Message-ID: <20030523113243.GD15931@nordlb.lv>
Permalink:  ../20030523113243.GD15931@nordlb.lv/
Also on:    postgresql.org/message-id/20030523113243.GD15931@nordlb.lv

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: viktors.jegorovs@nordlb.lv, hbrucey@yahoo.com
  Subject: Re: language "plpgsql" does not exist
  In-Reply-To: <20030523113243.GD15931@nordlb.lv>

* 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