pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ljb <ljb9832@pobox.com>
To: pgsql-docs@postgresql.org
Subject: Re: [GENERAL] Gripe: bytea_output default => data corruption
Date: Fri, 4 Feb 2011 23:27:33 +0000 (UTC)
Message-ID: <iii215$1jhb$1@news.hub.org> (raw)
References: <iif06v$2et7$1@news.hub.org>
	<201102042114.p14LENv21963@momjian.us>

bruce@momjian.us wrote:
> Here is an updated patch, again to be backpatched to 9.0.

Getting better.

In change block 1, after PQescapeString synopsis:
Change: "does not take a Pgconn or error parameters"
    to: "does not take Pgconn or error parameters"

In change block 4, PQescapeBytea, I don't like the change. 
This: "is that PQescapeBytea does not take a PGconn or error parameters"
is wrong. PQescapeByteaConn does not take an 'error' parameter either.
Also "no way to report error conditions" is wrong. It returns NULL on an 
error; it just cannot return a specific error message. (Which is OK because 
there is only one, unlikely error: out of memory.)

Reading the before/after text here, I don't see anything that needs 
changing except for dropping the reference to single-threaded (same as for
PQescapeString). I suggest going back to the original text and just 
changing:
From: "can be used safely in single-threaded client programs that work with
       only one"
  to: "can only be used safely in client programs that use a single"

(Sorry for the trouble. I should have fully commented on the first one, but 
I find it hard to see the changes with these "git" diffs of SGML.)



view thread (21+ messages)  latest in thread

Message-ID: <iii215$1jhb$1@news.hub.org>
Permalink:  ../iii215$1jhb$1@news.hub.org/
Also on:    postgresql.org/message-id/iii215$1jhb$1@news.hub.org

 · 

reply

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-docs@postgresql.org
  Cc: ljb9832@pobox.com
  Subject: Re: [GENERAL] Gripe: bytea_output default => data corruption
  In-Reply-To: <iii215$1jhb$1@news.hub.org>

* 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