cl-postgres-datetime provides date/time integration for cl-postgres.
Neither local-time nor simple-date alone work well with all the date/time types that Postgres supports.
TIMESTAMP is a natural fit for
timestamptz, and while
non-timezone types like
date could be parsed into it, the user
has to remember to always use
+UTC-ZONE+ when decoding such a timestamp (the
values of decoded components may mismatch with the original if the default time
zone were different from UTC).
simple-date has no concept of time zones, so while it works well for every type
that doesn't need a timezone, it fails badly when it comes to
As of now, the library is not available in Quicklisp, so you will need to clone the repository and load it manually.
Once the library is loaded in your image, just use
update the readtable in cl-postgres.
(setf cl-postgres:*sql-readtable* (cl-postgres-datetime:update-sql-readtable cl-postgres:*sql-readtable*))