Repository navigation
Session time zones, done the way Oracle does them.
What changed
ALTER SESSION SET TIME_ZONEaccepts a named IANA region
('America/Sao_Paulo'), a fixed offset ('-03:00'), or'local'.TIMESTAMPTZvalues are converted to the session zone on the wire — with
per-instant, DST-correct offsets for named regions — instead of coming back in
UTC. Views no longer needAT TIME ZONE/::timestampcasts, and the Oracle
JDBC thin driver no longer needsoracle.jdbc.timezoneAsRegion=false. PG
timestamp(no zone) is unchanged.SESSIONTIMEZONE,DBTIMEZONE(usable without parens),
SYS_CONTEXT('USERENV','SESSIONTIMEZONE' | 'DB_TIMEZONE').- Preflight also drops a stale
oracle.sys_contextleft by pre-0.0.5 builds,
which shadowed the currentpublic.sys_context.
Note
New chrono-tz dependency bundles the IANA time-zone database (pure Rust). The
image stays a static musl binary on scratch, now ~12 MB (was ~10).
New corpus group time_zones.sql (13 cases). corpus 664 → 675.
docker pull levyks/pgsaci:0.0.8