Re: newline conversion in SQL command strings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: newline conversion in SQL command strings
Date
Msg-id 505B1639.5020702@gmx.net
Whole thread Raw
In response to Re: newline conversion in SQL command strings  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: newline conversion in SQL command strings  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On 9/20/12 2:01 AM, Heikki Linnakangas wrote:
> Could you strip the CRs? Either at CREATE FUNCTION time, or when the
> function is executed.

It has been proposed that the plsh handler should strip the CRs before
execution.  But I don't think that is a correct solution, because that
is user data which could be relevant.  It could be the case, for
example, that plsh is run on a Windows host with a particular shell that
requires CRLF line endings.



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: ToDo: allow to get a number of processed rows by COPY statement [Review of Patch]
Next
From: Merlin Moncure
Date:
Subject: Re: Invalid optimization of VOLATILE function in WHERE clause?