Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B7C9D2E002F for ; Sat, 16 Feb 2008 12:08:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 07066-04 for ; Sat, 16 Feb 2008 12:08:27 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D00042E0032 for ; Sat, 16 Feb 2008 12:08:26 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m1GG8Mkr019954; Sat, 16 Feb 2008 11:08:22 -0500 (EST) To: Kris Jurka cc: Andrew , pgsql-jdbc@postgresql.org Subject: Re: UUID datatype In-reply-to: References: <47B6E776.9030608@pacific.net.au> Comments: In-reply-to Kris Jurka message dated "Sat, 16 Feb 2008 10:52:00 -0500" Date: Sat, 16 Feb 2008 11:08:22 -0500 Message-ID: <19953.1203178102@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/103 X-Sequence-Number: 18310 Kris Jurka 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