X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 23F719DCBDC for ; Sun, 19 Feb 2006 15:07:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44313-06 for ; Sun, 19 Feb 2006 15:07:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id E1BCD9DCBD4 for ; Sun, 19 Feb 2006 15:07:23 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k1JJ7EWL064063 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 19 Feb 2006 12:07:17 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id k1JJ7Eu0043861; Sun, 19 Feb 2006 12:07:14 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id k1JJ7DX8043860; Sun, 19 Feb 2006 12:07:13 -0700 (MST) (envelope-from mfuhr) Date: Sun, 19 Feb 2006 12:07:13 -0700 From: Michael Fuhr To: Henry Ortega Cc: Owen Jacobson , pgsql-sql@postgresql.org Subject: Re: Given 02-01-2006 to 02-28-2006, output all days. Message-ID: <20060219190713.GA43760@winnie.fuhr.org> References: <144D12D7DD4EC04F99241498BB4EEDCC220D78@nelson.osl.com> <2bffcc330602191047w6338e67aw77145989046f93d6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2bffcc330602191047w6338e67aw77145989046f93d6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.62 required=5 tests=[AWL=-0.377, URI_NOVOWEL=0.997] X-Spam-Score: 0.62 X-Spam-Level: X-Archive-Number: 200602/244 X-Sequence-Number: 24254 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