plpgsql Difference in behaviour between versions? - Mailing list pgsql-general

From Chris McDonald
Subject plpgsql Difference in behaviour between versions?
Date
Msg-id 18724388.56.1322071454551.JavaMail.geo-discussion-forums@yqzz20
Whole thread Raw
Responses Re: plpgsql Difference in behaviour between versions?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: plpgsql Difference in behaviour between versions?  (Jerry Sievers <gsievers19@comcast.net>)
Re: plpgsql Difference in behaviour between versions?  (Jerry Sievers <gsievers19@comcast.net>)
Re: plpgsql Difference in behaviour between versions?  (Chris McDonald <chrisjonmcdonald@gmail.com>)
List pgsql-general
Hi,
I am upgrading a system from postgresql 8.4.8 (fedora 13 x64) to postgresql 9.0.5 (fedora 15 x64). As I build a
databaseI've noticed that the following works on 8.4.8 but does not work on 9.0.5. Can someone tell me why this is not
legalsyntax in 9.0.5 but is legal in 8.4.8 please: 

===snip===
create type mytype
as
(
   somekey integer,
   open numeric(14, 2)
);

CREATE OR REPLACE FUNCTION myfunc(IN INTEGER, IN NUMERIC(14, 2))
    RETURNS VOID
AS $$
DECLARE
    somekey ALIAS FOR $1;
    rec mytype;
BEGIN
    rec.somekey = somekey;

        -- 9.0.5 will fail at the dot character in the
        -- following line here with syntax error sqlstate 42601
        -- but 8.4.8 is happy.
    rec.open = 32;
        -- ^

    RETURN;
END;
$$ LANGUAGE plpgsql;
===snip===

pgsql-general by date:

Previous
From: Antonio Franzoso
Date:
Subject: Compiler does not detect support for 64 bit integers
Next
From: khizer
Date:
Subject: Re: pg_standby for postgresql8.2