Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2008-02-16 16:15:37
Subject: Re: UUID datatype
Previous:From: ntrDate: 2008-02-16 16:06:56
Subject: Re: UUID datatype

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group