X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E697CD1B181 for ; Sat, 10 Jul 2004 14:11:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75279-08 for ; Sat, 10 Jul 2004 17:11:24 +0000 (GMT) Received: from mail.svhost.com.ar (mail.svhost.com.ar [200.80.239.22]) by svr1.postgresql.org (Postfix) with ESMTP id BDF7CD1B184 for ; Sat, 10 Jul 2004 14:11:22 -0300 (ADT) Received: from sistemat.com.ar (devel.sistemat.com.ar [192.168.1.40]) by mail.svhost.com.ar (Postfix) with ESMTP id E74BF239EE; Sat, 10 Jul 2004 14:09:57 -0300 (ART) Message-ID: <40F02556.1070109@sistemat.com.ar> Date: Sat, 10 Jul 2004 14:20:22 -0300 From: "Dario V. Fassi" Organization: SISTEMATICA ingenieria de software srl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: es, es-ar, en-us, en MIME-Version: 1.0 To: Greg Markham Cc: pgsql-jdbc@postgresql.org Subject: Re: Timestamp Question References: <40F012E4.3000001@markhamdirect.com> In-Reply-To: <40F012E4.3000001@markhamdirect.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/86 X-Sequence-Number: 10470 Greg Markham wrote: > I have searched the archives and not found and answer to this question: > > I am trying to use a Java Timestamp object to create a Postgresql > Timestamp(6) field. I can insert a Timestamp but it only goes to the > millisecond(2004-07-10 12:59:59.123) I need it to the microsecond > (2004-07-10 12:59:59.123456). Is there a way to do this? > > - Greg Markham > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if > your joining column's datatypes do not match I have the same problem, and It's very molest in cross-dabase operations (read in one and write in another vendor db). A workaround to this problem is create tables using "TIMESTAMP WITHOUT TIMEZONE", then most databases can take 2004-07-10 12:59:59.123 as 2004-07-10 12:59:59.123000 , but the real value could be 2004-07-10 12:59:59.000123. I think that If the microseconds come zero padded , simplify many things, even insert TIMESTAMP WITH TIMEZONE values on other databases where timestamps is always represented in Local time (without timezone). Dario Fassi.