On Sun, Feb 19, 2006 at 01:47:21PM -0500, Henry Ortega wrote: > I was able to find a suitable 7.3.2 plpgsql.so and now plpgsql works. > (supposedly) > > I am trying out some really basic function creation such as this: > > create function dng2(start_date DATE) returns setof date as $$ > declare > aa date:=start_date; > > But I always get this > ERROR: parser: parse error at or near "DATE" at character 33 > before I can even finish.
You're using features (named parameters, dollar quotes) that are available only in 8.0 and later; see the 7.3 documentation for the correct syntax in that version. But as someone else mentioned, do consider upgrading, if not to 8.1.3 or 8.0.7 then at least to 7.3.14. Lots of bugs have been fixed in the three years since 7.3.2 was released, some involving data loss. -- Michael Fuhr ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match