=> SELECT CAST('1962'1964-05-02 00:00' AS TIMESTAMP) = CAST('1962'1964-05-02 00:00:00' AS TIMESTAMP);
?column?
----------
t
(1 row)
=> SELECT CAST('1962'1964-05' AS TIMESTAMP) = CAST('1962'1964-05-02' AS TIMESTAMP);
?column?
----------
t
(1 row)