From: Tom Lane <tgl@sss.pgh.pa.us>
To: okano.naoki@fujitsu.com <okano.naoki@fujitsu.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: CR is not removed with psql -f command on Windows.
Date: Thu, 27 May 2021 09:56:05 -0400
Message-ID: <1710293.1622123765@sss.pgh.pa.us> (raw)
In-Reply-To: <OS0PR01MB57622824690A0E18AB46CBE4FF239@OS0PR01MB5762.jpnprd01.prod.outlook.com>
References: <OS0PR01MB57622824690A0E18AB46CBE4FF239@OS0PR01MB5762.jpnprd01.prod.outlook.com>
"okano.naoki@fujitsu.com" <okano.naoki@fujitsu.com> writes:
> When creating a function with the psql -f filename command, the prosrc in pg_proc catalog contains \r(CR).
Does that cause you any actual problems?
> But I expect \r to be deleted. Is this a bug?
I'm kind of inclined to ignore it, mainly because of the law of unintended
consequences: adding code to strip \r is likely to break some scenario
that's working fine for somebody else.
I see that psql opens -f files with PG_BINARY_R, but that seems to be
a very ancient decision so I'm hesitant to change it.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, okano.naoki@fujitsu.com, pgsql-bugs@lists.postgresql.org
Subject: Re: CR is not removed with psql -f command on Windows.
In-Reply-To: <1710293.1622123765@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox