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

From Ragnar Hafstað
Subject Re: plpython function problem workaround
Date
Msg-id 1110901297.26975.42.camel@localhost.localdomain
Whole thread Raw
In response to Re: plpython function problem workaround  (David <dbree@duo-county.com>)
Responses Re: plpython function problem workaround  (Michael Fuhr <mike@fuhr.org>)
Re: plpython function problem workaround  (David <dbree@duo-county.com>)
List pgsql-general
On Tue, 2005-03-15 at 07:33 -0600, David wrote:

> [about the line-termination problem in plpython]

> I'd like to insert one note here.  While I'm not particularly familiar
> with either perl or python, when I encountered the referred-to thread
> regarding Windows/Unix newline incompatibilities in Python, I ran some
> tests on my Linux system.  I wrote some very simple scripts in Perl and
> Python and tested them.  They ran OK when I saved them in native Linux
> newlines, they ran, but if I saved them in DOS mode (vim), neither the
> Python nor the Perl scripts would run.

actually, perl scripts with \r\n line endings will run just fine in
unix/linux. what you might have been experiencing, is the fact that the
unix shell is expecting \n lineendings, and the #! line could have been
failing to run the perl executable.

gnari




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg/plsql question
Next
From: Frederic Massot
Date:
Subject: Dump all in several files