diff --git a/doc/src/sgml/release-9.1.sgml b/doc/src/sgml/release-9.1.sgml
index 4ab11e25a7d469262c070039e1c8d1e34e9c8901..4c7141ee917bca8791a9378cf0216b5c7eb31af2 100644
--- a/doc/src/sgml/release-9.1.sgml
+++ b/doc/src/sgml/release-9.1.sgml
@@ -34,6 +34,19 @@
 
    <itemizedlist>
 
+    <listitem>
+     <para>
+      Fix infinite loops and buffer-overrun problems in regular expressions
+      (Tom Lane)
+     </para>
+
+     <para>
+      Very large character ranges in bracket expressions could cause
+      infinite loops in some cases, and memory overwrites in other cases.
+      (CVE-2016-0773)
+     </para>
+    </listitem>
+
     <listitem>
      <para>
       Perform an immediate shutdown if the <filename>postmaster.pid</> file
diff --git a/doc/src/sgml/release-9.2.sgml b/doc/src/sgml/release-9.2.sgml
index 78154cb8eca9faf9270caef35a2c839d0e6edcd3..cda6cebfb56488906cf17ed61e734142a5117a5a 100644
--- a/doc/src/sgml/release-9.2.sgml
+++ b/doc/src/sgml/release-9.2.sgml
@@ -34,6 +34,19 @@
 
    <itemizedlist>
 
+    <listitem>
+     <para>
+      Fix infinite loops and buffer-overrun problems in regular expressions
+      (Tom Lane)
+     </para>
+
+     <para>
+      Very large character ranges in bracket expressions could cause
+      infinite loops in some cases, and memory overwrites in other cases.
+      (CVE-2016-0773)
+     </para>
+    </listitem>
+
     <listitem>
      <para>
       Perform an immediate shutdown if the <filename>postmaster.pid</> file
diff --git a/doc/src/sgml/release-9.3.sgml b/doc/src/sgml/release-9.3.sgml
index 0f4907daa99f9947edd6d66c86dd5988485968b3..6a708c44af34582f9c6a8a5f044f1a3eb3550f09 100644
--- a/doc/src/sgml/release-9.3.sgml
+++ b/doc/src/sgml/release-9.3.sgml
@@ -34,6 +34,19 @@
 
    <itemizedlist>
 
+    <listitem>
+     <para>
+      Fix infinite loops and buffer-overrun problems in regular expressions
+      (Tom Lane)
+     </para>
+
+     <para>
+      Very large character ranges in bracket expressions could cause
+      infinite loops in some cases, and memory overwrites in other cases.
+      (CVE-2016-0773)
+     </para>
+    </listitem>
+
     <listitem>
      <para>
       Perform an immediate shutdown if the <filename>postmaster.pid</> file
diff --git a/doc/src/sgml/release-9.4.sgml b/doc/src/sgml/release-9.4.sgml
index 7ba54a924ee8ba8ded7aa9d9322ead86b9f0b7c5..6186f76fb1158953bd7189ac9351846af87a7764 100644
--- a/doc/src/sgml/release-9.4.sgml
+++ b/doc/src/sgml/release-9.4.sgml
@@ -65,6 +65,19 @@ Branch: REL9_4_STABLE [788e35ac0] 2015-11-05 18:15:48 -0500
      </para>
     </listitem>
 
+    <listitem>
+     <para>
+      Fix infinite loops and buffer-overrun problems in regular expressions
+      (Tom Lane)
+     </para>
+
+     <para>
+      Very large character ranges in bracket expressions could cause
+      infinite loops in some cases, and memory overwrites in other cases.
+      (CVE-2016-0773)
+     </para>
+    </listitem>
+
 <!--
 Author: Tom Lane <tgl@sss.pgh.pa.us>
 Branch: master [7e2a18a91] 2015-10-06 17:15:52 -0400
diff --git a/doc/src/sgml/release-9.5.sgml b/doc/src/sgml/release-9.5.sgml
index 6639be53bf3a95d6547927b268038609ad30827f..3e9d158fbb38740e5e942c87b103e54728546601 100644
--- a/doc/src/sgml/release-9.5.sgml
+++ b/doc/src/sgml/release-9.5.sgml
@@ -28,6 +28,29 @@
 
    <itemizedlist>
 
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [3bb3f42f3] 2016-02-08 10:25:40 -0500
+Branch: REL9_5_STABLE [a61de2bc1] 2016-02-08 10:25:40 -0500
+Branch: REL9_4_STABLE [fdc3139e2] 2016-02-08 10:25:40 -0500
+Branch: REL9_3_STABLE [6403a6b74] 2016-02-08 10:25:40 -0500
+Branch: REL9_2_STABLE [e93516cf7] 2016-02-08 10:25:40 -0500
+Branch: REL9_1_STABLE [98d6b7305] 2016-02-08 10:25:40 -0500
+-->
+
+    <listitem>
+     <para>
+      Fix infinite loops and buffer-overrun problems in regular expressions
+      (Tom Lane)
+     </para>
+
+     <para>
+      Very large character ranges in bracket expressions could cause
+      infinite loops in some cases, and memory overwrites in other cases.
+      (CVE-2016-0773)
+     </para>
+    </listitem>
+
 <!--
 Author: Tom Lane <tgl@sss.pgh.pa.us>
 Branch: master [f867ce551] 2016-02-07 12:29:32 -0500
@@ -41,6 +64,32 @@ Branch: REL9_5_STABLE [129db3cbe] 2016-02-07 12:29:17 -0500
      </para>
     </listitem>
 
+<!--
+Author: Andres Freund <andres@anarazel.de>
+Branch: master [a6897efab] 2016-02-08 11:03:31 +0100
+Branch: REL9_5_STABLE [87dbc72a7] 2016-02-08 11:03:37 +0100
+-->
+
+    <listitem>
+     <para>
+      Avoid pushdown of <literal>HAVING</> clauses when grouping sets are
+      used (Andrew Gierth)
+     </para>
+    </listitem>
+
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [cc2ca9319] 2016-02-07 14:57:24 -0500
+Branch: REL9_5_STABLE [82406d6ff] 2016-02-07 14:57:24 -0500
+-->
+
+    <listitem>
+     <para>
+      Fix deparsing of <literal>ON CONFLICT</> arbiter <literal>WHERE</>
+      clauses (Peter Geoghegan)
+     </para>
+    </listitem>
+
 <!--
 Author: Tom Lane <tgl@sss.pgh.pa.us>
 Branch: master [b8682a715] 2016-01-26 15:38:33 -0500
@@ -272,6 +321,8 @@ Branch: REL9_5_STABLE [40482e606] 2016-02-01 13:20:37 +0100
 Branch: REL9_3_STABLE [0b55fef39] 2016-02-01 13:19:10 +0100
 Branch: REL9_2_STABLE [d9ce5d201] 2016-02-01 13:19:34 +0100
 Branch: REL9_1_STABLE [79782b407] 2016-02-01 13:19:43 +0100
+Author: Andres Freund <andres@anarazel.de>
+Branch: REL9_4_STABLE [33b26426e] 2016-02-08 11:10:14 +0100
 -->
 
     <listitem>