Skip to content

feat(checkers): add timestamp_without_tz#18

Merged
pirr merged 1 commit into
mainfrom
feat/checker-timestamp-without-tz
Apr 30, 2026
Merged

feat(checkers): add timestamp_without_tz#18
pirr merged 1 commit into
mainfrom
feat/checker-timestamp-without-tz

Conversation

@pirr

@pirr pirr commented Apr 30, 2026

Copy link
Copy Markdown
Owner

Flags columns typed as 'timestamp' (without time zone). The non-tz variant stores wall-clock digits with no timezone awareness; values written from different timezones merge incorrectly, DST transitions corrupt local times, and timezone changes don't migrate the data. timestamptz is what teams almost always want.

Severity: warning. The cost is real and accumulates (silent timezone bugs surface at DST or on a server move), but the schema isn't currently broken — fits warning per docs/severity.md.

Tests cover: clean (timestamptz), positive (timestamp), mixed (only the timestamp column flagged), dropped column ignored. 16/16 against PG 10/13/15/17.

@pirr pirr self-assigned this Apr 30, 2026
@pirr pirr added the checkers label Apr 30, 2026
Flags columns typed as 'timestamp' (without time zone). The
non-tz variant stores wall-clock digits with no timezone awareness;
values written from different timezones merge incorrectly, DST
transitions corrupt local times, and timezone changes don't migrate
the data. timestamptz is what teams almost always want.

Severity: warning. The cost is real and accumulates (silent timezone
bugs surface at DST or on a server move), but the schema isn't
currently broken — fits warning per docs/severity.md.

Tests cover: clean (timestamptz), positive (timestamp), mixed (only
the timestamp column flagged), dropped column ignored. 16/16 against
PG 10/13/15/17.
@pirr pirr force-pushed the feat/checker-timestamp-without-tz branch from aef5350 to a6b3ecb Compare April 30, 2026 18:12
@pirr pirr merged commit 59a0578 into main Apr 30, 2026
2 checks passed
@pirr pirr deleted the feat/checker-timestamp-without-tz branch April 30, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant