What function can I use to adapt values for suitable use in a ...COPY FROM... statement? I tried this ...adapt... function:...from psycopg2.extensions import adapt
...However, it gives the wrong thing for datetimes (appends ...::timestsamp... to the strin...