mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
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
This commit is contained in:
@@ -57,6 +57,6 @@
|
||||
*/
|
||||
|
||||
/* yyyymmddN */
|
||||
#define CATALOG_VERSION_NO 202309251
|
||||
#define CATALOG_VERSION_NO 202310131
|
||||
|
||||
#endif
|
||||
|
@@ -2319,6 +2319,9 @@
|
||||
{ oid => '1159', descr => 'adjust timestamp to new time zone',
|
||||
proname => 'timezone', prorettype => 'timestamp',
|
||||
proargtypes => 'text timestamptz', prosrc => 'timestamptz_zone' },
|
||||
{ oid => '9159', descr => 'adjust timestamp to local time zone',
|
||||
proname => 'timezone', provolatile => 's', prorettype => 'timestamp',
|
||||
proargtypes => 'timestamptz', prosrc => 'timestamptz_at_local' },
|
||||
|
||||
{ oid => '1160', descr => 'I/O',
|
||||
proname => 'interval_in', provolatile => 's', prorettype => 'interval',
|
||||
@@ -6095,6 +6098,9 @@
|
||||
{ oid => '2038', descr => 'adjust time with time zone to new zone',
|
||||
proname => 'timezone', prorettype => 'timetz',
|
||||
proargtypes => 'interval timetz', prosrc => 'timetz_izone' },
|
||||
{ oid => '9161', descr => 'adjust time to local time zone',
|
||||
proname => 'timezone', provolatile => 's', prorettype => 'timetz',
|
||||
proargtypes => 'timetz', prosrc => 'timetz_at_local' },
|
||||
{ oid => '2039', descr => 'hash',
|
||||
proname => 'timestamp_hash', prorettype => 'int4', proargtypes => 'timestamp',
|
||||
prosrc => 'timestamp_hash' },
|
||||
@@ -6190,6 +6196,9 @@
|
||||
{ oid => '2070', descr => 'adjust timestamp to new time zone',
|
||||
proname => 'timezone', prorettype => 'timestamptz',
|
||||
proargtypes => 'interval timestamp', prosrc => 'timestamp_izone' },
|
||||
{ oid => '9160', descr => 'adjust timestamp to local time zone',
|
||||
proname => 'timezone', provolatile => 's', prorettype => 'timestamptz',
|
||||
proargtypes => 'timestamp', prosrc => 'timestamp_at_local' },
|
||||
{ oid => '2071',
|
||||
proname => 'date_pl_interval', prorettype => 'timestamp',
|
||||
proargtypes => 'date interval', prosrc => 'date_pl_interval' },
|
||||
|
Reference in New Issue
Block a user