pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Witham <davidw@unidial.com.au>
To: Bruce Young <hbrucey@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: language "plpgsql" does not exist
Date: Fri, 23 May 2003 19:45:48 +1000
Message-ID: <CFA248776934FD43847E740E43C346D137976A@ozimelb03.ozicom.com> (raw)

HI Bruce,

See the createlang shell script in the reference manual under the Client Applications section. You need to "create" a language in the target database before you can use it to program with against that database.

Regards,
David Witham
Telephony Platforms Architect
Unidial

-----Original Message-----
From: Bruce Young [mailto:hbrucey@yahoo.com]
Sent: Friday, 23 May 2003 16:49
To: pgsql-sql@postgresql.org
Subject: [SQL] language "plpgsql" does not exist


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


any help appreciated


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly



view thread (13+ messages)  latest in thread

Message-ID: <CFA248776934FD43847E740E43C346D137976A@ozimelb03.ozicom.com>
Permalink:  ../CFA248776934FD43847E740E43C346D137976A@ozimelb03.ozicom.com/
Also on:    postgresql.org/message-id/CFA248776934FD43847E740E43C346D137976A@ozimelb03.ozicom.com

 · 

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: davidw@unidial.com.au, hbrucey@yahoo.com
  Subject: Re: language "plpgsql" does not exist
  In-Reply-To: <CFA248776934FD43847E740E43C346D137976A@ozimelb03.ozicom.com>
  References: <CFA248776934FD43847E740E43C346D137976A@ozimelb03.ozicom.com>

* 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