Re: syntax error at or near "PERFORM"

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Dale <harris_da(at)yahoo(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: syntax error at or near "PERFORM"
Date: 2008-08-15 20:40:32
Message-ID: 48A5E9C0.9070505@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 15/08/2008 05:32, Dale wrote:
> On Aug 15, 2:14 pm, Dale <harris(dot)(dot)(dot)(at)yahoo(dot)com(dot)au> wrote:
<snip>
>> even when I try executing something basic: PERFORM (2 + 3);
<snip>
> I found my problem. Unfortunately PERFORM can only be used within a
> "LANGUAGE plpgsql" script.

Yes, that's it - outside a function, you just do:

select (2 + 3);

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2008-08-15 20:47:48 Re: plpgsql functions
Previous Message Andrew Sullivan 2008-08-15 20:40:22 Re: [Q] DNS(bind) ER model