Re: Multiline plpython procedure

From: Hong Yuan <hongyuan(at)homemaster(dot)cn>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: aklaver(at)comcast(dot)net, pgsql-general(at)postgresql(dot)org
Subject: Re: Multiline plpython procedure
Date: 2005-01-18 06:56:02
Message-ID: 41ECB302.2010001@homemaster.cn
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Tom Lane wrote:

>Now that you say that, I seem to recall that this has been reported
>before. It seems odd that in today's climate the Python interpreter
>would not cope well with Windows-style newlines. Maybe there is some
>configuration issue with Python itself?
>
>
I found a thread on exactly the same problem in the archive
http://archives.postgresql.org/pgadmin-support/2004-08/msg00078.php.
However the discussion seemed to have died down.

>>I am no longer sure whether this is a problem of Postgres or of pgAdmin.
>>
>>
>
>Postgres is just passing the bytes from point A to point B. You could
>maybe argue that it's a bad idea for pgAdmin to be using a
>Windows-centric notion of newline, but I doubt you'll be able to sell
>those guys on it. Really this seems like a robustness issue for Python.
>
>
>
I can not find any problem with the python configuration itself. It runs
program with Windows-styled newlines perfectly. I suspect the problem
might lie in the module pl/python, which receives functions from
Postgres and passes them to python.

Maybe I should file a bug report.

--
HONG Yuan
Homemaster Trading Co., Ltd.
No. 601, Bldg. 41, 288 Shuangyang Rd. (N)
Shanghai 200433, P.R.C.
Tel: +86 21 55056553
Fax: +86 21 55067325
E-mail: hongyuan(at)homemaster(dot)cn

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2005-01-18 06:56:05 Re: ext3
Previous Message mstory 2005-01-18 06:35:01 Users and unique identifyers