pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Владимир Баранов <baranoff@inbox.ru>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: COPY <table> FROM STDIN BINARY
Date: Mon, 20 Aug 2007 09:40:23 +1200
Message-ID: <46C8B8C7.8090402@opencloud.com> (raw)
In-Reply-To: <E1IM0A4-000BYC-00.baranoff-inbox-ru@f31.mail.ru>
References: <E1IM0A4-000BYC-00.baranoff-inbox-ru@f31.mail.ru>

Владимир Баранов 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



view thread (3+ messages)

Message-ID: <46C8B8C7.8090402@opencloud.com>
Permalink:  ../46C8B8C7.8090402@opencloud.com/
Also on:    postgresql.org/message-id/46C8B8C7.8090402@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, baranoff@inbox.ru
  Subject: Re: COPY <table> FROM STDIN BINARY
  In-Reply-To: <46C8B8C7.8090402@opencloud.com>
  References: <E1IM0A4-000BYC-00.baranoff-inbox-ru@f31.mail.ru> <46C8B8C7.8090402@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox