Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id ECA7D1336FA7 for ; Fri, 4 Feb 2011 19:50:55 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 26752-04 for ; Fri, 4 Feb 2011 23:50:49 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id B65C81336B42 for ; Fri, 4 Feb 2011 19:50:48 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p14Nom08099164 for ; Fri, 4 Feb 2011 19:50:48 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p14NRXBM056429 for pgsql-docs@postgresql.org; Fri, 4 Feb 2011 19:27:33 -0400 (AST) (envelope-from news) From: ljb X-Newsgroups: pgsql.docs Subject: Re: [GENERAL] Gripe: bytea_output default => data corruption Date: Fri, 4 Feb 2011 23:27:33 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 26 Message-ID: References: <201102042114.p14LENv21963@momjian.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: slrn/0.9.9p1 (Linux) To: pgsql-docs@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/22 X-Sequence-Number: 6370 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.)