Re: plpython function problem workaround - Mailing list pgsql-general

From David
Subject Re: plpython function problem workaround
Date
Msg-id 20050316131726.GB11121@localhost.localdomain
Whole thread Raw
In response to Re: plpython function problem workaround  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
On Tue, Mar 15, 2005 at 02:50:06PM -0700, Michael Fuhr wrote:
> On Tue, Mar 15, 2005 at 03:41:37PM +0000, Ragnar Hafstað wrote:
>
> > actually, perl scripts with \r\n line endings will run just fine in
> > unix/linux.
>
> Indeed, and PL/Perl doesn't care.  I just tested several PLs with
> PostgreSQL 8.0.1 on Solaris 9 and here are the results:
>
> PL/pgSQL   CRLF ok
> PL/Perl    CRLF ok
> PL/Ruby    CRLF ok
> PL/Tcl     CRLF ok
> PL/Python  CRLF fails
> PL/R       CRLF fails
>
> Details:

Thanks for the detailed test you ran.  This is something I should have
done before spouting off.

So, really, AIUI, one of the "selling points" for each of the
above-mentioned languages is their portability.  It would appear to me
that this newline incompatibility ought to be considered a major bug in
python.  (Maybe I'm spouting off half-cocked again, though).

pgsql-general by date:

Previous
From: David
Date:
Subject: Re: plpython function problem workaround
Next
From: Richard Huxton
Date:
Subject: Re: 2 questions about types