Set the volatility of the timestamptz version of date_bin() back to immutable
authorJohn Naylor <john.naylor@postgresql.org>
Fri, 3 Sep 2021 17:38:15 +0000 (13:38 -0400)
committerJohn Naylor <john.naylor@postgresql.org>
Fri, 3 Sep 2021 17:39:16 +0000 (13:39 -0400)
543f36b43d was too hasty in thinking that the volatility of date_bin()
had to match date_trunc(), since only the latter references
session_timezone.

Bump catversion

Per feedback from Aleksander Alekseev
Backpatch to v14, as the former commit was

src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat

index e0f90c9d8e497a991381a3bfaf8c2eb44500c5e6..3190d82a868d1485c947e5212d378c419a40bac0 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                         yyyymmddN */
-#define CATALOG_VERSION_NO 202109021
+#define CATALOG_VERSION_NO 202109032
 
 #endif
index 1a750a49ca70cfea555271c5cd94e3bc39dacae8..c07b2c6a556a1e96c65ca5379dbf799d0b2bc378 100644 (file)
   proargtypes => 'interval timestamp timestamp', prosrc => 'timestamp_bin' },
 { oid => '6178',
   descr => 'bin timestamp with time zone into specified interval',
-  proname => 'date_bin', provolatile => 's', prorettype => 'timestamptz',
+  proname => 'date_bin', prorettype => 'timestamptz',
   proargtypes => 'interval timestamptz timestamptz',
   prosrc => 'timestamptz_bin' },