X-Original-To: pgsql-hackers@postgresql.org Received: from mail1.servata.com (unknown [64.71.190.37]) by postgresql.org (Postfix) with ESMTP id 0925547611A for ; Thu, 20 Mar 2003 22:54:45 -0500 (EST) Received: from [66.75.240.167] (helo=192.168.1.90) by mail1.servata.com with asmtp (Exim 3.35 #1 (Debian)) id 18wDza-0002Zd-00 for ; Thu, 20 Mar 2003 20:18:54 -0800 From: Jeff Davis To: pgsql-hackers@postgresql.org Subject: Re: Roadmap for FE/BE protocol redesign Date: Thu, 20 Mar 2003 19:55:38 -0800 User-Agent: KMail/1.5 References: <19041.1047322279@sss.pgh.pa.us> In-Reply-To: <19041.1047322279@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303201955.38964.jdavis-pgsql@empires.org> X-Archive-Number: 200303/879 X-Sequence-Number: 37125 On Monday 10 March 2003 10:51 am, Tom Lane wrote: > > * XML support? If we do anything, I'd want some extensible solution to > allowing multiple query-result output formats from the backend, not an > XML-specific hack. For one thing, that would allow the actual appearance > of any XML support to happen later. It seems this would also be a good solution to a previous discussion about boolean representation. The postgres output of t/f is perfectly resonable, but can be somewhat confusing to someone that relies on PHP's typecasting. In the discussion, someone mentioned that if you take in a variable directly from the database and cast it to boolean, both 't' and 'f' will cast to true. It turned out to be even more confusing because MySQL uses 0/1 which cast properly. If I remember correctly, there was even talk of adding a run-time parameter similar to the datestyle. If it were all handled in the query-result output formatting functions like you suggest, that would seem like a much cleaner solution. Regards, Jeff Davis