Re: funkiness with '1999-12-31 19:00:00-05'::timestamp with time zone
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: funkiness with '1999-12-31 19:00:00-05'::timestamp with time zone |
| Дата | |
| Msg-id | 28949.1283544883@sss.pgh.pa.us обсуждение |
| Ответ на | Re: funkiness with '1999-12-31 19:00:00-05'::timestamp with time zone (Josh Kupershmidt <schmiddy@gmail.com>) |
| Список | pgsql-general |
Josh Kupershmidt <schmiddy@gmail.com> writes:
> On Fri, Sep 3, 2010 at 4:01 PM, Tom Lane <tgl@sss.pgh.pa.us> 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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера