How do I convert from timestamp (having milliseconds) to epoch
For E.g.,
Timestamp1 - 2019-10-20 11:43:47.298
Timestamp2 - 2019-10-20 11:43:47.469
Using EPOCH gives the same results for both the timestamps, even though they are different timestamps (different milliseconds)
Query-
extract('epoch' from timestamp '2019-10-20 11:43:47.298')::bigint * 1000
extract('epoch' from timestamp '2019-10-20 11:43:47.469')::bigint * 1000
Result - 1571571827000
I want different results as they have separate timestamps