Received: from mail.flutterby.com (www.flutterby.com [209.140.49.28]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1RKoJx06615 for ; Tue, 27 Feb 2001 15:50:19 -0500 (EST) (envelope-from danlyke@flutterby.com) Received: from wynand.flutterby.com (c1294852-a.marin1.sfba.home.com [65.11.14.11]) by mail.flutterby.com (8.9.3/8.9.3/Debian/GNU) with ESMTP id MAA23951; Tue, 27 Feb 2001 12:50:58 -0800 Received: (from danlyke@localhost) by wynand.flutterby.com (8.9.3/8.9.3/Debian 8.9.3-21) id MAA03015; Tue, 27 Feb 2001 12:39:47 -0800 From: Dan Lyke MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15004.4243.481906.138327@wynand.flutterby.com> Date: Tue, 27 Feb 2001 12:39:47 -0800 (PST) To: pgsql-interfaces@postgresql.org Cc: Peter Eisentraut Subject: Re: Double newline bug with DBD::Pg: Where best to fix? In-Reply-To: <9388.983305623@sss.pgh.pa.us> References: <15003.65308.557357.318833@wynand.flutterby.com> <9351.983305318@sss.pgh.pa.us> <9388.983305623@sss.pgh.pa.us> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-Archive-Number: 200102/187 X-Sequence-Number: 1151 Tom Lane writes: > On closer look, there is no leading-space issue. Psql is formatting the > column with a leading space as it usually does, and the newline-space > in the string is just being echoed. Compare: Yep, you're completely right. And in fact a little more testing (and pulling my head out of my butt) indicates that there's no problem at all with DBD::Pg, it's all with psql and the fact that I was using $dbh->quote to write a script which got piped into psql. Dang it, that's twice I've made a stupid foul-up on my end with potential PostgreSQL bugs. Anyway, we've at least established that there's a bug in psql. I can patch my one script to work around it, if I get into the psql source I'll try to drop a fix on y'all, although given my recent attention to detail that might not be a good idea... Dan