I've a createdAt field in a PostgreSQL table which is of the type timestamp with time zone. I want to change the format of it to include the milliseconds.
How do you suggest to change the timestamp format using the SQL query from
2018-08-21 10:35:28+00 to 2018-08-21 10:35:28.000+00?
Update:
Basically I want to convert second row createdAt to first row format with milliseconds.

SELECT EXTRACT(MILLISECONDS FROM <your timestamp column>);This datatype should store the milliseconds.28000as date_part which is showing milliseconds as 000 which is fine. I want to add that to the createdAt field.to_charfunction (ieSELECT to_char(createdAt, 'YYYY-MM-DD HH:MI:SS.MS TZ')) ?