pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow dose Postgresql store date internaly?
2+ messages / 2 participants
[nested] [flat]
* How dose Postgresql store date internaly?
@ 2003-04-22 18:36 Erwin Ambrosch <naus.office@aon.at>
2003-04-22 20:29 ` Re: How dose Postgresql store date internaly? Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Erwin Ambrosch @ 2003-04-22 18:36 UTC (permalink / raw)
To: pgsql-admin
Hi,
can one tell me how Postgresql 7.3 stores the type DATE internally. I
know, I can set the datestyle to get the output in various formats.
But I would like to know, how a date is sored by the backend.
Maybe in milliseconds?
I think it depends on the datestyle how the date is interpreted for
inserts. So, dose the datestyle effect both, input and output of
temporal (except interval) data?
Thanks Erwin
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How dose Postgresql store date internaly?
2003-04-22 18:36 How dose Postgresql store date internaly? Erwin Ambrosch <naus.office@aon.at>
@ 2003-04-22 20:29 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-04-22 20:29 UTC (permalink / raw)
To: naus.office@aon.at; +Cc: pgsql-admin
Erwin Ambrosch <naus.office@aon.at> writes:
> can one tell me how Postgresql 7.3 stores the type DATE internally.
It's an integer day number; I don't know the date corresponding to day 0
offhand.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-04-22 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-22 18:36 How dose Postgresql store date internaly? Erwin Ambrosch <naus.office@aon.at>
2003-04-22 20:29 ` Tom Lane <tgl@sss.pgh.pa.us>
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