Skip to content

fix: replace Timex with native timestamp casting#89

Merged
cpursley merged 1 commit into
agoodway:masterfrom
adriencohen:fix/timestamp-casting
Apr 3, 2026
Merged

fix: replace Timex with native timestamp casting#89
cpursley merged 1 commit into
agoodway:masterfrom
adriencohen:fix/timestamp-casting

Conversation

@adriencohen

@adriencohen adriencohen commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Timex.parse(record, "{RFC3339}") requires a T separator between date and time, but Postgres WAL pgoutput sends timestamps in space-separated format (e.g. 2024-01-15 10:30:00.123456+00).

This meant timestamp and timestamptz columns were never actually cast to DateTime. Native casting is also significantly faster and more memory efficient.

Timex.parse(record, "{RFC3339}") requires a T separator between date
and time, but Postgres WAL pgoutput sends timestamps in space-separated
format (e.g. "2024-01-15 10:30:00.123456+00").

This meant timestamp and timestamptz columns were never actually cast
to DateTime. Native casting is also significantly faster and more
memory efficient.
@adriencohen adriencohen force-pushed the fix/timestamp-casting branch from 45768ad to ecad384 Compare April 2, 2026 05:41
@cpursley cpursley merged commit d841a8e into agoodway:master Apr 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants