Mark the timestamptz variant of date_bin() as stable
authorJohn Naylor <john.naylor@postgresql.org>
Tue, 31 Aug 2021 18:15:22 +0000 (14:15 -0400)
committerJohn Naylor <john.naylor@postgresql.org>
Tue, 31 Aug 2021 19:19:57 +0000 (15:19 -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 0a4f4abdb3918411bd1442a12ecb83424832e77d..21b6648f5ad8da24a7aa9f0ecf3b8eb299fb1249 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                         yyyymmddN */
-#define CATALOG_VERSION_NO 202107181
+#define CATALOG_VERSION_NO 202108311
 
 #endif
index 79669bf5a2e2d163f29347f52f70dcb62cc759f0..aee037e21438ff1950f344da784c37cc61728fde 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' },