pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Robert Landsmeer <r.landsmeer@wis.nl>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Question about ResultSetMetaData
Date: Fri, 21 Apr 2006 15:14:09 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0604211511160.1040@leary2.csoft.net> (raw)
In-Reply-To: <50CA25BD6EEA954FA592C097399942E30E463D65@CM1.wis.local>
References: <50CA25BD6EEA954FA592C097399942E30E463D65@CM1.wis.local>



On Fri, 21 Apr 2006, Robert Landsmeer wrote:

> In the application i am developing we query the ResultSetMetaData for
> all columns in a particular table to discover the type and null-ability
> of the column.

If this is all from one table, perhaps you would be better off using a 
DatabaseMetaData.getColumns instead?  That should only issue one query.

> On the todolist I found the following under the idea's section:
>
> ResultSetMetaData calls that run queries are cached on a per column
> basis, but it seems likely that they're going to be called for all
> columns, so try to issue one query per ResultSet, not per column.
>
> Does anyone know if this will make it into a release someday? As it
> would really help us performance wise.
>

At this point it is just an idea.  No one that I know of is working on it.

Kris Jurka



view thread (2+ messages)

Message-ID: <Pine.BSO.4.63.0604211511160.1040@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.63.0604211511160.1040@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0604211511160.1040@leary2.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, r.landsmeer@wis.nl
  Subject: Re: Question about ResultSetMetaData
  In-Reply-To: <Pine.BSO.4.63.0604211511160.1040@leary2.csoft.net>
  References: <50CA25BD6EEA954FA592C097399942E30E463D65@CM1.wis.local> <Pine.BSO.4.63.0604211511160.1040@leary2.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