Dumb question about binary cursors and #ifdef HAVE_INT64_TIMESTAMP

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Dumb question about binary cursors and #ifdef HAVE_INT64_TIMESTAMP
Date: 2007-12-11 21:04:25
Message-ID: D425483C2C5C9F49B5B7A41F8944154701000B19@postal.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

If I create a binary cursor on a recent version of PostgreSQL, how can I
tell if the timestamp data internally is an 8 byte double or an 8 byte
integer?

I see an #ifdef that changes the code path to compute timestamps as one
type or the other, but I do not know how to recognize the internal
format of the type that will be returned in a binary cursor.

How can I do that?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2007-12-11 21:05:56 Re: top posting
Previous Message Collin Kidder 2007-12-11 21:02:56 Re: top posting

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2007-12-11 21:08:01 Re: VLDB Features
Previous Message Tom Lane 2007-12-11 20:59:41 Re: psql \dFp's behavior