Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 245A39F9C92 for ; Sun, 19 Aug 2007 18:42:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 27099-03 for ; Sun, 19 Aug 2007 18:40:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id D2D129F971F for ; Sun, 19 Aug 2007 18:40:34 -0300 (ADT) Received: from 222-154-153-196.jetstream.xtra.co.nz ([222.154.153.196] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IMsVQ-0007WZ-JJ; Mon, 20 Aug 2007 09:40:20 +1200 Message-ID: <46C8B8C7.8090402@opencloud.com> Date: Mon, 20 Aug 2007 09:40:23 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: =?KOI8-R?Q?=F7=CC=C1=C4=C9=CD=C9=D2_=E2=C1=D2=C1=CE=CF=D7?= CC: pgsql-jdbc@postgresql.org Subject: Re: COPY FROM STDIN BINARY References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/81 X-Sequence-Number: 17394 Владимир Баранов wrote: > My question is: what input binary format of a timestamp value should I use? There are two possible formats depending on whether or not integer_datetimes is set or not. (This is a compile-time option, you can query the server to see which is set via SHOW, I think -- it's also autoreported on connection startup, but you can't get at that as a JDBC client) I can't remember the details of the formats though -- you may need to check the server source code for details. One is a 64-bit integer from memory. -O