pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Hannu Krosing <hannu@2ndQuadrant.com>
Cc: DGPickett <DGPickett@aol.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Date: Mon, 2 Mar 2009 19:05:58 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0903021903420.9134@leary.csoft.net> (raw)
In-Reply-To: <1236032248.7132.5.camel@huvostro>
References: <095cddc9-bca7-41a5-84a8-0faca7adadc2@f11g2000vbf.googlegroups.com>
	<Pine.BSO.4.64.0902251858180.2899@leary.csoft.net>
	<be6ffbdc-6190-4f2b-8e2e-b45fa9e5a596@r27g2000vbp.googlegroups.com>
	<Pine.BSO.4.64.0902261310090.24291@leary.csoft.net>
	<3c7f373b-77e6-4860-984e-101af492abe3@f37g2000vbf.googlegroups.com>
	<Pine.BSO.4.64.0902261553090.26397@leary.csoft.net>
	<8b19844a-98d4-4967-9426-3ddeec6f8559@a39g2000yqc.googlegroups.com>
	<1236032248.7132.5.camel@huvostro>



On Tue, 3 Mar 2009, Hannu Krosing wrote:

> 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.

That's not always an option.  Consider the case of 
PreparedStatement.getMetaData(), it must be able to return metadata 
without executing the statement.

Kris Jurka



view thread (13+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0903021903420.9134@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0903021903420.9134@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0903021903420.9134@leary.csoft.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, hannu@2ndQuadrant.com, DGPickett@aol.com
  Subject: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
  In-Reply-To: <Pine.BSO.4.64.0903021903420.9134@leary.csoft.net>
  References: <095cddc9-bca7-41a5-84a8-0faca7adadc2@f11g2000vbf.googlegroups.com> <Pine.BSO.4.64.0902251858180.2899@leary.csoft.net> <be6ffbdc-6190-4f2b-8e2e-b45fa9e5a596@r27g2000vbp.googlegroups.com> <Pine.BSO.4.64.0902261310090.24291@leary.csoft.net> <3c7f373b-77e6-4860-984e-101af492abe3@f37g2000vbf.googlegroups.com> <Pine.BSO.4.64.0902261553090.26397@leary.csoft.net> <8b19844a-98d4-4967-9426-3ddeec6f8559@a39g2000yqc.googlegroups.com> <1236032248.7132.5.camel@huvostro> <Pine.BSO.4.64.0903021903420.9134@leary.csoft.net>

* 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