By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
SELECT
TO_CHAR(TO_TIMESTAMP('2019-11-10-07.10.55.865000', 'YYYY-MM-DD-HH.MI.SS.SUS'),
'YYYY-MM-DD HH:MI:SS.US') AS ts_out;
ts_out |
---|
2019-11-10 07:10:55.650000 |
SELECT 1