FRN312[info]Types
Timestamp without time zone
timestamp stores a wall-clock time with no zone, so its meaning depends on the writer's settings.
Why it's risky in PostgreSQL
timestamp without time zone keeps whatever local time the client sent. Servers or sessions in different time zones then write values that look equal but aren't, and daylight-saving changes create duplicate or missing hours.
timestamptz stores an absolute instant in the same 8 bytes and converts on display.
What triggers it, and the safer way
CREATE TABLE orders (id bigint, placed_at timestamp);CREATE TABLE orders (id bigint, placed_at timestamptz);Suppress it when you're sure
Put this comment on the line before the statement. The reason is required and shows in the report.
-- fronelta:allow FRN312 <why this is safe here>Applies to PostgreSQL 14, 15, 16, 17.