Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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:40:32 +0000 (13:40 -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 21b6648f5ad8da24a7aa9f0ecf3b8eb299fb1249..490cef62af5d7800d93de4bc7e83e422b37fc9a1 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                         yyyymmddN */
-#define CATALOG_VERSION_NO 202108311
+#define CATALOG_VERSION_NO 202109031
 
 #endif
index aee037e21438ff1950f344da784c37cc61728fde..79669bf5a2e2d163f29347f52f70dcb62cc759f0 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' },