Skip to content

Commit 533e02e

Browse files
committed
Fix volatility marking of timestamptz_trunc_zone.
It's safe to mark this as immutable, because it does not depend on the timezone GUC setting. Oversight in commit 600b04d. (There's an argument that timezone definitions do change from time to time, but we have not worried about that in marking other timestamp-related functions; for example AT TIME ZONE has always been considered immutable. The situation is no worse than our problems with time-varying locales, surely.) Przemysław Sztoch Discussion: https://postgr.es/m/eaa3fabe-50fc-bbe8-b096-ce62ddadab85@sztoch.pl
1 parent 97c61f7 commit 533e02e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/include/catalog/catversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@
5757
*/
5858

5959
/* yyyymmddN */
60-
#define CATALOG_VERSION_NO 202210261
60+
#define CATALOG_VERSION_NO 202211121
6161

6262
#endif

src/include/catalog/pg_proc.dat

+1-1
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@
24322432
proargtypes => 'text timestamptz', prosrc => 'timestamptz_trunc' },
24332433
{ oid => '1284',
24342434
descr => 'truncate timestamp with time zone to specified units in specified time zone',
2435-
proname => 'date_trunc', provolatile => 's', prorettype => 'timestamptz',
2435+
proname => 'date_trunc', prorettype => 'timestamptz',
24362436
proargtypes => 'text timestamptz text', prosrc => 'timestamptz_trunc_zone' },
24372437
{ oid => '1218', descr => 'truncate interval to specified units',
24382438
proname => 'date_trunc', prorettype => 'interval',

0 commit comments

Comments
 (0)