Norman Yamada <nyamada(at)millburncorp(dot)com> writes:
> Postgresql stores dates as Julian days, but using libpq, I don't see
> how to get out a date quickly as a julian day. If I use PQgetvalue,
> my date is automagically converted into whatever my DATESTYLE is at
> the time. How can I just get out the internal julian date?
Something involving EXTRACT(EPOCH FROM timestamp) will probably solve
your problem.
regards, tom lane