Re: BUG #5720: Bug for PQescapeByteaConn (libpq) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5720: Bug for PQescapeByteaConn (libpq)
Date
Msg-id 5280.1287809881@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5720: Bug for PQescapeByteaConn (libpq)  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-bugs
Craig Ringer <craig@postnewspapers.com.au> writes:
> On 23/10/2010 1:11 AM, Tom Lane wrote:
>> Why do you expect that?  The parameter only controls the *server*'s
>> output, it is not suggested anywhere that it should have an effect
>> on clients.

> I'm not at all sure what the right answer is here. I just wanted to
> raise reasons why the OP isn't necessarily unreasonable in expecting the
> behaviour they describe.

The definition of the PQescape functions is that they produce strings
that will be acceptable to the server they're connected to.  The OP
apparently wishes some other definition, but he's failed to put forward
any argument at all why it should be changed.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: BUG #5720: Bug for PQescapeByteaConn (libpq)
Next
From: Andres Freund
Date:
Subject: Re: BUG #5720: Bug for PQescapeByteaConn (libpq)