postgresql_16:5.3.6.8 Special Constants of pgtypeslib
PostgreSQL 16 > Client Interfaces > ECPG — Embedded SQL in C > pgtypes Library > Special Constants of pgtypeslib
PGTYPESInvalidTimestamp A value of type timestamp representing an invalid time stamp. This is returned by the function PGTYPEStimestamp_from_asc on parse error. Note that due to the internal representation of the timestamp data type, PGTYPESInvalidTimestamp is also a valid timestamp at the same time. It is set to 1899-12-31 23:59:59. In order to detect errors, make sure that your application does not only test for PGTYPESInvalidTimestamp but also for errno != 0 after each call to PGTYPEStimestamp_from_asc.