pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Cc: hbrucey@yahoo.com
Subject: Re: language "plpgsql" does not exist
Date: Fri, 23 May 2003 13:28:10 +0200
Message-ID: <3ECE05CA.E7CD433D@rodos.fzk.de> (raw)

>
> 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
>

RTFM and refer to the SQL Command CREATE LANGUAGE.
Regards, Christoph






view thread (13+ messages)  latest in thread

Message-ID: <3ECE05CA.E7CD433D@rodos.fzk.de>
Permalink:  ../3ECE05CA.E7CD433D@rodos.fzk.de/
Also on:    postgresql.org/message-id/3ECE05CA.E7CD433D@rodos.fzk.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de, hbrucey@yahoo.com
  Subject: Re: language "plpgsql" does not exist
  In-Reply-To: <3ECE05CA.E7CD433D@rodos.fzk.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