Re: UUID datatype

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Andrew <archa(at)pacific(dot)net(dot)au>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: UUID datatype
Date: 2008-02-16 16:08:22
Message-ID: 19953.1203178102@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kris Jurka <books(at)ejurka(dot)com> writes:
> There aren't any exact plans, but I was thinking we would map the pg uuid
> type onto the java.util.UUID type. The only problem with that
> is java.util.UUID only appeared in the 1.5 JDK, so we'd only be
> able to support it for some driver versions. Do people think it's better
> to always map it to a PGuuid class?

Given that UUID is only in the latest PG version, it doesn't seem
unreasonable to support it only in newer JDKs too. Five years down
the road, not having mapped it to java.util.UUID will definitely
seem to have been a mistake, no?

regards, tom lane

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2008-02-16 16:15:37 Re: UUID datatype
Previous Message ntr 2008-02-16 16:06:56 Re: UUID datatype