Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7D1B9633B55 for ; Mon, 2 Mar 2009 18:17:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15141-02 for ; Mon, 2 Mar 2009 18:17:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.televork.ee (mail.televork.ee [81.21.241.190]) by mail.postgresql.org (Postfix) with ESMTP id 449B56330CB for ; Mon, 2 Mar 2009 18:17:40 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.televork.ee (Postfix) with ESMTP id 0390118D3FF; Tue, 3 Mar 2009 00:17:37 +0200 (EET) X-Virus-Scanned: at mail.televork.ee Received: from mail.televork.ee ([81.21.241.190]) by localhost (mail.televork.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EFFOpj34P+2F; Tue, 3 Mar 2009 00:17:29 +0200 (EET) Received: from [127.0.0.1] (81-21-242-98.televork.ee [81.21.242.98]) by mail.televork.ee (Postfix) with ESMTP id E70A2182688; Tue, 3 Mar 2009 00:17:28 +0200 (EET) Subject: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ? From: Hannu Krosing To: DGPickett Cc: pgsql-jdbc@postgresql.org In-Reply-To: <8b19844a-98d4-4967-9426-3ddeec6f8559@a39g2000yqc.googlegroups.com> References: <095cddc9-bca7-41a5-84a8-0faca7adadc2@f11g2000vbf.googlegroups.com> <3c7f373b-77e6-4860-984e-101af492abe3@f37g2000vbf.googlegroups.com> <8b19844a-98d4-4967-9426-3ddeec6f8559@a39g2000yqc.googlegroups.com> Content-Type: text/plain Date: Tue, 03 Mar 2009 00:17:28 +0200 Message-Id: <1236032248.7132.5.camel@huvostro> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/4 X-Sequence-Number: 19334 On Fri, 2009-02-27 at 09:41 -0800, DGPickett wrote: > Somehow, doing what the real money RDBMS do, the de-facto standard, Could you describe, what do they do, especially for cases of really unknown sizes ? One solution would be to fetch all data into a buffer and actually measure the longest field size. > is > hard for postgres dudes, or they have more important concerns. It > makes the product seem shabby by comparison. Usually, that is enough > to motivate frantic coding, to make open source appear just as good. You are most welcome to "code frantically" :) PostgreSQL "dudes" in general are not in business of appearing just as good. Rather we are trying to produce the most advanced database available, at least for values of "most advanced" that matter to us. -- Hannu Krosing http://www.2ndQuadrant.com PostgreSQL Scalability and Availability Services, Consulting and Training