Mark the timestamptz variant of date_bin() as stable
authorJohn Naylor <[email protected]>
Tue, 31 Aug 2021 18:15:22 +0000 (14:15 -0400)
committerJohn Naylor <[email protected]>
Tue, 31 Aug 2021 19:18:26 +0000 (15:18 -0400)
Previously, it was immutable by lack of marking. This is not
correct, since the time zone could change.

Bump catversion

Discussion: https://www.postgresql.org/message-id/CAFBsxsG2UHk8mOWL0tca%3D_cg%2B_oA5mVRNLhDF0TBw980iOg5NQ%40mail.gmail.com
Backpatch to v14, when this function came in

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

index 876583adaa65c16c094f6bbe942f0909d993cd60..21b6648f5ad8da24a7aa9f0ecf3b8eb299fb1249 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                                                     yyyymmddN */
-#define CATALOG_VERSION_NO     202108031
+#define CATALOG_VERSION_NO     202108311
 
 #endif
index b603700ed9dadc101b17201e34a4737d0dc48245..4f170eaf48c2bb6f974461fbfa4d0a7410cd43b4 100644 (file)
   proargtypes => 'interval timestamp timestamp', prosrc => 'timestamp_bin' },
 { oid => '6178',
   descr => 'bin timestamp with time zone into specified interval',
-  proname => 'date_bin', prorettype => 'timestamptz',
+  proname => 'date_bin', provolatile => 's', prorettype => 'timestamptz',
   proargtypes => 'interval timestamptz timestamptz',
   prosrc => 'timestamptz_bin' },