Create Function... ERROR: language "plpgsql" does not exist - Mailing list pgsql-general

From Thomas LeBlanc
Subject Create Function... ERROR: language "plpgsql" does not exist
Date
Msg-id Law9-F78SH3ZIrqTIov0000f92d@hotmail.com
Whole thread Raw
Responses Re: Create Function... ERROR: language "plpgsql" does  (darren@crystalballinc.com)
Re: Create Function... ERROR: language "plpgsql" does  (Renê Salomão <rene@ibiz.com.br>)
List pgsql-general
I copied an example from the help:

CREATE FUNCTION somefunc() RETURNS integer AS '
DECLARE
    quantity integer := 30;
BEGIN
    RAISE NOTICE ''Quantity here is %'', quantity;  -- Quantity here is 30
    quantity := 50;
    --
    -- Create a subblock
    --
    DECLARE
        quantity integer := 80;
    BEGIN
        RAISE NOTICE ''Quantity here is %'', quantity;  -- Quantity here is
80
    END;

    RAISE NOTICE ''Quantity here is %'', quantity;  -- Quantity here is 50

    RETURN quantity;
END;
' LANGUAGE plpgsql


Ran it is a SQL window from pgAdmin and got this error:

ERROR:  language "plpgsql" does not exist

Thanks,
Thomas LeBlanc

_________________________________________________________________
Share your photos without swamping your Inbox.  Get Hotmail Extra Storage
today! http://join.msn.com/?PAGE=features/es


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: libreadline.so.4 problems on solaris
Next
From: darren@crystalballinc.com
Date:
Subject: Re: Create Function... ERROR: language "plpgsql" does