Re: newline conversion in SQL command strings

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: newline conversion in SQL command strings
Date: 2012-09-20 13:12:25
Message-ID: 505B1639.5020702@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2012-09-20 13:17:26 Re: Invalid optimization of VOLATILE function in WHERE clause?
Previous Message Amit Kapila 2012-09-20 13:08:13 Re: ToDo: allow to get a number of processed rows by COPY statement [Review of Patch]