X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 436B455E98 for ; Sat, 5 Mar 2005 23:38:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77695-05 for ; Sat, 5 Mar 2005 23:38:36 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 929CF55CF0 for ; Sat, 5 Mar 2005 23:38:35 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j25NcQ4P027862; Sat, 5 Mar 2005 18:38:26 -0500 (EST) To: Igor Radtchenko Cc: pgsql-admin@postgresql.org Subject: Re: Build from file syntax troublem. In-reply-to: <05030601450100.01195@inta> References: <05030601450100.01195@inta> Comments: In-reply-to Igor Radtchenko message dated "Sun, 06 Mar 2005 01:45:01 +0300" Date: Sat, 05 Mar 2005 18:38:26 -0500 Message-ID: <27861.1110065906@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/67 X-Sequence-Number: 16565 Igor Radtchenko writes: > CREATE FUNCTION public.from_days(int4) RETURNS timestamp AS ' > select ''0000-01-02''::timestamp + ($1 || '' days'')::interval as result > ' LANGUAGE 'sql' VOLATILE; > The parser abuse that > 'parse error at or near '"." ', > 'parse error at or near "public'" ', > 'parse error at or near "#'" '. > PostgeSQL version is 7.2.3. You need 7.3 or later to deal with schema-aware commands. regards, tom lane