How to insert time/date received into time_t structure into column which has ‘timestamp without timezone’ type?
Previously I was using int8 as data type and time_t perfectly fits but I would like to know how to do it with timestamp field(preferably without casting time_t to string from caller program) using PQexecParams call.
Use the to_timestamp function.
Example:
Result: