Search Postgresql Archives

Re: funkiness with '1999-12-31 19:00:00-05'::timestamp with time zone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Josh Kupershmidt <schmiddy@xxxxxxxxx> writes:
> On Fri, Sep 3, 2010 at 4:01 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
>> Interesting.  I can't imagine how you could have produced these with
>> plain COPY, since that would go through timestamptzin.  Was it by any
>> chance a binary COPY?  If so I could believe that funny timestamps could
>> get in.  Maybe some confusion over endianness of the binary data, for
>> instance.

> Exactly, the code is using COPY ... TO STDOUT WITH BINARY along with
> COPY ... FROM STDIN WITH BINARY.

OK; what you need to look at is how the client code is preparing the
timestamp values.  What they should be is floats representing seconds
since 2000-01-01 00:00 GMT, sent in bigendian byte order.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux