[postgresql] Find difference between timestamps in seconds in PostgreSQL