Add support for AT LOCAL
commit97957fdbaa429c7c582d4753b108cb1e23e1b28a
authorMichael Paquier <michael@paquier.xyz>
Fri, 13 Oct 2023 04:01:37 +0000 (13 13:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 13 Oct 2023 04:01:37 +0000 (13 13:01 +0900)
treefa277aed68029dae14326c5abe91f5b80544742e
parent0013ba290b6684d095d93517ff2ca1fadf79bdb9
Add support for AT LOCAL

When converting a timestamp to/from with/without time zone, the SQL
Standard specifies an AT LOCAL variant of AT TIME ZONE which uses the
session's time zone.  This includes three system functions able to do
the work in the same way as the existing flavors for AT TIME ZONE,
except that these need to be marked as stable as they depend on the
session's TimeZone GUC.

Bump catalog version.

Author: Vik Fearing
Reviewed-by: Laurenz Albe, Cary Huang, Michael Paquier
Discussion: https://postgr.es/m/8e25dec4-5667-c1a5-6581-167d710c2182@postgresfriends.org
doc/src/sgml/func.sgml
src/backend/parser/gram.y
src/backend/utils/adt/date.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/timestamp.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/timestamptz.out
src/test/regress/expected/timetz.out
src/test/regress/sql/timestamptz.sql
src/test/regress/sql/timetz.sql