| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | Felix Kater <fkater(at)googlemail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: binary representation of date and numeric |
| Date: | 2007-04-27 07:40:22 |
| Message-ID: | 4631A8E6.7040409@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Felix Kater wrote:
> Hi,
>
> what is the binary representation of 'date' and 'numeric' data?
>
> I am using PQexecParam (C binding libpq-8.0.12) with binary export
> switched on. From the three examples in C code the types 'int4', 'bytea'
> and strings are covered, however nothing about 'date', 'numeric'.
>
> If there is no documentation and I need to examine the sources, could
> anyone point me to the needed files or sections?
You'll want to look in src/backend/utils/adt. Note that timestamps can
be compiled as floating-pt representations or int64, so you probably
want to check whether that has any impact on dates.
--
Richard Huxton
Archonet Ltd
| From | Date | Subject | |
|---|---|---|---|
| Next Message | A. Kretschmer | 2007-04-27 08:00:39 | Re: Business days |
| Previous Message | Hannes Dorbath | 2007-04-27 07:33:20 | Re: PostgreSQL upgrade server A -> server B |