Йа тестер, нах!
Jan. 29th, 2016 09:40 am
create table test (d date);
postgres=# insert into test values ('5874897-01-01'::date);
INSERT 0 1
postgres=# insert into test values ('5874897-01-01'::date - '1D'::interval);
ERROR: date out of range for timestamp
STATEMENT: insert into test values ('5874897-01-01'::date - '1D'::interval);
ERROR: date out of range for timestamp