pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Luis Flores <luiscamposflores@gmail.com>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: bug report: slow getColumnTypeName
Date: Wed, 17 Oct 2012 12:56:24 +0800
Message-ID: <507E3A78.5040707@ringerc.id.au> (raw)
In-Reply-To: <CADK3HH+TN17_BEMs_n3vuN2GaccCSkFekGR9RRbJsVvMVU5snQ@mail.gmail.com>
References: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com>
	<CAMiEbchygfLbpytyOdDXL3-ORjMD76u_0MqwX9QROzCkHUUp0Q@mail.gmail.com>
	<50745541.8060204@ttc-cmc.net>
	<CA+nXnG8thQTe6D-njQYqQUd-LuXD2--RBejCz6Oq7dtMUEEs=g@mail.gmail.com>
	<CA+nXnG-xy8GvVj1gH0f0evuL0uvyw9f87zQVks_zzyuY7ZJEFA@mail.gmail.com>
	<CA+nXnG_Ma7c2kjsQJPDQMwXtsJHPW+7U0G3dQSzH8YpFMxaVSQ@mail.gmail.com>
	<CAMiEbchMwYJE7ShZw2YhSWV2MQ4mPA7Npti9Q2PiADhx8wCNkQ@mail.gmail.com>
	<CA+nXnG-_K3yLEm=daMV9fy7XNZLK8zBrMiE2UOm05vCBsBvmig@mail.gmail.com>
	<B0909057-2120-4C85-A442-0D0098DD4ACE@yahoo.com>
	<CA+nXnG-N2Fz3TUsxa485RL6n78L4aPWr4=HOnav0MR8EowErZQ@mail.gmail.com>
	<50776FB4.5090701@ringerc.id.au>
	<k58djk$4m3$1@ger.gmane.org>
	<5077C103.4040701@ringerc.id.au>
	<DBAC0636-546F-4864-9E01-E21D25050C71@gmail.com>
	<5077EBAD.5060708@ringerc.id.au>
	<CADK3HH+TN17_BEMs_n3vuN2GaccCSkFekGR9RRbJsVvMVU5snQ@mail.gmail.com>

On 10/17/2012 07:28 AM, Dave Cramer wrote:
> So what is the consensus on this.
>
> I would lean towards removing serial types here

I certainly want to, as I think the status quo is not only inefficient 
and incorrect but it fails to even function as designed (incorrectly 
calling 'integer' columns generated by a sequence 'serial' no matter 
what the sequence is) and cannot easily be fixed.

The questions that must still be answered are:

- How do we tell developers about the change?

- Is a compatibility flag required?

- What might it break? Do we need to test popular ORM systems or let
   their developers know?

- What does the metadata spec actually require us to supply?


The 9.2 driver has been pushed and it's a backwards-incompatible change, 
so it's probably a change that's only suitable for 9.3/master. I'm 
inclined to just make the change in master, push a beta driver to the 
website, and see it reports come in. I can test Hibernate and 
EclipseLink out, but I'm pretty sure they won't care.


BTW, I'm quite surprised that PostgreSQL doesn't expose information 
about column value generation in INFORMATION_SCHEMA.COLUMNS at the 
moment; the "is_identity" column is always "NO" and "is_generated" is 
always "NEVER". `pg_attribute` doesn't seem to convey it either. 
Shouldn't we be able to ask PostgreSQL for this information?

I'll have a look and see how the driver currently reports whether fields 
are generated, are identity fields, etc.

Looking at the number of issue reports that focus on metadata, I suspect 
that's a real weak point of the current driver and really needs a 
review. Yay. Something for all that abundant spare time.

--
Craig Ringer




view thread (30+ messages)  latest in thread

Message-ID: <507E3A78.5040707@ringerc.id.au>
Permalink:  ../507E3A78.5040707@ringerc.id.au/
Also on:    postgresql.org/message-id/507E3A78.5040707@ringerc.id.au

 · 

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: ringerc@ringerc.id.au, pg@fastcrypt.com, luiscamposflores@gmail.com, spam_eater@gmx.net
  Subject: Re: bug report: slow getColumnTypeName
  In-Reply-To: <507E3A78.5040707@ringerc.id.au>
  References: <CAMiEbch4MsNhkTamK3dt4GpJ8qU0BObYPmMNGkrzVFLjwONMpQ@mail.gmail.com> <CAMiEbchygfLbpytyOdDXL3-ORjMD76u_0MqwX9QROzCkHUUp0Q@mail.gmail.com> <50745541.8060204@ttc-cmc.net> <CA+nXnG8thQTe6D-njQYqQUd-LuXD2--RBejCz6Oq7dtMUEEs=g@mail.gmail.com> <CA+nXnG-xy8GvVj1gH0f0evuL0uvyw9f87zQVks_zzyuY7ZJEFA@mail.gmail.com> <CA+nXnG_Ma7c2kjsQJPDQMwXtsJHPW+7U0G3dQSzH8YpFMxaVSQ@mail.gmail.com> <CAMiEbchMwYJE7ShZw2YhSWV2MQ4mPA7Npti9Q2PiADhx8wCNkQ@mail.gmail.com> <CA+nXnG-_K3yLEm=daMV9fy7XNZLK8zBrMiE2UOm05vCBsBvmig@mail.gmail.com> <B0909057-2120-4C85-A442-0D0098DD4ACE@yahoo.com> <CA+nXnG-N2Fz3TUsxa485RL6n78L4aPWr4=HOnav0MR8EowErZQ@mail.gmail.com> <50776FB4.5090701@ringerc.id.au> <k58djk$4m3$1@ger.gmane.org> <5077C103.4040701@ringerc.id.au> <DBAC0636-546F-4864-9E01-E21D25050C71@gmail.com> <5077EBAD.5060708@ringerc.id.au> <CADK3HH+TN17_BEMs_n3vuN2GaccCSkFekGR9RRbJsVvMVU5snQ@mail.gmail.com> <507E3A78.5040707@ringerc.id.au>

* 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