I have a TIMESTAMP WITHOUT TIME ZONE column in PostgreSQL lets call it last_update.
I discovered that when I query a field that has not been updated for 6 months it is not found ie.
SELECT id FROM example WHERE last_update = '2015-03-29 03:36:31.012000';
and if I do
SELECT last_update FROM example WHERE id = 1234;
the result is 2015-03-29 03:36:31.012000 so i know the timestamp should be found.
The
SELECT id FROM example WHERE last_update = '2015-10-21 10:15:00.468000';
query works for example, its just the entries that have not been updated since exactly the 29th of march that cannot be found with select.
Does anyone have an idea why this is happening and how can i fix it? Could it be that the database is corrupt?
where last_update = timestamp '2015-03-29 03:36:31.012000'select id from example where last_update = '2015-03-29 02:36:31.012000';but the following does not workselect id from example where last_update = timestamp '2015-03-29 03:36:31.012000';so it is a timestamp problem i just cannot figure out why