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 3DE2D52A9F for ; Sat, 5 Mar 2005 16:41:56 +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 87401-09 for ; Sat, 5 Mar 2005 16:41:51 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 8AB1C52A82 for ; Sat, 5 Mar 2005 16:41:50 +0000 (GMT) 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 j25GfiMC007042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 5 Mar 2005 09:41:47 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j25GfikH070179; Sat, 5 Mar 2005 09:41:44 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j25GfisY070178; Sat, 5 Mar 2005 09:41:44 -0700 (MST) (envelope-from mfuhr) Date: Sat, 5 Mar 2005 09:41:44 -0700 From: Michael Fuhr To: Michele Bendazzoli Cc: pgsql-interfaces@postgresql.org Subject: Re: plpythonu strange syntax error Message-ID: <20050305164144.GA70106@winnie.fuhr.org> References: <1108719498.4676.14.camel@mickymouse.i.mickymouse.it> <20050218095623.GA54765@winnie.fuhr.org> <1108725960.4676.18.camel@mickymouse.i.mickymouse.it> <1108727087.4676.28.camel@mickymouse.i.mickymouse.it> <20050218174007.GA66076@winnie.fuhr.org> <1110037562.15329.21.camel@mickymouse.i.mickymouse.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1110037562.15329.21.camel@mickymouse.i.mickymouse.it> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/16 X-Sequence-Number: 5345 On Sat, Mar 05, 2005 at 04:46:02PM +0100, Michele Bendazzoli wrote: > Yes it works. So the problem is that in Windows system PGAdmin seem to > create the function with CRLF characters. > > I don't know if it is a python fault or a pgadmin fault but I think that > someone should fix it, because it is impossibile to use PGAdmin to > create plpython function in windows ... Opinion differs on whose fault it is. My understanding is that Python's behavior is intentional, so one could argue that pgAdmin should take care of the problem. On the other hand, one could argue that Python's behavior is silly, and that Python should be fixed. Since pgAdmin is a more specific tool than Python is, I expect it would be easier to address the problem in pgAdmin. But I don't know enough about pgAdmin to say whether such a "fix" would cause other problems. -- Michael Fuhr http://www.fuhr.org/~mfuhr/