Re: Multiline plpython procedure

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Multiline plpython procedure
Дата
Msg-id
15159.1106029471@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Multiline plpython procedure Hong Yuan <hongyuan@homemaster.cn>
Re: Multiline plpython procedure Adrian Klaver <aklaver@comcast.net>
Re: Multiline plpython procedure Hong Yuan <hongyuan@homemaster.cn>
Re: Multiline plpython procedure Tom Lane <tgl@sss.pgh.pa.us>
Re: Multiline plpython procedure Hong Yuan <hongyuan@homemaster.cn>
Re: Multiline plpython procedure Tom Lane <tgl@sss.pgh.pa.us>
Re: Multiline plpython procedure Michael Fuhr <mike@fuhr.org>
Re: Multiline plpython procedure Michael Fuhr <mike@fuhr.org>
Re: Multiline plpython procedure Tom Lane <tgl@sss.pgh.pa.us>
Re: Multiline plpython procedure Adrian Klaver <aklaver@comcast.net>
Re: Multiline plpython procedure Michael Fuhr <mike@fuhr.org>
Re: Multiline plpython procedure Stuart Bishop <stuart@stuartbishop.net>
Re: Multiline plpython procedure Martijn van Oosterhout <kleptog@svana.org>
Re: Multiline plpython procedure Stuart Bishop <stuart@stuartbishop.net>
Re: Multiline plpython procedure Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: Multiline plpython procedure "Frank D. Engel, Jr." <fde101@fjrhome.net>
Re: Multiline plpython procedure Martijn van Oosterhout <kleptog@svana.org>
Re: Multiline plpython procedure Tom Lane <tgl@sss.pgh.pa.us>
Re: Multiline plpython procedure Marco Colombo <pgsql@esiway.net>
Re: Multiline plpython procedure Martijn van Oosterhout <kleptog@svana.org>
Re: Multiline plpython procedure Marco Colombo <marco@esi.it>
Re: Multiline plpython procedure Greg Stark <gsstark@mit.edu>
Re: Multiline plpython procedure Tom Lane <tgl@sss.pgh.pa.us>
Re: Multiline plpython procedure Tino Wildenhain <tino@wildenhain.de>
Re: Multiline plpython procedure Stuart Bishop <stuart@stuartbishop.net>
Re: Multiline plpython procedure Marco Colombo <pgsql@esiway.net>
Re: Multiline plpython procedure Marco Colombo <pgsql@esiway.net>
Re: Multiline plpython procedure Martijn van Oosterhout <kleptog@svana.org>
Re: Multiline plpython procedure Marco Colombo <marco@esi.it>
Re: Multiline plpython procedure Bruno Wolff III <bruno@wolff.to>
Re: Multiline plpython procedure Marco Colombo <pgsql@esiway.net>
Re: Multiline plpython procedure Hong Yuan <hongyuan@homemaster.cn>
Hong Yuan  writes:
> Following your direction, I did a byte-by-byte comparasion of the dump 
> files of the two different version. The sole difference is that in the 
> working version, the line break is represented the unix way as one 0x0a, 
> while in the non-working version the line break is the Windows/Dos 
> version of 0x0d, 0x0a.

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 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.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Hong Yuan
Дата:
От: mstory@uchicago.edu
Дата:
Сообщение: Users and unique identifyers
FAQ