pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Spiteri <aaron@m1group.com.au>
To: jquest jquest <jquest_j@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Trigger problem
Date: Sun, 05 May 2002 22:29:10 GMT
Message-ID: <20020505.22291000@scooby.m1group.com.au> (raw)
In-Reply-To: <F1865G5skRBzRsx6Eyj00009c24@hotmail.com>
References: <F1865G5skRBzRsx6Eyj00009c24@hotmail.com>

In postgres you the plsql equivalent is 'plpgsql' not 'plsql'.

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 3/05/02, 21:17:38, "jquest jquest" <jquest_j@hotmail.com> wrote 
regarding [ADMIN] Trigger problem:


> Hi,
> I am new to postgresql and to this moment I am using oracle.
> I use posgresql 7.1.2

> I try to create very simple ( from doc. examples ) trigger:

> CREATE FUNCTION add_one (integer) RETURNS INTEGER AS '
>     BEGIN
>         RETURN $1 + 1;
>     END;
> ' LANGUAGE 'pgsql';

> But the system report:
> ERROR:  Unrecognized language specified in a CREATE FUNCTION: 'pgsql'.
>       Recognized languages are sql, C, internal, and created procedural
> languages.

> I readet in documentation that pgsql is good solution for SP.

> Where is the problem?

> Many thanks in advance.

> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com


> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



view thread (5+ messages)

Message-ID: <20020505.22291000@scooby.m1group.com.au>
Permalink:  ../20020505.22291000@scooby.m1group.com.au/
Also on:    postgresql.org/message-id/20020505.22291000@scooby.m1group.com.au

 · 

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-admin@postgresql.org
  Cc: aaron@m1group.com.au, jquest_j@hotmail.com
  Subject: Re: Trigger problem
  In-Reply-To: <20020505.22291000@scooby.m1group.com.au>
  References: <F1865G5skRBzRsx6Eyj00009c24@hotmail.com> <20020505.22291000@scooby.m1group.com.au>

* 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