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 58AA6D1B233 for ; Sat, 10 Jul 2004 13:19:35 -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 62836-05 for ; Sat, 10 Jul 2004 16:19:27 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 3A36AD1B20E for ; Sat, 10 Jul 2004 13:19:25 -0300 (ADT) Received: (qmail 9460 invoked from network); 10 Jul 2004 16:19:22 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 10 Jul 2004 16:19:22 -0000 Subject: Re: Timestamp Question From: Dave Cramer Reply-To: pg@fastcrypt.com To: Greg Markham Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <40F012E4.3000001@markhamdirect.com> References: <40F012E4.3000001@markhamdirect.com> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1089476382.1515.301.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 10 Jul 2004 12:19:43 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) 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/84 X-Sequence-Number: 10468 Greg, I don't think you can get microseconds from your system. you can use now() as the value to insert and it will get it from the server . Dave On Sat, 2004-07-10 at 12:01, 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 > > > > !DSPAM:40f013d973729751036622! > > -- Dave Cramer 519 939 0336 ICQ # 14675561