X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2DBB555278 for ; Sat, 5 Mar 2005 15:20:26 +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 68637-02 for ; Sat, 5 Mar 2005 15:20:23 +0000 (GMT) Received: from mickymouse.i.mickymouse.it (host70-151.pool80183.interbusiness.it [80.183.151.70]) by svr1.postgresql.org (Postfix) with ESMTP id DC1E3550EE for ; Sat, 5 Mar 2005 15:20:21 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mickymouse.i.mickymouse.it (Postfix) with ESMTP id 6844D34000B0; Sat, 5 Mar 2005 16:33:09 +0100 (CET) Subject: Re: plpythonu strange syntax error From: Michele Bendazzoli To: Tom Lane Cc: pgsql-interfaces@postgresql.org In-Reply-To: <17683.1108736656@sss.pgh.pa.us> References: <1108719498.4676.14.camel@mickymouse.i.mickymouse.it> <20050218095623.GA54765@winnie.fuhr.org> <1108725960.4676.18.camel@mickymouse.i.mickymouse.it> <17683.1108736656@sss.pgh.pa.us> Content-Type: text/plain Date: Sat, 05 Mar 2005 16:33:08 +0100 Message-Id: <1110036788.15329.19.camel@mickymouse.i.mickymouse.it> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.462 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL X-Spam-Level: * X-Archive-Number: 200503/14 X-Sequence-Number: 5343 Il giorno ven, 18-02-2005 alle 09:24 -0500, Tom Lane ha scritto: cut > I seem to recall that pgAdmin is a bit cavalier about whitespace in > function bodies, which in sanely-defined languages is no big deal > but in Python there are multiple ways in which it will kill you. > This could be either a problem of inconsistent newlines or excess > leading whitespace ... Inconsistent newlines. I try to resolve the problem using psql instead of PgAdmin to create the functions. Thank you ciao, Michele