<!-- doc/src/sgml/release-10.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+ <sect1 id="release-10-1">
+ <title>Release 10.1</title>
+
+ <formalpara>
+ <title>Release date:</title>
+ <para>2017-11-09</para>
+ </formalpara>
+
+ <para>
+ This release contains a variety of fixes from 10.0.
+ For information about new features in major release 10, see
+ <xref linkend="release-10">.
+ </para>
+
+ <sect2>
+ <title>Migration to Version 10.1</title>
+
+ <para>
+ A dump/restore is not required for those running 10.X.
+ </para>
+
+ <para>
+ However, if you use BRIN indexes, see the first changelog entry below.
+ </para>
+ </sect2>
+
+ <sect2>
+ <title>Changes</title>
+
+ <itemizedlist>
+
+ <listitem>
+<!--
+Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
+Branch: master [ec42a1dcb] 2017-11-03 17:23:13 +0100
+Branch: REL_10_STABLE [37a856567] 2017-11-03 17:23:13 +0100
+Branch: REL9_6_STABLE [bd8e2b3cf] 2017-11-03 17:23:13 +0100
+Branch: REL9_5_STABLE [cf0612aa2] 2017-11-03 17:23:13 +0100
+Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
+Branch: master [1b890562b] 2017-11-03 20:45:36 +0100
+Branch: REL_10_STABLE [b17870d75] 2017-11-03 20:47:44 +0100
+-->
+ <para>
+ Fix BRIN index summarization to handle concurrent table extension
+ correctly (Álvaro Herrera)
+ </para>
+
+ <para>
+ Previously, a race condition allowed some table rows to be omitted from
+ the index. It may be necessary to reindex existing BRIN indexes to
+ recover from past occurrences of this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [62a16572d] 2017-11-02 12:54:55 -0400
+Branch: REL_10_STABLE [97ba7b8c8] 2017-11-02 12:54:22 -0400
+Branch: REL9_6_STABLE [a43cd427e] 2017-11-02 12:54:23 -0400
+Branch: REL9_5_STABLE [43276abc6] 2017-11-02 12:54:23 -0400
+-->
+ <para>
+ Fix possible failures during concurrent updates of a BRIN index
+ (Tom Lane)
+ </para>
+
+ <para>
+ These race conditions could result in errors like <quote>invalid index
+ offnum</quote> or <quote>inconsistent range map</quote>.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Peter Eisentraut <peter_e@gmx.net>
+Branch: master [a9fce6672] 2017-11-03 12:27:59 -0400
+Branch: REL_10_STABLE [a14b52c61] 2017-11-03 12:28:08 -0400
+-->
+ <para>
+ Prevent logical replication from setting non-replicated columns to
+ nulls when replicating an <command>UPDATE</command> (Petr Jelinek)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Robert Haas <rhaas@postgresql.org>
+Branch: master [360fd1a7b] 2017-10-12 10:26:55 -0400
+Branch: REL_10_STABLE [7cde649ab] 2017-10-12 10:26:54 -0400
+-->
+ <para>
+ Fix logical replication to fire <literal>BEFORE ROW DELETE</literal>
+ triggers when expected (Masahiko Sawada)
+ </para>
+
+ <para>
+ Previously, that failed to happen unless the table also had
+ a <literal>BEFORE ROW UPDATE</literal> trigger.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [1518d0784] 2017-10-06 19:18:58 -0400
+Branch: REL_10_STABLE [485d49dbc] 2017-10-06 19:18:58 -0400
+Branch: REL9_6_STABLE [185279da3] 2017-10-06 19:18:58 -0400
+Branch: REL9_5_STABLE [13d2ed921] 2017-10-06 19:18:59 -0400
+Branch: REL9_4_STABLE [bfb69b1e5] 2017-10-06 19:18:59 -0400
+-->
+ <para>
+ Fix crash when logical decoding is invoked from a SPI-using function,
+ in particular any function written in a PL language
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [7421f4b89] 2017-10-16 17:56:54 -0400
+Branch: REL_10_STABLE [799037099] 2017-10-16 17:56:43 -0400
+-->
+ <para>
+ Ignore CTEs when looking up the target table for
+ <command>INSERT</command>/<command>UPDATE</command>/<command>DELETE</command>,
+ and prevent matching schema-qualified target table names to trigger
+ transition table names (Thomas Munro)
+ </para>
+
+ <para>
+ This restores the pre-v10 behavior for CTEs attached to DML commands.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [c3dfe0fec] 2017-10-16 15:24:36 -0400
+Branch: REL_10_STABLE [72e9cc971] 2017-10-16 15:24:36 -0400
+-->
+ <para>
+ Avoid evaluating an aggregate function's argument expression(s) at rows
+ where its <literal>FILTER</literal> test fails (Tom Lane)
+ </para>
+
+ <para>
+ This restores the pre-v10 (and SQL-standard) behavior.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [08f1e1f0a] 2017-10-26 12:17:40 -0400
+Branch: REL_10_STABLE [6a81ba1d4] 2017-10-26 12:17:40 -0400
+Branch: REL9_6_STABLE [37b4e0fe9] 2017-10-26 12:17:40 -0400
+-->
+ <para>
+ Fix incorrect query results when multiple <literal>GROUPING
+ SETS</literal> columns contain the same simple variable (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [a1c2c430d] 2017-10-06 14:28:42 -0400
+Branch: REL_10_STABLE [0c25e9652] 2017-10-06 14:28:42 -0400
+-->
+ <para>
+ Fix query-lifespan memory leakage while evaluating a set-returning
+ function in a <command>SELECT</command>'s target list (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Robert Haas <rhaas@postgresql.org>
+Branch: master [682ce911f] 2017-10-27 22:22:39 +0200
+Branch: REL_10_STABLE [a87c0c763] 2017-10-29 20:48:51 +0530
+-->
+ <para>
+ Allow parallel execution of prepared statements with generic plans
+ (Amit Kapila, Kuntal Ghosh)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Robert Haas <rhaas@postgresql.org>
+Branch: master [639c1a6bb] 2017-10-27 16:04:01 +0200
+Branch: REL_10_STABLE [965a16fa9] 2017-10-27 16:04:10 +0200
+Branch: REL9_6_STABLE [036b6bd50] 2017-10-27 16:12:16 +0200
+-->
+ <para>
+ Fix incorrect parallelization decisions for nested queries
+ (Amit Kapila, Kuntal Ghosh)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Robert Haas <rhaas@postgresql.org>
+Branch: master [846fcc851] 2017-10-29 12:58:40 +0530
+Branch: REL_10_STABLE [69125c883] 2017-10-29 13:04:37 +0530
+Branch: REL9_6_STABLE [f74f871b8] 2017-10-29 13:14:37 +0530
+-->
+ <para>
+ Fix parallel query handling to not fail when a recently-used role is
+ dropped (Amit Kapila)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Robert Haas <rhaas@postgresql.org>
+Branch: master [6393613b6] 2017-10-13 15:02:45 -0400
+Branch: REL_10_STABLE [a3b1c2218] 2017-10-13 15:05:14 -0400
+-->
+ <para>
+ Fix crash in parallel execution of a bitmap scan having a BitmapAnd
+ plan node below a BitmapOr node (Dilip Kumar)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Andrew Dunstan <andrew@dunslane.net>
+Branch: master [f3c6e8a27] 2017-10-25 07:13:11 -0400
+Branch: REL_10_STABLE [fb17082d7] 2017-10-25 07:14:21 -0400
+Branch: REL9_6_STABLE [5c3a1bbb4] 2017-10-25 07:19:59 -0400
+Branch: REL9_5_STABLE [5c8dcd322] 2017-10-25 07:20:37 -0400
+Branch: REL9_4_STABLE [7f89fc418] 2017-10-25 07:20:48 -0400
+Author: Andrew Dunstan <andrew@dunslane.net>
+Branch: master [18fc4ecf4] 2017-10-25 07:34:00 -0400
+Branch: REL_10_STABLE [06d5ba0d4] 2017-10-25 07:40:33 -0400
+Branch: REL9_6_STABLE [98efa5ebf] 2017-10-25 07:48:36 -0400
+Branch: REL9_5_STABLE [3cc5f0550] 2017-10-25 07:49:13 -0400
+Branch: REL9_4_STABLE [9cb28e98b] 2017-10-25 07:52:45 -0400
+-->
+ <para>
+ Fix <function>json_build_array()</function>,
+ <function>json_build_object()</function>, and their <type>jsonb</type>
+ equivalents to handle explicit <literal>VARIADIC</literal> arguments
+ correctly (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
+Branch: master [be72b9c37] 2017-10-30 15:52:02 +0100
+Branch: REL_10_STABLE [52ca7572c] 2017-10-30 15:52:13 +0100
+-->
+ <para>
+ Fix autovacuum's <quote>work item</quote> logic to prevent possible
+ crashes and silent loss of work items (Álvaro Herrera)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [d5b760ecb] 2017-10-27 17:28:54 -0400
+Branch: REL_10_STABLE [ddde3b4f3] 2017-10-27 17:10:21 -0400
+Branch: REL9_6_STABLE [7e5e8b36d] 2017-10-27 17:10:21 -0400
+Branch: REL9_5_STABLE [acd3287e4] 2017-10-27 17:10:21 -0400
+Branch: REL9_4_STABLE [66104119e] 2017-10-27 17:10:21 -0400
+Branch: REL9_3_STABLE [9d15b8b36] 2017-10-27 17:10:21 -0400
+Branch: REL9_2_STABLE [80e79718d] 2017-10-27 17:10:21 -0400
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [d76886c2d] 2017-10-27 18:16:24 -0400
+Branch: REL_10_STABLE [291a31c42] 2017-10-27 18:16:25 -0400
+Branch: REL9_6_STABLE [21daada10] 2017-10-27 18:16:25 -0400
+Branch: REL9_5_STABLE [1f81c2cd5] 2017-10-27 18:16:25 -0400
+Branch: REL9_4_STABLE [d01d97c25] 2017-10-27 18:16:25 -0400
+Branch: REL9_3_STABLE [e06b9e9dc] 2017-10-27 18:16:25 -0400
+Branch: REL9_2_STABLE [a4c11c103] 2017-10-27 18:16:25 -0400
+-->
+ <para>
+ Fix corner-case crashes when columns have been added to the end of a
+ view (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [f3ea3e3e8] 2017-10-23 13:57:45 -0400
+Branch: REL_10_STABLE [df4aa6e4e] 2017-10-23 13:57:45 -0400
+Branch: REL9_6_STABLE [285b850d5] 2017-10-23 13:57:45 -0400
+Branch: REL9_5_STABLE [aa0518301] 2017-10-23 13:57:45 -0400
+Branch: REL9_4_STABLE [d8a3be52f] 2017-10-23 13:57:45 -0400
+Branch: REL9_3_STABLE [dde99de11] 2017-10-23 13:57:46 -0400
+Branch: REL9_2_STABLE [900a9fd64] 2017-10-23 13:57:46 -0400
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [6784d7a1d] 2017-10-27 12:19:09 -0400
+Branch: REL_10_STABLE [8be102242] 2017-10-27 12:19:11 -0400
+Branch: REL9_6_STABLE [cf0331a54] 2017-10-27 12:18:57 -0400
+Branch: REL9_5_STABLE [37fb01cb0] 2017-10-27 12:18:57 -0400
+Branch: REL9_4_STABLE [376ac922d] 2017-10-27 12:18:57 -0400
+Branch: REL9_3_STABLE [be203c36a] 2017-10-27 12:18:57 -0400
+Branch: REL9_2_STABLE [adcfa7bd1] 2017-10-27 12:18:57 -0400
+-->
+ <para>
+ Record proper dependencies when a view or rule
+ contains <structname>FieldSelect</structname>
+ or <structname>FieldStore</structname> expression nodes (Tom Lane)
+ </para>
+
+ <para>
+ Lack of these dependencies could allow a column or data
+ type <command>DROP</command> to go through when it ought to fail,
+ thereby causing later uses of the view or rule to get errors.
+ This patch does not do anything to protect existing views/rules,
+ only ones created in the future.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [36ea99c84] 2017-10-20 17:12:27 -0400
+Branch: REL_10_STABLE [7a5f8de55] 2017-10-20 17:12:27 -0400
+Branch: REL9_6_STABLE [b1752c3a7] 2017-10-20 17:12:27 -0400
+Branch: REL9_5_STABLE [63fbc51e3] 2017-10-20 17:12:27 -0400
+Branch: REL9_4_STABLE [d1ced6114] 2017-10-20 17:12:27 -0400
+Branch: REL9_3_STABLE [7c70a129e] 2017-10-20 17:12:27 -0400
+Branch: REL9_2_STABLE [0270ad1f7] 2017-10-20 17:12:28 -0400
+-->
+ <para>
+ Correctly detect hashability of range data types (Tom Lane)
+ </para>
+
+ <para>
+ The planner mistakenly assumed that any range type could be hashed
+ for use in hash joins or hash aggregation, but actually it must check
+ whether the range's subtype has hash support. This does not affect any
+ of the built-in range types, since they're all hashable anyway.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
+Branch: master [e9ef11ac8] 2017-10-12 17:23:47 +0200
+Branch: REL_10_STABLE [a01a3d931] 2017-10-12 17:32:48 +0200
+-->
+ <para>
+ Correctly ignore <structname>RelabelType</structname> expression nodes
+ when examining functional-dependency statistics (David Rowley)
+ </para>
+
+ <para>
+ This allows, e.g., extended statistics on <type>varchar</type> columns
+ to be used properly.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [52328727b] 2017-10-11 22:18:10 -0400
+Branch: REL_10_STABLE [604723d29] 2017-10-11 22:18:01 -0400
+Branch: REL9_6_STABLE [96cfc7e19] 2017-10-11 22:18:01 -0400
+-->
+ <para>
+ Prevent sharing transition states between ordered-set aggregates
+ (David Rowley)
+ </para>
+
+ <para>
+ This causes a crash with the built-in ordered-set aggregates, and
+ probably with user-written ones as well. v11 and later will include
+ provisions for dealing with such cases safely, but in released
+ branches, just disable the optimization.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Andres Freund <andres@anarazel.de>
+Branch: master [f67661665] 2017-10-11 14:02:41 -0700
+Branch: REL_10_STABLE [61ace8fe7] 2017-10-11 14:02:41 -0700
+Branch: REL9_6_STABLE [0da46d75e] 2017-10-11 14:02:41 -0700
+-->
+ <para>
+ Prevent <varname>idle_in_transaction_session_timeout</varname> from
+ being ignored when a <varname>statement_timeout</varname> occurred
+ earlier (Lukas Fittl)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [118e99c3d] 2017-10-11 14:28:33 -0400
+Branch: REL_10_STABLE [f4cdf781a] 2017-10-11 14:28:33 -0400
+Branch: REL9_6_STABLE [36c687a22] 2017-10-11 14:28:33 -0400
+Branch: REL9_5_STABLE [69bc245d9] 2017-10-11 14:28:33 -0400
+Branch: REL9_4_STABLE [0e84f7075] 2017-10-11 14:28:33 -0400
+Branch: REL9_3_STABLE [7573d122f] 2017-10-11 14:28:33 -0400
+Branch: REL9_2_STABLE [525b09ada] 2017-10-11 14:28:34 -0400
+-->
+ <para>
+ Fix low-probability loss of <command>NOTIFY</command> messages due to
+ XID wraparound (Marko Tiikkaja, Tom Lane)
+ </para>
+
+ <para>
+ If a session executed no queries, but merely listened for
+ notifications, for more than 2 billion transactions, it started to miss
+ some notifications from concurrently-committing transactions.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [643c27e36] 2017-10-08 15:25:26 -0400
+Branch: REL_10_STABLE [c3723317d] 2017-10-08 15:25:26 -0400
+Branch: REL9_6_STABLE [13a8924ec] 2017-10-08 15:25:26 -0400
+-->
+ <para>
+ Reduce the frequency of data flush requests during bulk file copies to
+ avoid performance problems on macOS, particularly with its new APFS
+ file system (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Noah Misch <noah@leadboat.com>
+Branch: master [bab3a714b] 2017-11-05 09:25:52 -0800
+Branch: REL_10_STABLE [2168f37c4] 2017-11-05 09:25:59 -0800
+Branch: REL9_6_STABLE [1cac62dac] 2017-11-05 09:26:28 -0800
+Branch: REL9_5_STABLE [7932891ab] 2017-11-05 09:26:43 -0800
+Branch: REL9_4_STABLE [2a2e2e85e] 2017-11-05 09:26:47 -0800
+-->
+ <para>
+ Allow <command>COPY</command>'s <literal>FREEZE</literal> option to
+ work when the transaction isolation level is <literal>REPEATABLE
+ READ</literal> or higher (Noah Misch)
+ </para>
+
+ <para>
+ This case was unintentionally broken by a previous bug fix.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [305cf1fd7] 2017-10-12 15:20:16 -0400
+Branch: REL_10_STABLE [d48bf6a94] 2017-10-12 15:20:04 -0400
+Branch: REL9_6_STABLE [aa1e9b3a4] 2017-10-12 15:20:04 -0400
+-->
+ <para>
+ Fix <function>AggGetAggref()</function> to return the
+ correct <structname>Aggref</structname> nodes to aggregate final
+ functions whose transition calculations have been merged (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [080351466] 2017-10-31 13:40:23 -0400
+Branch: REL_10_STABLE [9cf2b854a] 2017-10-31 13:40:23 -0400
+Author: Noah Misch <noah@leadboat.com>
+Branch: master [51f4d3ed7] 2017-11-01 19:16:14 -0700
+Branch: REL_10_STABLE [f4e13963c] 2017-11-01 19:16:17 -0700
+-->
+ <para>
+ Fix insufficient schema-qualification in some new queries
+ in <application>pg_dump</application>
+ and <application>psql</application>
+ (Vitaly Burovoy, Tom Lane, Noah Misch)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [471d55859] 2017-10-22 16:45:16 -0400
+Branch: REL_10_STABLE [852e3224e] 2017-10-22 16:45:26 -0400
+-->
+ <para>
+ Avoid use of <literal>@></literal> operator
+ in <application>psql</application>'s queries for <command>\d</command>
+ (Tom Lane)
+ </para>
+
+ <para>
+ This prevents problems when the <application>parray_gin</application>
+ extension is installed, since that defines a conflicting operator.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Peter Eisentraut <peter_e@gmx.net>
+Branch: master [067a2259f] 2017-11-01 10:20:05 -0400
+Branch: REL_10_STABLE [dd12b5307] 2017-11-01 21:41:45 -0400
+Branch: REL9_6_STABLE [4ba0ffaae] 2017-11-01 21:44:55 -0400
+Branch: REL9_5_STABLE [3064f0e25] 2017-11-01 21:45:11 -0400
+-->
+ <para>
+ Fix <application>pg_basebackup</application>'s matching of tablespace
+ paths to canonicalize both paths before comparing (Michael Paquier)
+ </para>
+
+ <para>
+ This is particularly helpful on Windows.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [db6986f47] 2017-10-25 19:32:24 -0400
+Branch: REL_10_STABLE [51e9fffba] 2017-10-25 19:32:24 -0400
+Branch: REL9_6_STABLE [7dc66a2f6] 2017-10-25 19:32:24 -0400
+Branch: REL9_5_STABLE [ee02c1c89] 2017-10-25 19:32:24 -0400
+Branch: REL9_4_STABLE [9f7afb25b] 2017-10-25 19:32:24 -0400
+Branch: REL9_3_STABLE [6dd7a1207] 2017-10-25 19:32:24 -0400
+Branch: REL9_2_STABLE [caeae886e] 2017-10-25 19:32:25 -0400
+-->
+ <para>
+ Fix <application>libpq</application> to not require user's home
+ directory to exist (Tom Lane)
+ </para>
+
+ <para>
+ In v10, failure to find the home directory while trying to
+ read <filename>~/.pgpass</filename> was treated as a hard error,
+ but it should just cause that file to not be found. Both v10 and
+ previous release branches made the same mistake when
+ reading <filename>~/.pg_service.conf</filename>, though this was less
+ obvious since that file is not sought unless a service name is
+ specified.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Michael Meskes <meskes@postgresql.org>
+Branch: master [0af98a95c] 2017-10-26 10:16:04 +0200
+Branch: REL_10_STABLE [65ba1b5c2] 2017-10-26 10:39:37 +0200
+Branch: REL9_6_STABLE [41753604b] 2017-10-26 10:39:46 +0200
+Branch: REL9_5_STABLE [9b01a21fc] 2017-10-26 10:39:54 +0200
+Branch: REL9_4_STABLE [c6a396888] 2017-10-26 10:40:03 +0200
+-->
+ <para>
+ In ecpglib, correctly handle backslashes in string literals depending
+ on whether <varname>standard_conforming_strings</varname> is set
+ (Tsunakawa Takayuki)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Michael Meskes <meskes@postgresql.org>
+Branch: master [63d6b97fd] 2017-11-01 13:32:18 +0100
+Branch: REL_10_STABLE [e4381c039] 2017-11-01 13:40:27 +0100
+Branch: REL9_6_STABLE [e0ec1cbff] 2017-11-01 13:40:50 +0100
+Branch: REL9_5_STABLE [d2e6bd13a] 2017-11-01 13:41:00 +0100
+Branch: REL9_4_STABLE [18647e21d] 2017-11-01 13:41:12 +0100
+Branch: REL9_3_STABLE [d64a4d368] 2017-11-01 13:41:21 +0100
+Author: Michael Meskes <meskes@postgresql.org>
+Branch: master [6976a4f05] 2017-11-02 20:49:47 +0100
+Branch: REL_10_STABLE [ee46980a7] 2017-11-02 20:51:00 +0100
+Branch: REL9_6_STABLE [049dab009] 2017-11-02 20:51:13 +0100
+Branch: REL9_5_STABLE [b6d95939e] 2017-11-02 20:51:23 +0100
+Branch: REL9_4_STABLE [ad24e7bc2] 2017-11-02 20:51:34 +0100
+Branch: REL9_3_STABLE [7a35507ac] 2017-11-02 20:51:44 +0100
+Author: Michael Meskes <meskes@postgresql.org>
+Branch: master [7164991ca] 2017-11-03 11:15:14 +0100
+Branch: REL_10_STABLE [c63568b06] 2017-11-03 12:41:39 +0100
+Branch: REL9_6_STABLE [6cf68e223] 2017-11-03 12:41:23 +0100
+Branch: REL9_5_STABLE [90d61bd1d] 2017-11-03 12:41:11 +0100
+Branch: REL9_4_STABLE [946f16518] 2017-11-03 12:40:54 +0100
+Branch: REL9_3_STABLE [deb429b51] 2017-11-03 12:40:42 +0100
+-->
+ <para>
+ Make ecpglib's Informix-compatibility mode ignore fractional digits in
+ integer input strings, as expected (Gao Zengqi, Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [8df4ce1ea] 2017-10-23 18:15:36 -0400
+Branch: REL_10_STABLE [0cde56247] 2017-10-23 18:15:42 -0400
+Branch: REL9_6_STABLE [fae550e52] 2017-10-23 18:15:47 -0400
+Branch: REL9_5_STABLE [1e57d85cd] 2017-10-23 18:15:51 -0400
+Branch: REL9_4_STABLE [ba67fac85] 2017-10-23 18:15:56 -0400
+Branch: REL9_3_STABLE [da82bb1d8] 2017-10-23 18:16:00 -0400
+Branch: REL9_2_STABLE [7e8d84c36] 2017-10-23 18:16:04 -0400
+-->
+ <para>
+ Update time zone data files to <application>tzdata</application>
+ release 2017c for DST law changes in Fiji, Namibia, Northern Cyprus,
+ Sudan, Tonga, and Turks & Caicos Islands, plus historical
+ corrections for Alaska, Apia, Burma, Calcutta, Detroit, Ireland,
+ Namibia, and Pago Pago.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Peter Eisentraut <peter_e@gmx.net>
+Branch: master [49df45acd] 2017-11-03 14:14:02 -0400
+Branch: REL_10_STABLE [5159626af] 2017-11-03 14:14:16 -0400
+-->
+ <para>
+ In the documentation, restore HTML anchors to being upper-case strings
+ (Peter Eisentraut)
+ </para>
+
+ <para>
+ Due to a toolchain change, the 10.0 user manual had lower-case strings
+ for intrapage anchors, thus breaking some external links into our
+ website documentation. Return to our previous convention of using
+ upper-case strings.
+ </para>
+ </listitem>
+
+ </itemizedlist>
+
+ </sect2>
+ </sect1>
+
<sect1 id="release-10">
<title>Release 10</title>
</para>
<para>
- A new <link linkend="SQL-CREATEINDEX"><command>CREATE
+ A new <link linkend="sql-createindex"><command>CREATE
INDEX</command></link> option enables auto-summarization of the
previous <acronym>BRIN</acronym> page range when a new page
range is created.
<para>
New commands are <link
- linkend="SQL-CREATESTATISTICS"><command>CREATE STATISTICS</command></link>,
- <link linkend="SQL-ALTERSTATISTICS"><command>ALTER STATISTICS</command></link>, and
- <link linkend="SQL-DROPSTATISTICS"><command>DROP STATISTICS</command></link>.
+ linkend="sql-createstatistics"><command>CREATE STATISTICS</command></link>,
+ <link linkend="sql-alterstatistics"><command>ALTER STATISTICS</command></link>, and
+ <link linkend="sql-dropstatistics"><command>DROP STATISTICS</command></link>.
This feature is helpful in estimating query memory usage and when
combining the statistics from individual columns.
</para>
-->
<para>
Allow explicit control
- over <link linkend="SQL-EXPLAIN"><command>EXPLAIN</command></link>'s display
+ over <link linkend="sql-explain"><command>EXPLAIN</command></link>'s display
of planning and execution time (Ashutosh Bapat)
</para>
-->
<para>
Properly update the statistics collector during <link
- linkend="SQL-REFRESHMATERIALIZEDVIEW"><command>REFRESH MATERIALIZED
+ linkend="sql-refreshmaterializedview"><command>REFRESH MATERIALIZED
VIEW</command></link> (Jim Mlodgenski)
</para>
</listitem>
2016-12-07 [f0e44751d] Implement table partitioning.
-->
<para>
- Add table <link linkend="SQL-CREATETABLE-PARTITION">partitioning
+ Add table <link linkend="sql-createtable-partition">partitioning
syntax</link> that automatically creates partition constraints and
handles routing of tuple insertions and updates (Amit Langote)
</para>
2017-03-31 [597027163] Add transition table support to plpgsql.
-->
<para>
- Add <link linkend="SQL-CREATETRIGGER"><literal>AFTER</literal> trigger</link>
+ Add <link linkend="sql-createtrigger"><literal>AFTER</literal> trigger</link>
transition tables to record changed rows (Kevin Grittner, Thomas
Munro)
</para>
2016-12-05 [093129c9d] Add support for restrictive RLS policies
-->
<para>
- Allow <link linkend="SQL-CREATEPOLICY">restrictive row-level
+ Allow <link linkend="sql-createpolicy">restrictive row-level
security policies</link> (Stephen Frost)
</para>
2017-03-28 [ab89e465c] Altering default privileges on schemas
-->
<para>
- Allow <link linkend="SQL-ALTERDEFAULTPRIVILEGES">default
+ Allow <link linkend="sql-alterdefaultprivileges">default
permissions</link> on schemas (Matheus Oliveira)
</para>
2017-02-10 [2ea5b06c7] Add CREATE SEQUENCE AS <data type> clause
-->
<para>
- Add <link linkend="SQL-CREATESEQUENCE"><command>CREATE SEQUENCE
+ Add <link linkend="sql-createsequence"><command>CREATE SEQUENCE
AS</command></link> command to create a sequence matching an integer data type
(Peter Eisentraut)
</para>
</para>
<para>
- For example, allow <link linkend="SQL-DROPFUNCTION"><command>DROP
+ For example, allow <link linkend="sql-dropfunction"><command>DROP
FUNCTION</command></link> on a function name without arguments if there
is only one function with that name. This behavior is required by the
<acronym>SQL</acronym> standard.
-->
<para>
Support <literal>IF NOT EXISTS</literal>
- in <link linkend="SQL-CREATESERVER"><command>CREATE SERVER</command></link>,
- <link linkend="SQL-CREATEUSERMAPPING"><command>CREATE USER MAPPING</command></link>,
- and <link linkend="SQL-CREATECOLLATION"><command>CREATE COLLATION</command></link>
+ in <link linkend="sql-createserver"><command>CREATE SERVER</command></link>,
+ <link linkend="sql-createusermapping"><command>CREATE USER MAPPING</command></link>,
+ and <link linkend="sql-createcollation"><command>CREATE COLLATION</command></link>
(Anastasia Lubennikova, Peter Eisentraut)
</para>
</listitem>
2017-03-03 [9eb344faf] Allow vacuums to report oldestxmin
-->
<para>
- Make <link linkend="SQL-VACUUM"><command>VACUUM VERBOSE</command></link> report
+ Make <link linkend="sql-vacuum"><command>VACUUM VERBOSE</command></link> report
the number of skipped frozen pages and oldest xmin (Masahiko
Sawada, Simon Riggs)
</para>
2017-04-06 [321732705] Identity columns
-->
<para>
- Add <link linkend="SQL-CREATETABLE">identity columns</link> for
+ Add <link linkend="sql-createtable">identity columns</link> for
assigning a numeric value to columns on insert (Peter Eisentraut)
</para>
</para>
<para>
- This uses the syntax <link linkend="SQL-ALTERTYPE"><command>ALTER
+ This uses the syntax <link linkend="sql-altertype"><command>ALTER
TYPE ... RENAME VALUE</command></link>.
</para>
</listitem>
<title>Client Applications</title>
<sect4>
- <title><xref linkend="APP-PSQL"></title>
+ <title><xref linkend="app-psql"></title>
<itemizedlist>
2016-10-19 [5d58c07a4] initdb pg_basebackup: Rename -\-noxxx options to -\-no-x
-->
<para>
- Rename <link linkend="APP-INITDB"><application>initdb</application></link>
+ Rename <link linkend="app-initdb"><application>initdb</application></link>
options <option>--noclean</option> and <option>--nosync</option> to be spelled
<option>--no-clean</option> and <option>--no-sync</option> (Vik Fearing,
Peter Eisentraut)
</itemizedlist>
<sect4>
- <title><link linkend="APP-PGDUMP"><application>pg_dump</application></link>,
- <link linkend="APP-PG-DUMPALL"><application>pg_dumpall</application></link>,
- <link linkend="APP-PGRESTORE"><application>pg_restore</application></link></title>
+ <title><link linkend="app-pgdump"><application>pg_dump</application></link>,
+ <link linkend="app-pg-dumpall"><application>pg_dumpall</application></link>,
+ <link linkend="app-pgrestore"><application>pg_restore</application></link></title>
<itemizedlist>
<!-- doc/src/sgml/release-9.2.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+ <sect1 id="release-9-2-24">
+ <title>Release 9.2.24</title>
+
+ <formalpara>
+ <title>Release date:</title>
+ <para>2017-11-09</para>
+ </formalpara>
+
+ <para>
+ This release contains a variety of fixes from 9.2.23.
+ For information about new features in the 9.2 major release, see
+ <xref linkend="release-9-2">.
+ </para>
+
+ <para>
+ This is expected to be the last <productname>PostgreSQL</productname>
+ release in the 9.2.X series. Users are encouraged to update to a newer
+ release branch soon.
+ </para>
+
+ <sect2>
+ <title>Migration to Version 9.2.24</title>
+
+ <para>
+ A dump/restore is not required for those running 9.2.X.
+ </para>
+
+ <para>
+ However, if you are upgrading from a version earlier than 9.2.22,
+ see <xref linkend="release-9-2-22">.
+ </para>
+
+ </sect2>
+
+ <sect2>
+ <title>Changes</title>
+
+ <itemizedlist>
+
+ <listitem>
+ <para>
+ Properly reject attempts to convert infinite float values to
+ type <type>numeric</type> (Tom Lane, KaiGai Kohei)
+ </para>
+
+ <para>
+ Previously the behavior was platform-dependent.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix corner-case crashes when columns have been added to the end of a
+ view (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Record proper dependencies when a view or rule
+ contains <structname>FieldSelect</structname>
+ or <structname>FieldStore</structname> expression nodes (Tom Lane)
+ </para>
+
+ <para>
+ Lack of these dependencies could allow a column or data
+ type <command>DROP</command> to go through when it ought to fail,
+ thereby causing later uses of the view or rule to get errors.
+ This patch does not do anything to protect existing views/rules,
+ only ones created in the future.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly detect hashability of range data types (Tom Lane)
+ </para>
+
+ <para>
+ The planner mistakenly assumed that any range type could be hashed
+ for use in hash joins or hash aggregation, but actually it must check
+ whether the range's subtype has hash support. This does not affect any
+ of the built-in range types, since they're all hashable anyway.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix low-probability loss of <command>NOTIFY</command> messages due to
+ XID wraparound (Marko Tiikkaja, Tom Lane)
+ </para>
+
+ <para>
+ If a session executed no queries, but merely listened for
+ notifications, for more than 2 billion transactions, it started to miss
+ some notifications from concurrently-committing transactions.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Prevent low-probability crash in processing of nested trigger firings
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly restore the umask setting when file creation fails
+ in <command>COPY</command> or <function>lo_export()</function>
+ (Peter Eisentraut)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Give a better error message for duplicate column names
+ in <command>ANALYZE</command> (Nathan Bossart)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to not require user's home
+ directory to exist (Tom Lane)
+ </para>
+
+ <para>
+ In v10, failure to find the home directory while trying to
+ read <filename>~/.pgpass</filename> was treated as a hard error,
+ but it should just cause that file to not be found. Both v10 and
+ previous release branches made the same mistake when
+ reading <filename>~/.pg_service.conf</filename>, though this was less
+ obvious since that file is not sought unless a service name is
+ specified.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to guard against integer
+ overflow in the row count of a <structname>PGresult</structname>
+ (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Sync our copy of the timezone library with IANA release tzcode2017c
+ (Tom Lane)
+ </para>
+
+ <para>
+ This fixes various issues; the only one likely to be user-visible
+ is that the default DST rules for a POSIX-style zone name, if
+ no <filename>posixrules</filename> file exists in the timezone data
+ directory, now match current US law rather than what it was a dozen
+ years ago.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Update time zone data files to <application>tzdata</application>
+ release 2017c for DST law changes in Fiji, Namibia, Northern Cyprus,
+ Sudan, Tonga, and Turks & Caicos Islands, plus historical
+ corrections for Alaska, Apia, Burma, Calcutta, Detroit, Ireland,
+ Namibia, and Pago Pago.
+ </para>
+ </listitem>
+
+ </itemizedlist>
+
+ </sect2>
+ </sect1>
+
<sect1 id="release-9-2-23">
<title>Release 9.2.23</title>
</para>
<para>
- The <productname>PostgreSQL</> community will stop releasing updates
+ The <productname>PostgreSQL</productname> community will stop releasing updates
for the 9.2.X release series in September 2017.
Users are encouraged to update to a newer release branch soon.
</para>
<listitem>
<para>
Show foreign tables
- in <structname>information_schema</>.<structname>table_privileges</>
+ in <structname>information_schema</structname>.<structname>table_privileges</structname>
view (Peter Eisentraut)
</para>
<para>
- All other relevant <structname>information_schema</> views include
+ All other relevant <structname>information_schema</structname> views include
foreign tables, but this one ignored them.
</para>
<para>
- Since this view definition is installed by <application>initdb</>,
+ Since this view definition is installed by <application>initdb</application>,
merely upgrading will not fix the problem. If you need to fix this
in an existing installation, you can, as a superuser, do this
- in <application>psql</>:
+ in <application>psql</application>:
<programlisting>
SET search_path TO information_schema;
CREATE OR REPLACE VIEW table_privileges AS
OR grantee.rolname = 'PUBLIC');
</programlisting>
This must be repeated in each database to be fixed,
- including <literal>template0</>.
+ including <literal>template0</literal>.
</para>
</listitem>
<listitem>
<para>
Clean up handling of a fatal exit (e.g., due to receipt
- of <systemitem>SIGTERM</>) that occurs while trying to execute
- a <command>ROLLBACK</> of a failed transaction (Tom Lane)
+ of <systemitem>SIGTERM</systemitem>) that occurs while trying to execute
+ a <command>ROLLBACK</command> of a failed transaction (Tom Lane)
</para>
<para>
This situation could result in an assertion failure. In production
builds, the exit would still occur, but it would log an unexpected
- message about <quote>cannot drop active portal</>.
+ message about <quote>cannot drop active portal</quote>.
</para>
</listitem>
</para>
<para>
- Certain <command>ALTER</> commands that change the definition of a
+ Certain <command>ALTER</command> commands that change the definition of a
composite type or domain type are supposed to fail if there are any
stored values of that type in the database, because they lack the
infrastructure needed to update or check such values. Previously,
<listitem>
<para>
- Change <application>ecpg</>'s parser to allow <literal>RETURNING</>
+ Change <application>ecpg</application>'s parser to allow <literal>RETURNING</literal>
clauses without attached C variables (Michael Meskes)
</para>
<para>
- This allows <application>ecpg</> programs to contain SQL constructs
- that use <literal>RETURNING</> internally (for example, inside a CTE)
+ This allows <application>ecpg</application> programs to contain SQL constructs
+ that use <literal>RETURNING</literal> internally (for example, inside a CTE)
rather than using it to define values to be returned to the client.
</para>
</listitem>
<para>
This fix avoids possible crashes of PL/Perl due to inconsistent
- assumptions about the width of <type>time_t</> values.
+ assumptions about the width of <type>time_t</type> values.
A side-effect that may be visible to extension developers is
- that <literal>_USE_32BIT_TIME_T</> is no longer defined globally
- in <productname>PostgreSQL</> Windows builds. This is not expected
- to cause problems, because type <type>time_t</> is not used
- in any <productname>PostgreSQL</> API definitions.
+ that <literal>_USE_32BIT_TIME_T</literal> is no longer defined globally
+ in <productname>PostgreSQL</productname> Windows builds. This is not expected
+ to cause problems, because type <type>time_t</type> is not used
+ in any <productname>PostgreSQL</productname> API definitions.
</para>
</listitem>
</para>
<para>
- The <productname>PostgreSQL</> community will stop releasing updates
+ The <productname>PostgreSQL</productname> community will stop releasing updates
for the 9.2.X release series in September 2017.
Users are encouraged to update to a newer release branch soon.
</para>
<listitem>
<para>
Further restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Noah Misch)
</para>
<para>
The fix for CVE-2017-7486 was incorrect: it allowed a user
to see the options in her own user mapping, even if she did not
- have <literal>USAGE</> permission on the associated foreign server.
+ have <literal>USAGE</literal> permission on the associated foreign server.
Such options might include a password that had been provided by the
server owner rather than the user herself.
- Since <structname>information_schema.user_mapping_options</> does not
- show the options in such cases, <structname>pg_user_mappings</>
+ Since <structname>information_schema.user_mapping_options</structname> does not
+ show the options in such cases, <structname>pg_user_mappings</structname>
should not either.
(CVE-2017-7547)
</para>
<step>
<para>
Restart the postmaster after adding <literal>allow_system_table_mods
- = true</> to <filename>postgresql.conf</>. (In versions
- supporting <command>ALTER SYSTEM</>, you can use that to make the
+ = true</literal> to <filename>postgresql.conf</filename>. (In versions
+ supporting <command>ALTER SYSTEM</command>, you can use that to make the
configuration change, but you'll still need a restart.)
</para>
</step>
<step>
<para>
- In <emphasis>each</> database of the cluster,
+ In <emphasis>each</emphasis> database of the cluster,
run the following commands as superuser:
<programlisting>
SET search_path = pg_catalog;
<step>
<para>
- Do not forget to include the <literal>template0</>
- and <literal>template1</> databases, or the vulnerability will still
- exist in databases you create later. To fix <literal>template0</>,
+ Do not forget to include the <literal>template0</literal>
+ and <literal>template1</literal> databases, or the vulnerability will still
+ exist in databases you create later. To fix <literal>template0</literal>,
you'll need to temporarily make it accept connections.
- In <productname>PostgreSQL</> 9.5 and later, you can use
+ In <productname>PostgreSQL</productname> 9.5 and later, you can use
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS true;
</programlisting>
- and then after fixing <literal>template0</>, undo that with
+ and then after fixing <literal>template0</literal>, undo that with
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS false;
</programlisting>
<step>
<para>
- Finally, remove the <literal>allow_system_table_mods</> configuration
+ Finally, remove the <literal>allow_system_table_mods</literal> configuration
setting, and again restart the postmaster.
</para>
</step>
</para>
<para>
- <application>libpq</> ignores empty password specifications, and does
+ <application>libpq</application> ignores empty password specifications, and does
not transmit them to the server. So, if a user's password has been
set to the empty string, it's impossible to log in with that password
- via <application>psql</> or other <application>libpq</>-based
+ via <application>psql</application> or other <application>libpq</application>-based
clients. An administrator might therefore believe that setting the
password to empty is equivalent to disabling password login.
- However, with a modified or non-<application>libpq</>-based client,
+ However, with a modified or non-<application>libpq</application>-based client,
logging in could be possible, depending on which authentication
method is configured. In particular the most common
- method, <literal>md5</>, accepted empty passwords.
+ method, <literal>md5</literal>, accepted empty passwords.
Change the server to reject empty passwords in all cases.
(CVE-2017-7546)
</para>
<listitem>
<para>
Fix possible creation of an invalid WAL segment when a standby is
- promoted just after it processes an <literal>XLOG_SWITCH</> WAL
+ promoted just after it processes an <literal>XLOG_SWITCH</literal> WAL
record (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix <systemitem>SIGHUP</> and <systemitem>SIGUSR1</> handling in
+ Fix <systemitem>SIGHUP</systemitem> and <systemitem>SIGUSR1</systemitem> handling in
walsender processes (Petr Jelinek, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix unnecessarily slow restarts of <application>walreceiver</>
+ Fix unnecessarily slow restarts of <application>walreceiver</application>
processes due to race condition in postmaster (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix cases where an <command>INSERT</> or <command>UPDATE</> assigns
+ Fix cases where an <command>INSERT</command> or <command>UPDATE</command> assigns
to more than one element of a column that is of domain-over-array
type (Tom Lane)
</para>
<listitem>
<para>
Move autogenerated array types out of the way during
- <command>ALTER ... RENAME</> (Vik Fearing)
+ <command>ALTER ... RENAME</command> (Vik Fearing)
</para>
<para>
Previously, we would rename a conflicting autogenerated array type
- out of the way during <command>CREATE</>; this fix extends that
+ out of the way during <command>CREATE</command>; this fix extends that
behavior to renaming operations.
</para>
</listitem>
<listitem>
<para>
- Ensure that <command>ALTER USER ... SET</> accepts all the syntax
- variants that <command>ALTER ROLE ... SET</> does (Peter Eisentraut)
+ Ensure that <command>ALTER USER ... SET</command> accepts all the syntax
+ variants that <command>ALTER ROLE ... SET</command> does (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Properly update dependency info when changing a datatype I/O
- function's argument or return type from <type>opaque</> to the
+ function's argument or return type from <type>opaque</type> to the
correct type (Heikki Linnakangas)
</para>
<para>
- <command>CREATE TYPE</> updates I/O functions declared in this
+ <command>CREATE TYPE</command> updates I/O functions declared in this
long-obsolete style, but it forgot to record a dependency on the
- type, allowing a subsequent <command>DROP TYPE</> to leave broken
+ type, allowing a subsequent <command>DROP TYPE</command> to leave broken
function definitions behind.
</para>
</listitem>
<listitem>
<para>
- Reduce memory usage when <command>ANALYZE</> processes
- a <type>tsvector</> column (Heikki Linnakangas)
+ Reduce memory usage when <command>ANALYZE</command> processes
+ a <type>tsvector</type> column (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix unnecessary precision loss and sloppy rounding when multiplying
- or dividing <type>money</> values by integers or floats (Tom Lane)
+ or dividing <type>money</type> values by integers or floats (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Tighten checks for whitespace in functions that parse identifiers,
- such as <function>regprocedurein()</> (Tom Lane)
+ such as <function>regprocedurein()</function> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Use relevant <literal>#define</> symbols from Perl while
- compiling <application>PL/Perl</> (Ashutosh Sharma, Tom Lane)
+ Use relevant <literal>#define</literal> symbols from Perl while
+ compiling <application>PL/Perl</application> (Ashutosh Sharma, Tom Lane)
</para>
<para>
This avoids portability problems, typically manifesting as
- a <quote>handshake</> mismatch during library load, when working with
+ a <quote>handshake</quote> mismatch during library load, when working with
recent Perl versions.
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, fix failure when <command>COPY FROM STDIN</>
+ In <application>psql</application>, fix failure when <command>COPY FROM STDIN</command>
is ended with a keyboard EOF signal and then another <command>COPY
- FROM STDIN</> is attempted (Thomas Munro)
+ FROM STDIN</command> is attempted (Thomas Munro)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_dump</> to not emit invalid SQL for an empty
+ Fix <application>pg_dump</application> to not emit invalid SQL for an empty
operator class (Daniel Gustafsson)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> output to stdout on Windows (Kuntal Ghosh)
+ Fix <application>pg_dump</application> output to stdout on Windows (Kuntal Ghosh)
</para>
<para>
<listitem>
<para>
- Fix <function>pg_get_ruledef()</> to print correct output for
- the <literal>ON SELECT</> rule of a view whose columns have been
+ Fix <function>pg_get_ruledef()</function> to print correct output for
+ the <literal>ON SELECT</literal> rule of a view whose columns have been
renamed (Tom Lane)
</para>
<para>
- In some corner cases, <application>pg_dump</> relies
- on <function>pg_get_ruledef()</> to dump views, so that this error
+ In some corner cases, <application>pg_dump</application> relies
+ on <function>pg_get_ruledef()</function> to dump views, so that this error
could result in dump/reload failures.
</para>
</listitem>
<listitem>
<para>
- Fix dumping of function expressions in the <literal>FROM</> clause in
+ Fix dumping of function expressions in the <literal>FROM</literal> clause in
cases where the expression does not deparse into something that looks
like a function call (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_basebackup</> output to stdout on Windows
+ Fix <application>pg_basebackup</application> output to stdout on Windows
(Haribabu Kommi)
</para>
<listitem>
<para>
- Fix <application>pg_upgrade</> to ensure that the ending WAL record
- does not have <xref linkend="guc-wal-level"> = <literal>minimum</>
+ Fix <application>pg_upgrade</application> to ensure that the ending WAL record
+ does not have <xref linkend="guc-wal-level"> = <literal>minimum</literal>
(Bruce Momjian)
</para>
<listitem>
<para>
- Always use <option>-fPIC</>, not <option>-fpic</>, when building
+ Always use <option>-fPIC</option>, not <option>-fpic</option>, when building
shared libraries with gcc (Tom Lane)
</para>
<listitem>
<para>
- In MSVC builds, handle the case where the <application>openssl</>
- library is not within a <filename>VC</> subdirectory (Andrew Dunstan)
+ In MSVC builds, handle the case where the <application>openssl</application>
+ library is not within a <filename>VC</filename> subdirectory (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- In MSVC builds, add proper include path for <application>libxml2</>
+ In MSVC builds, add proper include path for <application>libxml2</application>
header files (Andrew Dunstan)
</para>
<para>
This fixes a former need to move things around in standard Windows
- installations of <application>libxml2</>.
+ installations of <application>libxml2</application>.
</para>
</listitem>
<listitem>
<para>
In MSVC builds, recognize a Tcl library that is
- named <filename>tcl86.lib</> (Noah Misch)
+ named <filename>tcl86.lib</filename> (Noah Misch)
</para>
</listitem>
</para>
<para>
- The <productname>PostgreSQL</> community will stop releasing updates
+ The <productname>PostgreSQL</productname> community will stop releasing updates
for the 9.2.X release series in September 2017.
Users are encouraged to update to a newer release branch soon.
</para>
<listitem>
<para>
Restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Michael Paquier, Feike Steenbergen)
</para>
<para>
The previous coding allowed the owner of a foreign server object,
- or anyone he has granted server <literal>USAGE</> permission to,
+ or anyone he has granted server <literal>USAGE</literal> permission to,
to see the options for all user mappings associated with that server.
This might well include passwords for other users.
Adjust the view definition to match the behavior of
- <structname>information_schema.user_mapping_options</>, namely that
+ <structname>information_schema.user_mapping_options</structname>, namely that
these options are visible to the user being mapped, or if the mapping
is for <literal>PUBLIC</literal> and the current user is the server
owner, or if the current user is a superuser.
<para>
Some selectivity estimation functions in the planner will apply
user-defined operators to values obtained
- from <structname>pg_statistic</>, such as most common values and
+ from <structname>pg_statistic</structname>, such as most common values and
histogram entries. This occurs before table permissions are checked,
so a nefarious user could exploit the behavior to obtain these values
for table columns he does not have permission to read. To fix,
<listitem>
<para>
- Fix possible corruption of <quote>init forks</> of unlogged indexes
+ Fix possible corruption of <quote>init forks</quote> of unlogged indexes
(Robert Haas, Michael Paquier)
</para>
<listitem>
<para>
- Fix incorrect reconstruction of <structname>pg_subtrans</> entries
+ Fix incorrect reconstruction of <structname>pg_subtrans</structname> entries
when a standby server replays a prepared but uncommitted two-phase
transaction (Tom Lane)
</para>
<para>
In most cases this turned out to have no visible ill effects, but in
corner cases it could result in circular references
- in <structname>pg_subtrans</>, potentially causing infinite loops
+ in <structname>pg_subtrans</structname>, potentially causing infinite loops
in queries that examine rows modified by the two-phase transaction.
</para>
</listitem>
Due to lack of a cache flush step between commands in an extension
script file, non-utility queries might not see the effects of an
immediately preceding catalog change, such as <command>ALTER TABLE
- ... RENAME</>.
+ ... RENAME</command>.
</para>
</listitem>
<listitem>
<para>
Skip tablespace privilege checks when <command>ALTER TABLE ... ALTER
- COLUMN TYPE</> rebuilds an existing index (Noah Misch)
+ COLUMN TYPE</command> rebuilds an existing index (Noah Misch)
</para>
<para>
The command failed if the calling user did not currently have
- <literal>CREATE</> privilege for the tablespace containing the index.
+ <literal>CREATE</literal> privilege for the tablespace containing the index.
That behavior seems unhelpful, so skip the check, allowing the
index to be rebuilt where it is.
</para>
<listitem>
<para>
- Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</> to not recurse
- to child tables when the constraint is marked <literal>NO INHERIT</>
+ Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</command> to not recurse
+ to child tables when the constraint is marked <literal>NO INHERIT</literal>
(Amit Langote)
</para>
<para>
- This fix prevents unwanted <quote>constraint does not exist</> failures
+ This fix prevents unwanted <quote>constraint does not exist</quote> failures
when no matching constraint is present in the child tables.
</para>
</listitem>
<listitem>
<para>
- Fix <command>VACUUM</> to account properly for pages that could not
+ Fix <command>VACUUM</command> to account properly for pages that could not
be scanned due to conflicting page pins (Andrew Gierth)
</para>
<para>
This tended to lead to underestimation of the number of tuples in
the table. In the worst case of a small heavily-contended
- table, <command>VACUUM</> could incorrectly report that the table
+ table, <command>VACUUM</command> could incorrectly report that the table
contained no tuples, leading to very bad planning choices.
</para>
</listitem>
<listitem>
<para>
- Fix <function>cursor_to_xml()</> to produce valid output
- with <replaceable>tableforest</> = false
+ Fix <function>cursor_to_xml()</function> to produce valid output
+ with <replaceable>tableforest</replaceable> = false
(Thomas Munro, Peter Eisentraut)
</para>
<para>
- Previously it failed to produce a wrapping <literal><table></>
+ Previously it failed to produce a wrapping <literal><table></literal>
element.
</para>
</listitem>
<listitem>
<para>
- Improve performance of <structname>pg_timezone_names</> view
+ Improve performance of <structname>pg_timezone_names</structname> view
(Tom Lane, David Rowley)
</para>
</listitem>
<listitem>
<para>
- Fix sloppy handling of corner-case errors from <function>lseek()</>
- and <function>close()</> (Tom Lane)
+ Fix sloppy handling of corner-case errors from <function>lseek()</function>
+ and <function>close()</function> (Tom Lane)
</para>
<para>
Neither of these system calls are likely to fail in typical situations,
- but if they did, <filename>fd.c</> could get quite confused.
+ but if they did, <filename>fd.c</filename> could get quite confused.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</> to support <command>COMMIT PREPARED</>
- and <command>ROLLBACK PREPARED</> (Masahiko Sawada)
+ Fix <application>ecpg</application> to support <command>COMMIT PREPARED</command>
+ and <command>ROLLBACK PREPARED</command> (Masahiko Sawada)
</para>
</listitem>
<listitem>
<para>
Fix a double-free error when processing dollar-quoted string literals
- in <application>ecpg</> (Michael Meskes)
+ in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, fix incorrect schema and owner marking for
+ In <application>pg_dump</application>, fix incorrect schema and owner marking for
comments and security labels of some types of database objects
(Giuseppe Broccolo, Tom Lane)
</para>
<listitem>
<para>
- Avoid emitting an invalid list file in <literal>pg_restore -l</>
+ Avoid emitting an invalid list file in <literal>pg_restore -l</literal>
when SQL object names contain newlines (Tom Lane)
</para>
<para>
Replace newlines by spaces, which is sufficient to make the output
- valid for <literal>pg_restore -L</>'s purposes.
+ valid for <literal>pg_restore -L</literal>'s purposes.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to transfer comments and security labels
- attached to <quote>large objects</> (blobs) (Stephen Frost)
+ Fix <application>pg_upgrade</application> to transfer comments and security labels
+ attached to <quote>large objects</quote> (blobs) (Stephen Frost)
</para>
<para>
<listitem>
<para>
Improve error handling
- in <filename>contrib/adminpack</>'s <function>pg_file_write()</>
+ in <filename>contrib/adminpack</filename>'s <function>pg_file_write()</function>
function (Noah Misch)
</para>
<para>
Notably, it failed to detect errors reported
- by <function>fclose()</>.
+ by <function>fclose()</function>.
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/dblink</>, avoid leaking the previous unnamed
+ In <filename>contrib/dblink</filename>, avoid leaking the previous unnamed
connection when establishing a new unnamed connection (Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2017b
+ Update time zone data files to <application>tzdata</application> release 2017b
for DST law changes in Chile, Haiti, and Mongolia, plus historical
corrections for Ecuador, Kazakhstan, Liberia, and Spain.
Switch to numeric abbreviations for numerous time zones in South
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
</listitem>
<para>
The Microsoft MSVC build scripts neglected to install
- the <filename>posixrules</> file in the timezone directory tree.
+ the <filename>posixrules</filename> file in the timezone directory tree.
This resulted in the timezone code falling back to its built-in
rule about what DST behavior to assume for a POSIX-style time zone
name. For historical reasons that still corresponds to the DST rules
the USA was using before 2007 (i.e., change on first Sunday in April
and last Sunday in October). With this fix, a POSIX-style zone name
will use the current and historical DST transition dates of
- the <literal>US/Eastern</> zone. If you don't want that, remove
- the <filename>posixrules</> file, or replace it with a copy of some
+ the <literal>US/Eastern</literal> zone. If you don't want that, remove
+ the <filename>posixrules</filename> file, or replace it with a copy of some
other zone file (see <xref linkend="datatype-timezones">). Note that
due to caching, you may need to restart the server to get such changes
to take effect.
<listitem>
<para>
Fix a race condition that could cause indexes built
- with <command>CREATE INDEX CONCURRENTLY</> to be corrupt
+ with <command>CREATE INDEX CONCURRENTLY</command> to be corrupt
(Pavan Deolasee, Tom Lane)
</para>
<para>
- If <command>CREATE INDEX CONCURRENTLY</> was used to build an index
+ If <command>CREATE INDEX CONCURRENTLY</command> was used to build an index
that depends on a column not previously indexed, then rows
updated by transactions that ran concurrently with
- the <command>CREATE INDEX</> command could have received incorrect
+ the <command>CREATE INDEX</command> command could have received incorrect
index entries. If you suspect this may have happened, the most
reliable solution is to rebuild affected indexes after installing
this update.
<listitem>
<para>
- Unconditionally WAL-log creation of the <quote>init fork</> for an
+ Unconditionally WAL-log creation of the <quote>init fork</quote> for an
unlogged table (Michael Paquier)
</para>
<para>
Previously, this was skipped when <xref linkend="guc-wal-level">
- = <literal>minimal</>, but actually it's necessary even in that case
+ = <literal>minimal</literal>, but actually it's necessary even in that case
to ensure that the unlogged table is properly reset to empty after a
crash.
</para>
</para>
<para>
- In corner cases, a spurious <quote>out-of-sequence TLI</> error
+ In corner cases, a spurious <quote>out-of-sequence TLI</quote> error
could be reported during recovery.
</para>
</listitem>
<listitem>
<para>
- Make sure <command>ALTER TABLE</> preserves index tablespace
+ Make sure <command>ALTER TABLE</command> preserves index tablespace
assignments when rebuilding indexes (Tom Lane, Michael Paquier)
</para>
</para>
<para>
- This avoids <quote>could not find trigger <replaceable>NNN</></quote>
- or <quote>relation <replaceable>NNN</> has no triggers</quote> errors.
+ This avoids <quote>could not find trigger <replaceable>NNN</replaceable></quote>
+ or <quote>relation <replaceable>NNN</replaceable> has no triggers</quote> errors.
</para>
</listitem>
<listitem>
<para>
Fix processing of OID column when a table with OIDs is associated to
- a parent with OIDs via <command>ALTER TABLE ... INHERIT</> (Amit
+ a parent with OIDs via <command>ALTER TABLE ... INHERIT</command> (Amit
Langote)
</para>
<listitem>
<para>
Ensure that column typmods are determined accurately for
- multi-row <literal>VALUES</> constructs (Tom Lane)
+ multi-row <literal>VALUES</literal> constructs (Tom Lane)
</para>
<para>
This fixes problems occurring when the first value in a column has a
- determinable typmod (e.g., length for a <type>varchar</> value) but
+ determinable typmod (e.g., length for a <type>varchar</type> value) but
later values don't share the same limit.
</para>
</listitem>
Normally, a Unicode surrogate leading character must be followed by a
Unicode surrogate trailing character, but the check for this was
missed if the leading character was the last character in a Unicode
- string literal (<literal>U&'...'</>) or Unicode identifier
- (<literal>U&"..."</>).
+ string literal (<literal>U&'...'</literal>) or Unicode identifier
+ (<literal>U&"..."</literal>).
</para>
</listitem>
<listitem>
<para>
Ensure that a purely negative text search query, such
- as <literal>!foo</>, matches empty <type>tsvector</>s (Tom Dunstan)
+ as <literal>!foo</literal>, matches empty <type>tsvector</type>s (Tom Dunstan)
</para>
<para>
<listitem>
<para>
- Prevent crash when <function>ts_rewrite()</> replaces a non-top-level
+ Prevent crash when <function>ts_rewrite()</function> replaces a non-top-level
subtree with an empty query (Artur Zakirov)
</para>
</listitem>
<listitem>
<para>
- Fix performance problems in <function>ts_rewrite()</> (Tom Lane)
+ Fix performance problems in <function>ts_rewrite()</function> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>ts_rewrite()</>'s handling of nested NOT operators
+ Fix <function>ts_rewrite()</function>'s handling of nested NOT operators
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>array_fill()</> to handle empty arrays properly (Tom Lane)
+ Fix <function>array_fill()</function> to handle empty arrays properly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix one-byte buffer overrun in <function>quote_literal_cstr()</>
+ Fix one-byte buffer overrun in <function>quote_literal_cstr()</function>
(Heikki Linnakangas)
</para>
<listitem>
<para>
- Prevent multiple calls of <function>pg_start_backup()</>
- and <function>pg_stop_backup()</> from running concurrently (Michael
+ Prevent multiple calls of <function>pg_start_backup()</function>
+ and <function>pg_stop_backup()</function> from running concurrently (Michael
Paquier)
</para>
<listitem>
<para>
- Avoid discarding <type>interval</>-to-<type>interval</> casts
+ Avoid discarding <type>interval</type>-to-<type>interval</type> casts
that aren't really no-ops (Tom Lane)
</para>
<para>
In some cases, a cast that should result in zeroing out
- low-order <type>interval</> fields was mistakenly deemed to be a
+ low-order <type>interval</type> fields was mistakenly deemed to be a
no-op and discarded. An example is that casting from <type>INTERVAL
- MONTH</> to <type>INTERVAL YEAR</> failed to clear the months field.
+ MONTH</type> to <type>INTERVAL YEAR</type> failed to clear the months field.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to dump user-defined casts and transforms
+ Fix <application>pg_dump</application> to dump user-defined casts and transforms
that use built-in functions (Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- Fix possible <application>pg_basebackup</> failure on standby
+ Fix possible <application>pg_basebackup</application> failure on standby
server when including WAL files (Amit Kapila, Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix PL/Tcl to support triggers on tables that have <literal>.tupno</>
+ Fix PL/Tcl to support triggers on tables that have <literal>.tupno</literal>
as a column name (Tom Lane)
</para>
<para>
This matches the (previously undocumented) behavior of
- PL/Tcl's <command>spi_exec</> and <command>spi_execp</> commands,
- namely that a magic <literal>.tupno</> column is inserted only if
+ PL/Tcl's <command>spi_exec</command> and <command>spi_execp</command> commands,
+ namely that a magic <literal>.tupno</literal> column is inserted only if
there isn't a real column named that.
</para>
</listitem>
<listitem>
<para>
- Allow DOS-style line endings in <filename>~/.pgpass</> files,
+ Allow DOS-style line endings in <filename>~/.pgpass</filename> files,
even on Unix (Vik Fearing)
</para>
<listitem>
<para>
- Fix one-byte buffer overrun if <application>ecpg</> is given a file
+ Fix one-byte buffer overrun if <application>ecpg</application> is given a file
name that ends with a dot (Takayuki Tsunakawa)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for <command>ALTER DEFAULT
- PRIVILEGES</> (Gilles Darold, Stephen Frost)
+ Fix <application>psql</application>'s tab completion for <command>ALTER DEFAULT
+ PRIVILEGES</command> (Gilles Darold, Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, treat an empty or all-blank setting of
- the <envar>PAGER</> environment variable as meaning <quote>no
- pager</> (Tom Lane)
+ In <application>psql</application>, treat an empty or all-blank setting of
+ the <envar>PAGER</envar> environment variable as meaning <quote>no
+ pager</quote> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Improve <filename>contrib/dblink</>'s reporting of
- low-level <application>libpq</> errors, such as out-of-memory
+ Improve <filename>contrib/dblink</filename>'s reporting of
+ low-level <application>libpq</application> errors, such as out-of-memory
(Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016j
+ Update time zone data files to <application>tzdata</application> release 2016j
for DST law changes in northern Cyprus (adding a new zone
Asia/Famagusta), Russia (adding a new zone Europe/Saratov), Tonga,
and Antarctica/Casey.
<listitem>
<para>
- Fix <command>EXPLAIN</> to emit valid XML when
+ Fix <command>EXPLAIN</command> to emit valid XML when
<xref linkend="guc-track-io-timing"> is on (Markus Winand)
</para>
<para>
Previously the XML output-format option produced syntactically invalid
- tags such as <literal><I/O-Read-Time></>. That is now
- rendered as <literal><I-O-Read-Time></>.
+ tags such as <literal><I/O-Read-Time></literal>. That is now
+ rendered as <literal><I-O-Read-Time></literal>.
</para>
</listitem>
<listitem>
<para>
Suppress printing of zeroes for unmeasured times
- in <command>EXPLAIN</> (Maksim Milyutin)
+ in <command>EXPLAIN</command> (Maksim Milyutin)
</para>
<para>
Certain option combinations resulted in printing zero values for times
that actually aren't ever measured in that combination. Our general
- policy in <command>EXPLAIN</> is not to print such fields at all, so
+ policy in <command>EXPLAIN</command> is not to print such fields at all, so
do that consistently in all cases.
</para>
</listitem>
<listitem>
<para>
- Fix timeout length when <command>VACUUM</> is waiting for exclusive
+ Fix timeout length when <command>VACUUM</command> is waiting for exclusive
table lock so that it can truncate the table (Simon Riggs)
</para>
<para>
The timeout was meant to be 50 milliseconds, but it was actually only
- 50 microseconds, causing <command>VACUUM</> to give up on truncation
+ 50 microseconds, causing <command>VACUUM</command> to give up on truncation
much more easily than intended. Set it to the intended value.
</para>
</listitem>
<listitem>
<para>
- Fix bugs in merging inherited <literal>CHECK</> constraints while
+ Fix bugs in merging inherited <literal>CHECK</literal> constraints while
creating or altering a table (Tom Lane, Amit Langote)
</para>
<para>
- Allow identical <literal>CHECK</> constraints to be added to a parent
+ Allow identical <literal>CHECK</literal> constraints to be added to a parent
and child table in either order. Prevent merging of a valid
- constraint from the parent table with a <literal>NOT VALID</>
+ constraint from the parent table with a <literal>NOT VALID</literal>
constraint on the child. Likewise, prevent merging of a <literal>NO
- INHERIT</> child constraint with an inherited constraint.
+ INHERIT</literal> child constraint with an inherited constraint.
</para>
</listitem>
<listitem>
<para>
Remove artificial restrictions on the values accepted
- by <function>numeric_in()</> and <function>numeric_recv()</>
+ by <function>numeric_in()</function> and <function>numeric_recv()</function>
(Tom Lane)
</para>
<para>
We allow numeric values up to the limit of the storage format (more
- than <literal>1e100000</>), so it seems fairly pointless
- that <function>numeric_in()</> rejected scientific-notation exponents
- above 1000. Likewise, it was silly for <function>numeric_recv()</> to
+ than <literal>1e100000</literal>), so it seems fairly pointless
+ that <function>numeric_in()</function> rejected scientific-notation exponents
+ above 1000. Likewise, it was silly for <function>numeric_recv()</function> to
reject more than 1000 digits in an input value.
</para>
</listitem>
<listitem>
<para>
- Disallow starting a standalone backend with <literal>standby_mode</>
+ Disallow starting a standalone backend with <literal>standby_mode</literal>
turned on (Michael Paquier)
</para>
<listitem>
<para>
Don't try to share SSL contexts across multiple connections
- in <application>libpq</> (Heikki Linnakangas)
+ in <application>libpq</application> (Heikki Linnakangas)
</para>
<para>
<listitem>
<para>
- Avoid corner-case memory leak in <application>libpq</> (Tom Lane)
+ Avoid corner-case memory leak in <application>libpq</application> (Tom Lane)
</para>
<para>
The reported problem involved leaking an error report
- during <function>PQreset()</>, but there might be related cases.
+ during <function>PQreset()</function>, but there might be related cases.
</para>
</listitem>
<listitem>
<para>
- Make <application>ecpg</>'s <option>--help</> and <option>--version</>
+ Make <application>ecpg</application>'s <option>--help</option> and <option>--version</option>
options work consistently with our other executables (Haribabu Kommi)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, never dump range constructor functions
+ In <application>pg_dump</application>, never dump range constructor functions
(Tom Lane)
</para>
<para>
- This oversight led to <application>pg_upgrade</> failures with
+ This oversight led to <application>pg_upgrade</application> failures with
extensions containing range types, due to duplicate creation of the
constructor functions.
</para>
<listitem>
<para>
- Fix <filename>contrib/intarray/bench/bench.pl</> to print the results
- of the <command>EXPLAIN</> it does when given the <option>-e</> option
+ Fix <filename>contrib/intarray/bench/bench.pl</filename> to print the results
+ of the <command>EXPLAIN</command> it does when given the <option>-e</option> option
(Daniel Gustafsson)
</para>
</listitem>
If a dynamic time zone abbreviation does not match any entry in the
referenced time zone, treat it as equivalent to the time zone name.
This avoids unexpected failures when IANA removes abbreviations from
- their time zone database, as they did in <application>tzdata</>
+ their time zone database, as they did in <application>tzdata</application>
release 2016f and seem likely to do again in the future. The
consequences were not limited to not recognizing the individual
abbreviation; any mismatch caused
- the <structname>pg_timezone_abbrevs</> view to fail altogether.
+ the <structname>pg_timezone_abbrevs</structname> view to fail altogether.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016h
+ Update time zone data files to <application>tzdata</application> release 2016h
for DST law changes in Palestine and Turkey, plus historical
corrections for Turkey and some regions of Russia.
Switch to numeric abbreviations for some time zones in Antarctica,
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
<para>
- In this update, <literal>AMT</> is no longer shown as being in use to
- mean Armenia Time. Therefore, we have changed the <literal>Default</>
+ In this update, <literal>AMT</literal> is no longer shown as being in use to
+ mean Armenia Time. Therefore, we have changed the <literal>Default</literal>
abbreviation set to interpret it as Amazon Time, thus UTC-4 not UTC+4.
</para>
</listitem>
<listitem>
<para>
Fix possible mis-evaluation of
- nested <literal>CASE</>-<literal>WHEN</> expressions (Heikki
+ nested <literal>CASE</literal>-<literal>WHEN</literal> expressions (Heikki
Linnakangas, Michael Paquier, Tom Lane)
</para>
<para>
- A <literal>CASE</> expression appearing within the test value
- subexpression of another <literal>CASE</> could become confused about
+ A <literal>CASE</literal> expression appearing within the test value
+ subexpression of another <literal>CASE</literal> could become confused about
whether its own test value was null or not. Also, inlining of a SQL
function implementing the equality operator used by
- a <literal>CASE</> expression could result in passing the wrong test
- value to functions called within a <literal>CASE</> expression in the
+ a <literal>CASE</literal> expression could result in passing the wrong test
+ value to functions called within a <literal>CASE</literal> expression in the
SQL function's body. If the test values were of different data
types, a crash might result; moreover such situations could be abused
to allow disclosure of portions of server memory. (CVE-2016-5423)
</para>
<para>
- Numerous places in <application>vacuumdb</> and other client programs
+ Numerous places in <application>vacuumdb</application> and other client programs
could become confused by database and role names containing double
quotes or backslashes. Tighten up quoting rules to make that safe.
Also, ensure that when a conninfo string is used as a database name
<para>
Fix handling of paired double quotes
- in <application>psql</>'s <command>\connect</>
- and <command>\password</> commands to match the documentation.
+ in <application>psql</application>'s <command>\connect</command>
+ and <command>\password</command> commands to match the documentation.
</para>
<para>
- Introduce a new <option>-reuse-previous</> option
- in <application>psql</>'s <command>\connect</> command to allow
+ Introduce a new <option>-reuse-previous</option> option
+ in <application>psql</application>'s <command>\connect</command> command to allow
explicit control of whether to re-use connection parameters from a
previous connection. (Without this, the choice is based on whether
the database name looks like a conninfo string, as before.) This
allows secure handling of database names containing special
- characters in <application>pg_dumpall</> scripts.
+ characters in <application>pg_dumpall</application> scripts.
</para>
<para>
- <application>pg_dumpall</> now refuses to deal with database and role
+ <application>pg_dumpall</application> now refuses to deal with database and role
names containing carriage returns or newlines, as it seems impractical
to quote those characters safely on Windows. In future we may reject
such names on the server side, but that step has not been taken yet.
These are considered security fixes because crafted object names
containing special characters could have been used to execute
commands with superuser privileges the next time a superuser
- executes <application>pg_dumpall</> or other routine maintenance
+ executes <application>pg_dumpall</application> or other routine maintenance
operations. (CVE-2016-5424)
</para>
</listitem>
<listitem>
<para>
- Fix corner-case misbehaviors for <literal>IS NULL</>/<literal>IS NOT
- NULL</> applied to nested composite values (Andrew Gierth, Tom Lane)
+ Fix corner-case misbehaviors for <literal>IS NULL</literal>/<literal>IS NOT
+ NULL</literal> applied to nested composite values (Andrew Gierth, Tom Lane)
</para>
<para>
- The SQL standard specifies that <literal>IS NULL</> should return
+ The SQL standard specifies that <literal>IS NULL</literal> should return
TRUE for a row of all null values (thus <literal>ROW(NULL,NULL) IS
- NULL</> yields TRUE), but this is not meant to apply recursively
- (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</> yields FALSE).
+ NULL</literal> yields TRUE), but this is not meant to apply recursively
+ (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</literal> yields FALSE).
The core executor got this right, but certain planner optimizations
treated the test as recursive (thus producing TRUE in both cases),
- and <filename>contrib/postgres_fdw</> could produce remote queries
+ and <filename>contrib/postgres_fdw</filename> could produce remote queries
that misbehaved similarly.
</para>
</listitem>
<listitem>
<para>
- Make the <type>inet</> and <type>cidr</> data types properly reject
+ Make the <type>inet</type> and <type>cidr</type> data types properly reject
IPv6 addresses with too many colon-separated fields (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Prevent crash in <function>close_ps()</>
- (the <type>point</> <literal>##</> <type>lseg</> operator)
+ Prevent crash in <function>close_ps()</function>
+ (the <type>point</type> <literal>##</literal> <type>lseg</type> operator)
for NaN input coordinates (Tom Lane)
</para>
<listitem>
<para>
- Fix several one-byte buffer over-reads in <function>to_number()</>
+ Fix several one-byte buffer over-reads in <function>to_number()</function>
(Peter Eisentraut)
</para>
<para>
- In several cases the <function>to_number()</> function would read one
+ In several cases the <function>to_number()</function> function would read one
more character than it should from the input string. There is a
small chance of a crash, if the input happens to be adjacent to the
end of memory.
<listitem>
<para>
Avoid unsafe intermediate state during expensive paths
- through <function>heap_update()</> (Masahiko Sawada, Andres Freund)
+ through <function>heap_update()</function> (Masahiko Sawada, Andres Freund)
</para>
<para>
<listitem>
<para>
- Avoid crash in <literal>postgres -C</> when the specified variable
+ Avoid crash in <literal>postgres -C</literal> when the specified variable
has a null string value (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Avoid consuming a transaction ID during <command>VACUUM</>
+ Avoid consuming a transaction ID during <command>VACUUM</command>
(Alexander Korotkov)
</para>
<para>
- Some cases in <command>VACUUM</> unnecessarily caused an XID to be
+ Some cases in <command>VACUUM</command> unnecessarily caused an XID to be
assigned to the current transaction. Normally this is negligible,
but if one is up against the XID wraparound limit, consuming more
XIDs during anti-wraparound vacuums is a very bad thing.
<listitem>
<para>
- Avoid canceling hot-standby queries during <command>VACUUM FREEZE</>
+ Avoid canceling hot-standby queries during <command>VACUUM FREEZE</command>
(Simon Riggs, Álvaro Herrera)
</para>
<para>
- <command>VACUUM FREEZE</> on an otherwise-idle master server could
+ <command>VACUUM FREEZE</command> on an otherwise-idle master server could
result in unnecessary cancellations of queries on its standby
servers.
</para>
<listitem>
<para>
- When a manual <command>ANALYZE</> specifies a column list, don't
- reset the table's <literal>changes_since_analyze</> counter
+ When a manual <command>ANALYZE</command> specifies a column list, don't
+ reset the table's <literal>changes_since_analyze</literal> counter
(Tom Lane)
</para>
<listitem>
<para>
- Fix <command>ANALYZE</>'s overestimation of <literal>n_distinct</>
+ Fix <command>ANALYZE</command>'s overestimation of <literal>n_distinct</literal>
for a unique or nearly-unique column with many null entries (Tom
Lane)
</para>
<listitem>
<para>
- Fix <filename>contrib/btree_gin</> to handle the smallest
- possible <type>bigint</> value correctly (Peter Eisentraut)
+ Fix <filename>contrib/btree_gin</filename> to handle the smallest
+ possible <type>bigint</type> value correctly (Peter Eisentraut)
</para>
</listitem>
<para>
It's planned to switch to two-part instead of three-part server
version numbers for releases after 9.6. Make sure
- that <function>PQserverVersion()</> returns the correct value for
+ that <function>PQserverVersion()</function> returns the correct value for
such cases.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>'s code for <literal>unsigned long long</>
+ Fix <application>ecpg</application>'s code for <literal>unsigned long long</literal>
array elements (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</> with both <option>-c</> and <option>-C</>
- options, avoid emitting an unwanted <literal>CREATE SCHEMA public</>
+ In <application>pg_dump</application> with both <option>-c</option> and <option>-C</option>
+ options, avoid emitting an unwanted <literal>CREATE SCHEMA public</literal>
command (David Johnston, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_basebackup</> accept <literal>-Z 0</> as
+ Make <application>pg_basebackup</application> accept <literal>-Z 0</literal> as
specifying no compression (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
Update our copy of the timezone code to match
- IANA's <application>tzcode</> release 2016c (Tom Lane)
+ IANA's <application>tzcode</application> release 2016c (Tom Lane)
</para>
<para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016f
+ Update time zone data files to <application>tzdata</application> release 2016f
for DST law changes in Kemerovo and Novosibirsk, plus historical
corrections for Azerbaijan, Belarus, and Morocco.
</para>
using OpenSSL within a single process and not all the code involved
follows the same rules for when to clear the error queue.
Failures have been reported specifically when a client application
- uses SSL connections in <application>libpq</> concurrently with
+ uses SSL connections in <application>libpq</application> concurrently with
SSL connections using the PHP, Python, or Ruby wrappers for OpenSSL.
It's possible for similar problems to arise within the server as well,
if an extension module establishes an outgoing SSL connection.
<listitem>
<para>
- Fix <quote>failed to build any <replaceable>N</>-way joins</quote>
+ Fix <quote>failed to build any <replaceable>N</replaceable>-way joins</quote>
planner error with a full join enclosed in the right-hand side of a
left join (Tom Lane)
</para>
<para>
Given a three-or-more-way equivalence class of variables, such
- as <literal>X.X = Y.Y = Z.Z</>, it was possible for the planner to omit
+ as <literal>X.X = Y.Y = Z.Z</literal>, it was possible for the planner to omit
some of the tests needed to enforce that all the variables are actually
equal, leading to join rows being output that didn't satisfy
- the <literal>WHERE</> clauses. For various reasons, erroneous plans
+ the <literal>WHERE</literal> clauses. For various reasons, erroneous plans
were seldom selected in practice, so that this bug has gone undetected
for a long time.
</para>
<listitem>
<para>
- Fix possible misbehavior of <literal>TH</>, <literal>th</>,
- and <literal>Y,YYY</> format codes in <function>to_timestamp()</>
+ Fix possible misbehavior of <literal>TH</literal>, <literal>th</literal>,
+ and <literal>Y,YYY</literal> format codes in <function>to_timestamp()</function>
(Tom Lane)
</para>
<listitem>
<para>
- Fix dumping of rules and views in which the <replaceable>array</>
- argument of a <literal><replaceable>value</> <replaceable>operator</>
- ANY (<replaceable>array</>)</literal> construct is a sub-SELECT
+ Fix dumping of rules and views in which the <replaceable>array</replaceable>
+ argument of a <literal><replaceable>value</replaceable> <replaceable>operator</replaceable>
+ ANY (<replaceable>array</replaceable>)</literal> construct is a sub-SELECT
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_regress</> use a startup timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if that's set (Tom Lane)
+ Make <application>pg_regress</application> use a startup timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if that's set (Tom Lane)
</para>
<para>
This is for consistency with a behavior recently added
- to <application>pg_ctl</>; it eases automated testing on slow machines.
+ to <application>pg_ctl</application>; it eases automated testing on slow machines.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to correctly restore extension
+ Fix <application>pg_upgrade</application> to correctly restore extension
membership for operator families containing only one operator class
(Tom Lane)
</para>
<para>
In such a case, the operator family was restored into the new database,
but it was no longer marked as part of the extension. This had no
- immediate ill effects, but would cause later <application>pg_dump</>
+ immediate ill effects, but would cause later <application>pg_dump</application>
runs to emit output that would cause (harmless) errors on restore.
</para>
</listitem>
<listitem>
<para>
Reduce the number of SysV semaphores used by a build configured with
- <option>--disable-spinlocks</> (Tom Lane)
+ <option>--disable-spinlocks</option> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Rename internal function <function>strtoi()</>
- to <function>strtoint()</> to avoid conflict with a NetBSD library
+ Rename internal function <function>strtoi()</function>
+ to <function>strtoint()</function> to avoid conflict with a NetBSD library
function (Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix reporting of errors from <function>bind()</>
- and <function>listen()</> system calls on Windows (Tom Lane)
+ Fix reporting of errors from <function>bind()</function>
+ and <function>listen()</function> system calls on Windows (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Avoid possibly-unsafe use of Windows' <function>FormatMessage()</>
+ Avoid possibly-unsafe use of Windows' <function>FormatMessage()</function>
function (Christian Ullrich)
</para>
<para>
- Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</> flag where
+ Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</literal> flag where
appropriate. No live bug is known to exist here, but it seems like a
good idea to be careful.
</para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016d
+ Update time zone data files to <application>tzdata</application> release 2016d
for DST law changes in Russia and Venezuela. There are new zone
- names <literal>Europe/Kirov</> and <literal>Asia/Tomsk</> to reflect
+ names <literal>Europe/Kirov</literal> and <literal>Asia/Tomsk</literal> to reflect
the fact that these regions now have different time zone histories from
adjacent regions.
</para>
<listitem>
<para>
Fix incorrect handling of NULL index entries in
- indexed <literal>ROW()</> comparisons (Tom Lane)
+ indexed <literal>ROW()</literal> comparisons (Tom Lane)
</para>
<para>
An index search using a row comparison such as <literal>ROW(a, b) >
- ROW('x', 'y')</> would stop upon reaching a NULL entry in
- the <structfield>b</> column, ignoring the fact that there might be
- non-NULL <structfield>b</> values associated with later values
- of <structfield>a</>.
+ ROW('x', 'y')</literal> would stop upon reaching a NULL entry in
+ the <structfield>b</structfield> column, ignoring the fact that there might be
+ non-NULL <structfield>b</structfield> values associated with later values
+ of <structfield>a</structfield>.
</para>
</listitem>
<listitem>
<para>
Avoid unlikely data-loss scenarios due to renaming files without
- adequate <function>fsync()</> calls before and after (Michael Paquier,
+ adequate <function>fsync()</function> calls before and after (Michael Paquier,
Tomas Vondra, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Correctly handle cases where <literal>pg_subtrans</> is close to XID
+ Correctly handle cases where <literal>pg_subtrans</literal> is close to XID
wraparound during server startup (Jeff Janes)
</para>
</listitem>
<listitem>
<para>
- Fix corner-case crash due to trying to free <function>localeconv()</>
+ Fix corner-case crash due to trying to free <function>localeconv()</function>
output strings more than once (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix parsing of affix files for <literal>ispell</> dictionaries
+ Fix parsing of affix files for <literal>ispell</literal> dictionaries
(Tom Lane)
</para>
<para>
The code could go wrong if the affix file contained any characters
whose byte length changes during case-folding, for
- example <literal>I</> in Turkish UTF8 locales.
+ example <literal>I</literal> in Turkish UTF8 locales.
</para>
</listitem>
<listitem>
<para>
- Avoid use of <function>sscanf()</> to parse <literal>ispell</>
+ Avoid use of <function>sscanf()</function> to parse <literal>ispell</literal>
dictionary files (Artur Zakirov)
</para>
<listitem>
<para>
- Fix <application>psql</>'s tab completion logic to handle multibyte
+ Fix <application>psql</application>'s tab completion logic to handle multibyte
characters properly (Kyotaro Horiguchi, Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for
- <literal>SECURITY LABEL</> (Tom Lane)
+ Fix <application>psql</application>'s tab completion for
+ <literal>SECURITY LABEL</literal> (Tom Lane)
</para>
<para>
- Pressing TAB after <literal>SECURITY LABEL</> might cause a crash
+ Pressing TAB after <literal>SECURITY LABEL</literal> might cause a crash
or offering of inappropriate keywords.
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_ctl</> accept a wait timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if none is specified on
+ Make <application>pg_ctl</application> accept a wait timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if none is specified on
the command line (Noah Misch)
</para>
<listitem>
<para>
Fix incorrect test for Windows service status
- in <application>pg_ctl</> (Manuel Mathar)
+ in <application>pg_ctl</application> (Manuel Mathar)
</para>
<para>
The previous set of minor releases attempted to
- fix <application>pg_ctl</> to properly determine whether to send log
+ fix <application>pg_ctl</application> to properly determine whether to send log
messages to Window's Event Log, but got the test backwards.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pgbench</> to correctly handle the combination
- of <literal>-C</> and <literal>-M prepared</> options (Tom Lane)
+ Fix <application>pgbench</application> to correctly handle the combination
+ of <literal>-C</literal> and <literal>-M prepared</literal> options (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix multiple mistakes in the statistics returned
- by <filename>contrib/pgstattuple</>'s <function>pgstatindex()</>
+ by <filename>contrib/pgstattuple</filename>'s <function>pgstatindex()</function>
function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Remove dependency on <literal>psed</> in MSVC builds, since it's no
+ Remove dependency on <literal>psed</literal> in MSVC builds, since it's no
longer provided by core Perl (Michael Paquier, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016c
+ Update time zone data files to <application>tzdata</application> release 2016c
for DST law changes in Azerbaijan, Chile, Haiti, Palestine, and Russia
(Altai, Astrakhan, Kirov, Sakhalin, Ulyanovsk regions), plus
historical corrections for Lithuania, Moldova, and Russia
<listitem>
<para>
- Perform an immediate shutdown if the <filename>postmaster.pid</> file
+ Perform an immediate shutdown if the <filename>postmaster.pid</filename> file
is removed (Tom Lane)
</para>
<para>
The postmaster now checks every minute or so
- that <filename>postmaster.pid</> is still there and still contains its
+ that <filename>postmaster.pid</filename> is still there and still contains its
own PID. If not, it performs an immediate shutdown, as though it had
- received <systemitem>SIGQUIT</>. The main motivation for this change
+ received <systemitem>SIGQUIT</systemitem>. The main motivation for this change
is to ensure that failed buildfarm runs will get cleaned up without
manual intervention; but it also serves to limit the bad effects if a
- DBA forcibly removes <filename>postmaster.pid</> and then starts a new
+ DBA forcibly removes <filename>postmaster.pid</filename> and then starts a new
postmaster.
</para>
</listitem>
<listitem>
<para>
- In <literal>SERIALIZABLE</> transaction isolation mode, serialization
+ In <literal>SERIALIZABLE</literal> transaction isolation mode, serialization
anomalies could be missed due to race conditions during insertions
(Kevin Grittner, Thomas Munro)
</para>
<listitem>
<para>
Fix failure to emit appropriate WAL records when doing <literal>ALTER
- TABLE ... SET TABLESPACE</> for unlogged relations (Michael Paquier,
+ TABLE ... SET TABLESPACE</literal> for unlogged relations (Michael Paquier,
Andres Freund)
</para>
<listitem>
<para>
- Fix <command>ALTER COLUMN TYPE</> to reconstruct inherited check
+ Fix <command>ALTER COLUMN TYPE</command> to reconstruct inherited check
constraints properly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to change ownership of composite types
+ Fix <command>REASSIGN OWNED</command> to change ownership of composite types
properly (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> and <command>ALTER OWNER</> to correctly
+ Fix <command>REASSIGN OWNED</command> and <command>ALTER OWNER</command> to correctly
update granted-permissions lists when changing owners of data types,
foreign data wrappers, or foreign servers (Bruce Momjian,
Álvaro Herrera)
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to ignore foreign user mappings,
+ Fix <command>REASSIGN OWNED</command> to ignore foreign user mappings,
rather than fail (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of whole-row Vars in <literal>ROW()</>
- and <literal>VALUES()</> lists (Tom Lane)
+ Fix dumping of whole-row Vars in <literal>ROW()</literal>
+ and <literal>VALUES()</literal> lists (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix possible internal overflow in <type>numeric</> division
+ Fix possible internal overflow in <type>numeric</type> division
(Dean Rasheed)
</para>
</listitem>
<para>
This causes the code to emit <quote>regular expression is too
- complex</> errors in some cases that previously used unreasonable
+ complex</quote> errors in some cases that previously used unreasonable
amounts of time and memory.
</para>
</listitem>
<listitem>
<para>
- Make <literal>%h</> and <literal>%r</> escapes
- in <varname>log_line_prefix</> work for messages emitted due
- to <varname>log_connections</> (Tom Lane)
+ Make <literal>%h</literal> and <literal>%r</literal> escapes
+ in <varname>log_line_prefix</varname> work for messages emitted due
+ to <varname>log_connections</varname> (Tom Lane)
</para>
<para>
- Previously, <literal>%h</>/<literal>%r</> started to work just after a
- new session had emitted the <quote>connection received</> log message;
+ Previously, <literal>%h</literal>/<literal>%r</literal> started to work just after a
+ new session had emitted the <quote>connection received</quote> log message;
now they work for that message too.
</para>
</listitem>
<para>
This oversight resulted in failure to recover from crashes
- whenever <varname>logging_collector</> is turned on.
+ whenever <varname>logging_collector</varname> is turned on.
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, ensure that <application>libreadline</>'s idea
+ In <application>psql</application>, ensure that <application>libreadline</application>'s idea
of the screen size is updated when the terminal window size changes
(Merlin Moncure)
</para>
<para>
- Previously, <application>libreadline</> did not notice if the window
+ Previously, <application>libreadline</application> did not notice if the window
was resized during query output, leading to strange behavior during
later input of multiline queries.
</para>
<listitem>
<para>
- Fix <application>psql</>'s <literal>\det</> command to interpret its
- pattern argument the same way as other <literal>\d</> commands with
+ Fix <application>psql</application>'s <literal>\det</literal> command to interpret its
+ pattern argument the same way as other <literal>\d</literal> commands with
potentially schema-qualified patterns do (Reece Hart)
</para>
</listitem>
<listitem>
<para>
- Avoid possible crash in <application>psql</>'s <literal>\c</> command
+ Avoid possible crash in <application>psql</application>'s <literal>\c</literal> command
when previous connection was via Unix socket and command specifies a
new hostname and same username (Tom Lane)
</para>
<listitem>
<para>
- In <literal>pg_ctl start -w</>, test child process status directly
+ In <literal>pg_ctl start -w</literal>, test child process status directly
rather than relying on heuristics (Tom Lane, Michael Paquier)
</para>
<para>
- Previously, <application>pg_ctl</> relied on an assumption that the new
- postmaster would always create <filename>postmaster.pid</> within five
+ Previously, <application>pg_ctl</application> relied on an assumption that the new
+ postmaster would always create <filename>postmaster.pid</filename> within five
seconds. But that can fail on heavily-loaded systems,
- causing <application>pg_ctl</> to report incorrectly that the
+ causing <application>pg_ctl</application> to report incorrectly that the
postmaster failed to start.
</para>
<para>
Except on Windows, this change also means that a <literal>pg_ctl start
- -w</> done immediately after another such command will now reliably
+ -w</literal> done immediately after another such command will now reliably
fail, whereas previously it would report success if done within two
seconds of the first command.
</para>
<listitem>
<para>
- In <literal>pg_ctl start -w</>, don't attempt to use a wildcard listen
+ In <literal>pg_ctl start -w</literal>, don't attempt to use a wildcard listen
address to connect to the postmaster (Kondo Yuta)
</para>
<para>
- On Windows, <application>pg_ctl</> would fail to detect postmaster
- startup if <varname>listen_addresses</> is set to <literal>0.0.0.0</>
- or <literal>::</>, because it would try to use that value verbatim as
+ On Windows, <application>pg_ctl</application> would fail to detect postmaster
+ startup if <varname>listen_addresses</varname> is set to <literal>0.0.0.0</literal>
+ or <literal>::</literal>, because it would try to use that value verbatim as
the address to connect to, which doesn't work. Instead assume
- that <literal>127.0.0.1</> or <literal>::1</>, respectively, is the
+ that <literal>127.0.0.1</literal> or <literal>::1</literal>, respectively, is the
right thing to use.
</para>
</listitem>
<listitem>
<para>
- In <application>pg_ctl</> on Windows, check service status to decide
+ In <application>pg_ctl</application> on Windows, check service status to decide
where to send output, rather than checking if standard output is a
terminal (Michael Paquier)
</para>
<listitem>
<para>
- In <application>pg_dump</> and <application>pg_basebackup</>, adopt
+ In <application>pg_dump</application> and <application>pg_basebackup</application>, adopt
the GNU convention for handling tar-archive members exceeding 8GB
(Tom Lane)
</para>
<para>
- The POSIX standard for <literal>tar</> file format does not allow
+ The POSIX standard for <literal>tar</literal> file format does not allow
archive member files to exceed 8GB, but most modern implementations
- of <application>tar</> support an extension that fixes that. Adopt
- this extension so that <application>pg_dump</> with <option>-Ft</> no
+ of <application>tar</application> support an extension that fixes that. Adopt
+ this extension so that <application>pg_dump</application> with <option>-Ft</option> no
longer fails on tables with more than 8GB of data, and so
- that <application>pg_basebackup</> can handle files larger than 8GB.
+ that <application>pg_basebackup</application> can handle files larger than 8GB.
In addition, fix some portability issues that could cause failures for
members between 4GB and 8GB on some platforms. Potentially these
problems could cause unrecoverable data loss due to unreadable backup
<listitem>
<para>
- Fix assorted corner-case bugs in <application>pg_dump</>'s processing
+ Fix assorted corner-case bugs in <application>pg_dump</application>'s processing
of extension member objects (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> mark a view's triggers as needing to be
+ Make <application>pg_dump</application> mark a view's triggers as needing to be
processed after its rule, to prevent possible failure during
- parallel <application>pg_restore</> (Tom Lane)
+ parallel <application>pg_restore</application> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Ensure that relation option values are properly quoted
- in <application>pg_dump</> (Kouhei Sutou, Tom Lane)
+ in <application>pg_dump</application> (Kouhei Sutou, Tom Lane)
</para>
<para>
A reloption value that isn't a simple identifier or number could lead
to dump/reload failures due to syntax errors in CREATE statements
- issued by <application>pg_dump</>. This is not an issue with any
- reloption currently supported by core <productname>PostgreSQL</>, but
+ issued by <application>pg_dump</application>. This is not an issue with any
+ reloption currently supported by core <productname>PostgreSQL</productname>, but
extensions could allow reloptions that cause the problem.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</>'s file-copying code to handle errors
+ Fix <application>pg_upgrade</application>'s file-copying code to handle errors
properly on Windows (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Install guards in <application>pgbench</> against corner-case overflow
+ Install guards in <application>pgbench</application> against corner-case overflow
conditions during evaluation of script-specified division or modulo
operators (Fabien Coelho, Michael Paquier)
</para>
<listitem>
<para>
Fix failure to localize messages emitted
- by <application>pg_receivexlog</> and <application>pg_recvlogical</>
+ by <application>pg_receivexlog</application> and <application>pg_recvlogical</application>
(Ioseph Kim)
</para>
</listitem>
<listitem>
<para>
- Avoid dump/reload problems when using both <application>plpython2</>
- and <application>plpython3</> (Tom Lane)
+ Avoid dump/reload problems when using both <application>plpython2</application>
+ and <application>plpython3</application> (Tom Lane)
</para>
<para>
- In principle, both versions of <application>PL/Python</> can be used in
+ In principle, both versions of <application>PL/Python</application> can be used in
the same database, though not in the same session (because the two
- versions of <application>libpython</> cannot safely be used concurrently).
- However, <application>pg_restore</> and <application>pg_upgrade</> both
+ versions of <application>libpython</application> cannot safely be used concurrently).
+ However, <application>pg_restore</application> and <application>pg_upgrade</application> both
do things that can fall foul of the same-session restriction. Work
around that by changing the timing of the check.
</para>
<listitem>
<para>
- Fix <application>PL/Python</> regression tests to pass with Python 3.5
+ Fix <application>PL/Python</application> regression tests to pass with Python 3.5
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Prevent certain <application>PL/Java</> parameters from being set by
+ Prevent certain <application>PL/Java</application> parameters from being set by
non-superusers (Noah Misch)
</para>
<para>
- This change mitigates a <application>PL/Java</> security bug
- (CVE-2016-0766), which was fixed in <application>PL/Java</> by marking
+ This change mitigates a <application>PL/Java</application> security bug
+ (CVE-2016-0766), which was fixed in <application>PL/Java</application> by marking
these parameters as superuser-only. To fix the security hazard for
- sites that update <productname>PostgreSQL</> more frequently
- than <application>PL/Java</>, make the core code aware of them also.
+ sites that update <productname>PostgreSQL</productname> more frequently
+ than <application>PL/Java</application>, make the core code aware of them also.
</para>
</listitem>
<listitem>
<para>
- Improve <application>libpq</>'s handling of out-of-memory situations
+ Improve <application>libpq</application>'s handling of out-of-memory situations
(Michael Paquier, Amit Kapila, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix order of arguments
- in <application>ecpg</>-generated <literal>typedef</> statements
+ in <application>ecpg</application>-generated <literal>typedef</literal> statements
(Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Use <literal>%g</> not <literal>%f</> format
- in <application>ecpg</>'s <function>PGTYPESnumeric_from_double()</>
+ Use <literal>%g</literal> not <literal>%f</literal> format
+ in <application>ecpg</application>'s <function>PGTYPESnumeric_from_double()</function>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>-supplied header files to not contain comments
+ Fix <application>ecpg</application>-supplied header files to not contain comments
continued from a preprocessor directive line onto the next line
(Michael Meskes)
</para>
<para>
- Such a comment is rejected by <application>ecpg</>. It's not yet clear
- whether <application>ecpg</> itself should be changed.
+ Such a comment is rejected by <application>ecpg</application>. It's not yet clear
+ whether <application>ecpg</application> itself should be changed.
</para>
</listitem>
<listitem>
<para>
- Ensure that <filename>contrib/pgcrypto</>'s <function>crypt()</>
+ Ensure that <filename>contrib/pgcrypto</filename>'s <function>crypt()</function>
function can be interrupted by query cancel (Andreas Karlsson)
</para>
</listitem>
<listitem>
<para>
- Accept <application>flex</> versions later than 2.5.x
+ Accept <application>flex</application> versions later than 2.5.x
(Tom Lane, Michael Paquier)
</para>
<listitem>
<para>
- Install our <filename>missing</> script where PGXS builds can find it
+ Install our <filename>missing</filename> script where PGXS builds can find it
(Jim Nasby)
</para>
<para>
This allows sane behavior in a PGXS build done on a machine where build
- tools such as <application>bison</> are missing.
+ tools such as <application>bison</application> are missing.
</para>
</listitem>
<listitem>
<para>
- Ensure that <filename>dynloader.h</> is included in the installed
+ Ensure that <filename>dynloader.h</filename> is included in the installed
header files in MSVC builds (Bruce Momjian, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Add variant regression test expected-output file to match behavior of
- current <application>libxml2</> (Tom Lane)
+ current <application>libxml2</application> (Tom Lane)
</para>
<para>
- The fix for <application>libxml2</>'s CVE-2015-7499 causes it not to
+ The fix for <application>libxml2</application>'s CVE-2015-7499 causes it not to
output error context reports in some cases where it used to do so.
This seems to be a bug, but we'll probably have to live with it for
some time, so work around it.
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016a for
+ Update time zone data files to <application>tzdata</application> release 2016a for
DST law changes in Cayman Islands, Metlakatla, and Trans-Baikal
Territory (Zabaykalsky Krai), plus historical corrections for Pakistan.
</para>
<listitem>
<para>
- Fix <filename>contrib/pgcrypto</> to detect and report
- too-short <function>crypt()</> salts (Josh Kupershmidt)
+ Fix <filename>contrib/pgcrypto</filename> to detect and report
+ too-short <function>crypt()</function> salts (Josh Kupershmidt)
</para>
<para>
<listitem>
<para>
- Fix insertion of relations into the relation cache <quote>init file</>
+ Fix insertion of relations into the relation cache <quote>init file</quote>
(Tom Lane)
</para>
<para>
An oversight in a patch in the most recent minor releases
- caused <structname>pg_trigger_tgrelid_tgname_index</> to be omitted
+ caused <structname>pg_trigger_tgrelid_tgname_index</structname> to be omitted
from the init file. Subsequent sessions detected this, then deemed the
init file to be broken and silently ignored it, resulting in a
significant degradation in session startup time. In addition to fixing
<listitem>
<para>
- Improve <command>LISTEN</> startup time when there are many unread
+ Improve <command>LISTEN</command> startup time when there are many unread
notifications (Matt Newell)
</para>
</listitem>
</para>
<para>
- This substantially improves performance when <application>pg_dump</>
+ This substantially improves performance when <application>pg_dump</application>
tries to dump a large number of tables.
</para>
</listitem>
too many bugs in practice, both in the underlying OpenSSL library and
in our usage of it. Renegotiation will be removed entirely in 9.5 and
later. In the older branches, just change the default value
- of <varname>ssl_renegotiation_limit</> to zero (disabled).
+ of <varname>ssl_renegotiation_limit</varname> to zero (disabled).
</para>
</listitem>
<listitem>
<para>
- Lower the minimum values of the <literal>*_freeze_max_age</> parameters
+ Lower the minimum values of the <literal>*_freeze_max_age</literal> parameters
(Andres Freund)
</para>
<listitem>
<para>
- Limit the maximum value of <varname>wal_buffers</> to 2GB to avoid
+ Limit the maximum value of <varname>wal_buffers</varname> to 2GB to avoid
server crashes (Josh Berkus)
</para>
</listitem>
<listitem>
<para>
- Fix rare internal overflow in multiplication of <type>numeric</> values
+ Fix rare internal overflow in multiplication of <type>numeric</type> values
(Dean Rasheed)
</para>
</listitem>
<listitem>
<para>
Guard against hard-to-reach stack overflows involving record types,
- range types, <type>json</>, <type>jsonb</>, <type>tsquery</>,
- <type>ltxtquery</> and <type>query_int</> (Noah Misch)
+ range types, <type>json</type>, <type>jsonb</type>, <type>tsquery</type>,
+ <type>ltxtquery</type> and <type>query_int</type> (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Fix handling of <literal>DOW</> and <literal>DOY</> in datetime input
+ Fix handling of <literal>DOW</literal> and <literal>DOY</literal> in datetime input
(Greg Stark)
</para>
<para>
These tokens aren't meant to be used in datetime values, but previously
they resulted in opaque internal error messages rather
- than <quote>invalid input syntax</>.
+ than <quote>invalid input syntax</quote>.
</para>
</listitem>
<listitem>
<para>
Add recursion depth protections to regular expression, <literal>SIMILAR
- TO</>, and <literal>LIKE</> matching (Tom Lane)
+ TO</literal>, and <literal>LIKE</literal> matching (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <quote>unexpected out-of-memory situation during sort</> errors
- when using tuplestores with small <varname>work_mem</> settings (Tom
+ Fix <quote>unexpected out-of-memory situation during sort</quote> errors
+ when using tuplestores with small <varname>work_mem</varname> settings (Tom
Lane)
</para>
</listitem>
<listitem>
<para>
- Fix very-low-probability stack overrun in <function>qsort</> (Tom Lane)
+ Fix very-low-probability stack overrun in <function>qsort</function> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <quote>invalid memory alloc request size</> failure in hash joins
- with large <varname>work_mem</> settings (Tomas Vondra, Tom Lane)
+ Fix <quote>invalid memory alloc request size</quote> failure in hash joins
+ with large <varname>work_mem</varname> settings (Tomas Vondra, Tom Lane)
</para>
</listitem>
These mistakes could lead to incorrect query plans that would give wrong
answers, or to assertion failures in assert-enabled builds, or to odd
planner errors such as <quote>could not devise a query plan for the
- given query</>, <quote>could not find pathkey item to
- sort</>, <quote>plan should not reference subplan's variable</>,
- or <quote>failed to assign all NestLoopParams to plan nodes</>.
+ given query</quote>, <quote>could not find pathkey item to
+ sort</quote>, <quote>plan should not reference subplan's variable</quote>,
+ or <quote>failed to assign all NestLoopParams to plan nodes</quote>.
Thanks are due to Andreas Seltenreich and Piotr Stefaniak for fuzz
testing that exposed these problems.
</para>
<listitem>
<para>
- Improve planner's performance for <command>UPDATE</>/<command>DELETE</>
+ Improve planner's performance for <command>UPDATE</command>/<command>DELETE</command>
on large inheritance sets (Tom Lane, Dean Rasheed)
</para>
</listitem>
<para>
During postmaster shutdown, ensure that per-socket lock files are
removed and listen sockets are closed before we remove
- the <filename>postmaster.pid</> file (Tom Lane)
+ the <filename>postmaster.pid</filename> file (Tom Lane)
</para>
<para>
This avoids race-condition failures if an external script attempts to
- start a new postmaster as soon as <literal>pg_ctl stop</> returns.
+ start a new postmaster as soon as <literal>pg_ctl stop</literal> returns.
</para>
</listitem>
<listitem>
<para>
- Do not print a <literal>WARNING</> when an autovacuum worker is already
+ Do not print a <literal>WARNING</literal> when an autovacuum worker is already
gone when we attempt to signal it, and reduce log verbosity for such
signals (Tom Lane)
</para>
</para>
<para>
- <command>VACUUM</> attempted to recycle such pages, but did so in a
+ <command>VACUUM</command> attempted to recycle such pages, but did so in a
way that wasn't crash-safe.
</para>
</listitem>
<listitem>
<para>
Fix off-by-one error that led to otherwise-harmless warnings
- about <quote>apparent wraparound</> in subtrans/multixact truncation
+ about <quote>apparent wraparound</quote> in subtrans/multixact truncation
(Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix misreporting of <command>CONTINUE</> and <command>MOVE</> statement
- types in <application>PL/pgSQL</>'s error context messages
+ Fix misreporting of <command>CONTINUE</command> and <command>MOVE</command> statement
+ types in <application>PL/pgSQL</application>'s error context messages
(Pavel Stehule, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>PL/Perl</> to handle non-<acronym>ASCII</> error
+ Fix <application>PL/Perl</application> to handle non-<acronym>ASCII</acronym> error
message texts correctly (Alex Hunsaker)
</para>
</listitem>
<listitem>
<para>
- Fix <application>PL/Python</> crash when returning the string
- representation of a <type>record</> result (Tom Lane)
+ Fix <application>PL/Python</application> crash when returning the string
+ representation of a <type>record</type> result (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix some places in <application>PL/Tcl</> that neglected to check for
- failure of <function>malloc()</> calls (Michael Paquier, Álvaro
+ Fix some places in <application>PL/Tcl</application> that neglected to check for
+ failure of <function>malloc()</function> calls (Michael Paquier, Álvaro
Herrera)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/isn</>, fix output of ISBN-13 numbers that begin
+ In <filename>contrib/isn</filename>, fix output of ISBN-13 numbers that begin
with 979 (Fabien Coelho)
</para>
<listitem>
<para>
- Fix <filename>contrib/sepgsql</>'s handling of <command>SELECT INTO</>
+ Fix <filename>contrib/sepgsql</filename>'s handling of <command>SELECT INTO</command>
statements (Kohei KaiGai)
</para>
</listitem>
<listitem>
<para>
- Improve <application>libpq</>'s handling of out-of-memory conditions
+ Improve <application>libpq</application>'s handling of out-of-memory conditions
(Michael Paquier, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix memory leaks and missing out-of-memory checks
- in <application>ecpg</> (Michael Paquier)
+ in <application>ecpg</application> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s code for locale-aware formatting of numeric
+ Fix <application>psql</application>'s code for locale-aware formatting of numeric
output (Tom Lane)
</para>
<para>
- The formatting code invoked by <literal>\pset numericlocale on</>
+ The formatting code invoked by <literal>\pset numericlocale on</literal>
did the wrong thing for some uncommon cases such as numbers with an
exponent but no decimal point. It could also mangle already-localized
- output from the <type>money</> data type.
+ output from the <type>money</type> data type.
</para>
</listitem>
<listitem>
<para>
- Prevent crash in <application>psql</>'s <command>\c</> command when
+ Prevent crash in <application>psql</application>'s <command>\c</command> command when
there is no current connection (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> handle inherited <literal>NOT VALID</>
+ Make <application>pg_dump</application> handle inherited <literal>NOT VALID</literal>
check constraints correctly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix selection of default <application>zlib</> compression level
- in <application>pg_dump</>'s directory output format (Andrew Dunstan)
+ Fix selection of default <application>zlib</application> compression level
+ in <application>pg_dump</application>'s directory output format (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Ensure that temporary files created during a <application>pg_dump</>
- run with <acronym>tar</>-format output are not world-readable (Michael
+ Ensure that temporary files created during a <application>pg_dump</application>
+ run with <acronym>tar</acronym>-format output are not world-readable (Michael
Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> and <application>pg_upgrade</> to support
- cases where the <literal>postgres</> or <literal>template1</> database
+ Fix <application>pg_dump</application> and <application>pg_upgrade</application> to support
+ cases where the <literal>postgres</literal> or <literal>template1</literal> database
is in a non-default tablespace (Marti Raudsepp, Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to handle object privileges sanely when
+ Fix <application>pg_dump</application> to handle object privileges sanely when
dumping from a server too old to have a particular privilege type
(Tom Lane)
</para>
<para>
When dumping data types from pre-9.2 servers, and when dumping
functions or procedural languages from pre-7.3
- servers, <application>pg_dump</> would
- produce <command>GRANT</>/<command>REVOKE</> commands that revoked the
+ servers, <application>pg_dump</application> would
+ produce <command>GRANT</command>/<command>REVOKE</command> commands that revoked the
owner's grantable privileges and instead granted all privileges
- to <literal>PUBLIC</>. Since the privileges involved are
- just <literal>USAGE</> and <literal>EXECUTE</>, this isn't a security
+ to <literal>PUBLIC</literal>. Since the privileges involved are
+ just <literal>USAGE</literal> and <literal>EXECUTE</literal>, this isn't a security
problem, but it's certainly a surprising representation of the older
systems' behavior. Fix it to leave the default privilege state alone
in these cases.
<listitem>
<para>
- Fix <application>pg_dump</> to dump shell types (Tom Lane)
+ Fix <application>pg_dump</application> to dump shell types (Tom Lane)
</para>
<para>
Shell types (that is, not-yet-fully-defined types) aren't useful for
- much, but nonetheless <application>pg_dump</> should dump them.
+ much, but nonetheless <application>pg_dump</application> should dump them.
</para>
</listitem>
<listitem>
<para>
- Fix assorted minor memory leaks in <application>pg_dump</> and other
+ Fix assorted minor memory leaks in <application>pg_dump</application> and other
client-side programs (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Fix spinlock assembly code for PPC hardware to be compatible
- with <acronym>AIX</>'s native assembler (Tom Lane)
+ with <acronym>AIX</acronym>'s native assembler (Tom Lane)
</para>
<para>
- Building with <application>gcc</> didn't work if <application>gcc</>
+ Building with <application>gcc</application> didn't work if <application>gcc</application>
had been configured to use the native assembler, which is becoming more
common.
</para>
<listitem>
<para>
- On <acronym>AIX</>, test the <literal>-qlonglong</> compiler option
+ On <acronym>AIX</acronym>, test the <literal>-qlonglong</literal> compiler option
rather than just assuming it's safe to use (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- On <acronym>AIX</>, use <literal>-Wl,-brtllib</> link option to allow
+ On <acronym>AIX</acronym>, use <literal>-Wl,-brtllib</literal> link option to allow
symbols to be resolved at runtime (Noah Misch)
</para>
<listitem>
<para>
Avoid use of inline functions when compiling with
- 32-bit <application>xlc</>, due to compiler bugs (Noah Misch)
+ 32-bit <application>xlc</application>, due to compiler bugs (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Use <filename>librt</> for <function>sched_yield()</> when necessary,
+ Use <filename>librt</filename> for <function>sched_yield()</function> when necessary,
which it is on some Solaris versions (Oskari Saarenmaa)
</para>
</listitem>
<listitem>
<para>
- Fix Windows <filename>install.bat</> script to handle target directory
+ Fix Windows <filename>install.bat</filename> script to handle target directory
names that contain spaces (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Make the numeric form of the <productname>PostgreSQL</> version number
- (e.g., <literal>90405</>) readily available to extension Makefiles,
- as a variable named <varname>VERSION_NUM</> (Michael Paquier)
+ Make the numeric form of the <productname>PostgreSQL</productname> version number
+ (e.g., <literal>90405</literal>) readily available to extension Makefiles,
+ as a variable named <varname>VERSION_NUM</varname> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015g for
+ Update time zone data files to <application>tzdata</application> release 2015g for
DST law changes in Cayman Islands, Fiji, Moldova, Morocco, Norfolk
Island, North Korea, Turkey, and Uruguay. There is a new zone name
- <literal>America/Fort_Nelson</> for the Canadian Northern Rockies.
+ <literal>America/Fort_Nelson</literal> for the Canadian Northern Rockies.
</para>
</listitem>
<para>
With just the wrong timing of concurrent activity, a <command>VACUUM
- FULL</> on a system catalog might fail to update the <quote>init file</>
+ FULL</command> on a system catalog might fail to update the <quote>init file</quote>
that's used to avoid cache-loading work for new sessions. This would
result in later sessions being unable to access that catalog at all.
This is a very ancient bug, but it's so hard to trigger that no
<listitem>
<para>
Avoid deadlock between incoming sessions and <literal>CREATE/DROP
- DATABASE</> (Tom Lane)
+ DATABASE</literal> (Tom Lane)
</para>
<para>
A new session starting in a database that is the target of
- a <command>DROP DATABASE</> command, or is the template for
- a <command>CREATE DATABASE</> command, could cause the command to wait
+ a <command>DROP DATABASE</command> command, or is the template for
+ a <command>CREATE DATABASE</command> command, could cause the command to wait
for five seconds and then fail, even if the new session would have
exited before that.
</para>
<listitem>
<para>
- Avoid failures while <function>fsync</>'ing data directory during
+ Avoid failures while <function>fsync</function>'ing data directory during
crash restart (Abhijit Menon-Sen, Tom Lane)
</para>
<para>
- In the previous minor releases we added a patch to <function>fsync</>
+ In the previous minor releases we added a patch to <function>fsync</function>
everything in the data directory after a crash. Unfortunately its
response to any error condition was to fail, thereby preventing the
server from starting up, even when the problem was quite harmless.
<listitem>
<para>
- Fix <function>pg_get_functiondef()</> to show
- functions' <literal>LEAKPROOF</> property, if set (Jeevan Chalke)
+ Fix <function>pg_get_functiondef()</function> to show
+ functions' <literal>LEAKPROOF</literal> property, if set (Jeevan Chalke)
</para>
</listitem>
<listitem>
<para>
- Remove <application>configure</>'s check prohibiting linking to a
- threaded <application>libpython</>
- on <systemitem class="osname">OpenBSD</> (Tom Lane)
+ Remove <application>configure</application>'s check prohibiting linking to a
+ threaded <application>libpython</application>
+ on <systemitem class="osname">OpenBSD</systemitem> (Tom Lane)
</para>
<para>
The failure this restriction was meant to prevent seems to not be a
- problem anymore on current <systemitem class="osname">OpenBSD</>
+ problem anymore on current <systemitem class="osname">OpenBSD</systemitem>
versions.
</para>
</listitem>
<listitem>
<para>
- Allow <application>libpq</> to use TLS protocol versions beyond v1
+ Allow <application>libpq</application> to use TLS protocol versions beyond v1
(Noah Misch)
</para>
<para>
- For a long time, <application>libpq</> was coded so that the only SSL
+ For a long time, <application>libpq</application> was coded so that the only SSL
protocol it would allow was TLS v1. Now that newer TLS versions are
becoming popular, allow it to negotiate the highest commonly-supported
- TLS version with the server. (<productname>PostgreSQL</> servers were
+ TLS version with the server. (<productname>PostgreSQL</productname> servers were
already capable of such negotiation, so no change is needed on the
server side.) This is a back-patch of a change already released in
9.4.0.
</para>
<para>
- However, if you use <filename>contrib/citext</>'s
- <function>regexp_matches()</> functions, see the changelog entry below
+ However, if you use <filename>contrib/citext</filename>'s
+ <function>regexp_matches()</function> functions, see the changelog entry below
about that.
</para>
</para>
<para>
- Our replacement implementation of <function>snprintf()</> failed to
+ Our replacement implementation of <function>snprintf()</function> failed to
check for errors reported by the underlying system library calls;
the main case that might be missed is out-of-memory situations.
In the worst case this might lead to information exposure, due to our
</para>
<para>
- It remains possible that some calls of the <function>*printf()</>
+ It remains possible that some calls of the <function>*printf()</function>
family of functions are vulnerable to information disclosure if an
out-of-memory error occurs at just the wrong time. We judge the risk
to not be large, but will continue analysis in this area.
<listitem>
<para>
- In <filename>contrib/pgcrypto</>, uniformly report decryption failures
- as <quote>Wrong key or corrupt data</> (Noah Misch)
+ In <filename>contrib/pgcrypto</filename>, uniformly report decryption failures
+ as <quote>Wrong key or corrupt data</quote> (Noah Misch)
</para>
<para>
Previously, some cases of decryption with an incorrect key could report
other error message texts. It has been shown that such variance in
error reports can aid attackers in recovering keys from other systems.
- While it's unknown whether <filename>pgcrypto</>'s specific behaviors
+ While it's unknown whether <filename>pgcrypto</filename>'s specific behaviors
are likewise exploitable, it seems better to avoid the risk by using a
one-size-fits-all message.
(CVE-2015-3167)
<listitem>
<para>
- Fix incorrect declaration of <filename>contrib/citext</>'s
- <function>regexp_matches()</> functions (Tom Lane)
+ Fix incorrect declaration of <filename>contrib/citext</filename>'s
+ <function>regexp_matches()</function> functions (Tom Lane)
</para>
<para>
- These functions should return <type>setof text[]</>, like the core
+ These functions should return <type>setof text[]</type>, like the core
functions they are wrappers for; but they were incorrectly declared as
- returning just <type>text[]</>. This mistake had two results: first,
+ returning just <type>text[]</type>. This mistake had two results: first,
if there was no match you got a scalar null result, whereas what you
- should get is an empty set (zero rows). Second, the <literal>g</> flag
+ should get is an empty set (zero rows). Second, the <literal>g</literal> flag
was effectively ignored, since you would get only one result array even
if there were multiple matches.
</para>
<para>
While the latter behavior is clearly a bug, there might be applications
depending on the former behavior; therefore the function declarations
- will not be changed by default until <productname>PostgreSQL</> 9.5.
+ will not be changed by default until <productname>PostgreSQL</productname> 9.5.
In pre-9.5 branches, the old behavior exists in version 1.0 of
- the <literal>citext</> extension, while we have provided corrected
- declarations in version 1.1 (which is <emphasis>not</> installed by
+ the <literal>citext</literal> extension, while we have provided corrected
+ declarations in version 1.1 (which is <emphasis>not</emphasis> installed by
default). To adopt the fix in pre-9.5 branches, execute
- <literal>ALTER EXTENSION citext UPDATE TO '1.1'</> in each database in
- which <literal>citext</> is installed. (You can also <quote>update</>
+ <literal>ALTER EXTENSION citext UPDATE TO '1.1'</literal> in each database in
+ which <literal>citext</literal> is installed. (You can also <quote>update</quote>
back to 1.0 if you need to undo that.) Be aware that either update
direction will require dropping and recreating any views or rules that
- use <filename>citext</>'s <function>regexp_matches()</> functions.
+ use <filename>citext</filename>'s <function>regexp_matches()</function> functions.
</para>
</listitem>
<para>
This oversight in the planner has been observed to cause <quote>could
- not find RelOptInfo for given relids</> errors, but it seems possible
+ not find RelOptInfo for given relids</quote> errors, but it seems possible
that sometimes an incorrect query plan might get past that consistency
check and result in silently-wrong query output.
</para>
<para>
This oversight has been seen to lead to <quote>failed to join all
- relations together</> errors in queries involving <literal>LATERAL</>,
+ relations together</quote> errors in queries involving <literal>LATERAL</literal>,
and that might happen in other cases as well.
</para>
</listitem>
<listitem>
<para>
Fix possible deadlock at startup
- when <literal>max_prepared_transactions</> is too small
+ when <literal>max_prepared_transactions</literal> is too small
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Avoid <quote>cannot GetMultiXactIdMembers() during recovery</> error
+ Avoid <quote>cannot GetMultiXactIdMembers() during recovery</quote> error
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Recursively <function>fsync()</> the data directory after a crash
+ Recursively <function>fsync()</function> the data directory after a crash
(Abhijit Menon-Sen, Robert Haas)
</para>
<listitem>
<para>
- Cope with unexpected signals in <function>LockBufferForCleanup()</>
+ Cope with unexpected signals in <function>LockBufferForCleanup()</function>
(Andres Freund)
</para>
<para>
This oversight could result in spurious errors about <quote>multiple
- backends attempting to wait for pincount 1</>.
+ backends attempting to wait for pincount 1</quote>.
</para>
</listitem>
<listitem>
<para>
- Fix crash when doing <literal>COPY IN</> to a table with check
+ Fix crash when doing <literal>COPY IN</literal> to a table with check
constraints that contain whole-row references (Tom Lane)
</para>
</para>
<para>
- <command>ANALYZE</> executes index expressions many times; if there are
+ <command>ANALYZE</command> executes index expressions many times; if there are
slow functions in such an expression, it's desirable to be able to
- cancel the <command>ANALYZE</> before that loop finishes.
+ cancel the <command>ANALYZE</command> before that loop finishes.
</para>
</listitem>
<listitem>
<para>
- Ensure <structfield>tableoid</> of a foreign table is reported
- correctly when a <literal>READ COMMITTED</> recheck occurs after
- locking rows in <command>SELECT FOR UPDATE</>, <command>UPDATE</>,
- or <command>DELETE</> (Etsuro Fujita)
+ Ensure <structfield>tableoid</structfield> of a foreign table is reported
+ correctly when a <literal>READ COMMITTED</literal> recheck occurs after
+ locking rows in <command>SELECT FOR UPDATE</command>, <command>UPDATE</command>,
+ or <command>DELETE</command> (Etsuro Fujita)
</para>
</listitem>
<listitem>
<para>
- Recommend setting <literal>include_realm</> to 1 when using
+ Recommend setting <literal>include_realm</literal> to 1 when using
Kerberos/GSSAPI/SSPI authentication (Stephen Frost)
</para>
<para>
Without this, identically-named users from different realms cannot be
distinguished. For the moment this is only a documentation change, but
- it will become the default setting in <productname>PostgreSQL</> 9.5.
+ it will become the default setting in <productname>PostgreSQL</productname> 9.5.
</para>
</listitem>
<listitem>
<para>
- Remove code for matching IPv4 <filename>pg_hba.conf</> entries to
+ Remove code for matching IPv4 <filename>pg_hba.conf</filename> entries to
IPv4-in-IPv6 addresses (Tom Lane)
</para>
crashes on some systems, so let's just remove it rather than fix it.
(Had we chosen to fix it, that would make for a subtle and potentially
security-sensitive change in the effective meaning of
- IPv4 <filename>pg_hba.conf</> entries, which does not seem like a good
+ IPv4 <filename>pg_hba.conf</filename> entries, which does not seem like a good
thing to do in minor releases.)
</para>
</listitem>
<listitem>
<para>
- Report WAL flush, not insert, position in <literal>IDENTIFY_SYSTEM</>
+ Report WAL flush, not insert, position in <literal>IDENTIFY_SYSTEM</literal>
replication command (Heikki Linnakangas)
</para>
<para>
This avoids a possible startup failure
- in <application>pg_receivexlog</>.
+ in <application>pg_receivexlog</application>.
</para>
</listitem>
<para>
While shutting down service on Windows, periodically send status
updates to the Service Control Manager to prevent it from killing the
- service too soon; and ensure that <application>pg_ctl</> will wait for
+ service too soon; and ensure that <application>pg_ctl</application> will wait for
shutdown (Krystian Bigaj)
</para>
</listitem>
<listitem>
<para>
- Reduce risk of network deadlock when using <application>libpq</>'s
+ Reduce risk of network deadlock when using <application>libpq</application>'s
non-blocking mode (Heikki Linnakangas)
</para>
buffer every so often, in case the server has sent enough response data
to cause it to block on output. (A typical scenario is that the server
is sending a stream of NOTICE messages during <literal>COPY FROM
- STDIN</>.) This worked properly in the normal blocking mode, but not
- so much in non-blocking mode. We've modified <application>libpq</>
+ STDIN</literal>.) This worked properly in the normal blocking mode, but not
+ so much in non-blocking mode. We've modified <application>libpq</application>
to opportunistically drain input when it can, but a full defense
against this problem requires application cooperation: the application
should watch for socket read-ready as well as write-ready conditions,
- and be sure to call <function>PQconsumeInput()</> upon read-ready.
+ and be sure to call <function>PQconsumeInput()</function> upon read-ready.
</para>
</listitem>
<listitem>
<para>
- In <application>libpq</>, fix misparsing of empty values in URI
+ In <application>libpq</application>, fix misparsing of empty values in URI
connection strings (Thomas Fanghaenel)
</para>
</listitem>
<listitem>
<para>
- Fix array handling in <application>ecpg</> (Michael Meskes)
+ Fix array handling in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</> to sanely handle URIs and conninfo strings as
- the first parameter to <command>\connect</>
+ Fix <application>psql</application> to sanely handle URIs and conninfo strings as
+ the first parameter to <command>\connect</command>
(David Fetter, Andrew Dunstan, Álvaro Herrera)
</para>
<listitem>
<para>
- Suppress incorrect complaints from <application>psql</> on some
- platforms that it failed to write <filename>~/.psql_history</> at exit
+ Suppress incorrect complaints from <application>psql</application> on some
+ platforms that it failed to write <filename>~/.psql_history</filename> at exit
(Tom Lane)
</para>
<para>
This misbehavior was caused by a workaround for a bug in very old
- (pre-2006) versions of <application>libedit</>. We fixed it by
+ (pre-2006) versions of <application>libedit</application>. We fixed it by
removing the workaround, which will cause a similar failure to appear
- for anyone still using such versions of <application>libedit</>.
- Recommendation: upgrade that library, or use <application>libreadline</>.
+ for anyone still using such versions of <application>libedit</application>.
+ Recommendation: upgrade that library, or use <application>libreadline</application>.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</>'s rule for deciding which casts are
+ Fix <application>pg_dump</application>'s rule for deciding which casts are
system-provided casts that should not be dumped (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, fix failure to honor <literal>-Z</>
- compression level option together with <literal>-Fd</>
+ In <application>pg_dump</application>, fix failure to honor <literal>-Z</literal>
+ compression level option together with <literal>-Fd</literal>
(Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> consider foreign key relationships
+ Make <application>pg_dump</application> consider foreign key relationships
between extension configuration tables while choosing dump order
(Gilles Darold, Michael Paquier, Stephen Frost)
</para>
<listitem>
<para>
- Fix dumping of views that are just <literal>VALUES(...)</> but have
+ Fix dumping of views that are just <literal>VALUES(...)</literal> but have
column aliases (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, force timeline 1 in the new cluster
+ In <application>pg_upgrade</application>, force timeline 1 in the new cluster
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, check for improperly non-connectable
+ In <application>pg_upgrade</application>, check for improperly non-connectable
databases before proceeding
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, quote directory paths
- properly in the generated <literal>delete_old_cluster</> script
+ In <application>pg_upgrade</application>, quote directory paths
+ properly in the generated <literal>delete_old_cluster</literal> script
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, preserve database-level freezing info
+ In <application>pg_upgrade</application>, preserve database-level freezing info
properly
(Bruce Momjian)
</para>
<para>
This oversight could cause missing-clog-file errors for tables within
- the <literal>postgres</> and <literal>template1</> databases.
+ the <literal>postgres</literal> and <literal>template1</literal> databases.
</para>
</listitem>
<listitem>
<para>
- Run <application>pg_upgrade</> and <application>pg_resetxlog</> with
+ Run <application>pg_upgrade</application> and <application>pg_resetxlog</application> with
restricted privileges on Windows, so that they don't fail when run by
an administrator (Muhammad Asif Naeem)
</para>
<listitem>
<para>
- Improve handling of <function>readdir()</> failures when scanning
- directories in <application>initdb</> and <application>pg_basebackup</>
+ Improve handling of <function>readdir()</function> failures when scanning
+ directories in <application>initdb</application> and <application>pg_basebackup</application>
(Marco Nenciarini)
</para>
</listitem>
<listitem>
<para>
- Fix failure in <application>pg_receivexlog</> (Andres Freund)
+ Fix failure in <application>pg_receivexlog</application> (Andres Freund)
</para>
<para>
A patch merge mistake in 9.2.10 led to <quote>could not create archive
- status file</> errors.
+ status file</quote> errors.
</para>
</listitem>
<listitem>
<para>
- Fix slow sorting algorithm in <filename>contrib/intarray</> (Tom Lane)
+ Fix slow sorting algorithm in <filename>contrib/intarray</filename> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015d
+ Update time zone data files to <application>tzdata</application> release 2015d
for DST law changes in Egypt, Mongolia, and Palestine, plus historical
changes in Canada and Chile. Also adopt revised zone abbreviations for
the America/Adak zone (HST/HDT not HAST/HADT).
<para>
However, if you are a Windows user and are using the <quote>Norwegian
- (Bokmål)</> locale, manual action is needed after the upgrade to
- replace any <quote>Norwegian (Bokmål)_Norway</> locale names stored
- in <productname>PostgreSQL</> system catalogs with the plain-ASCII
- alias <quote>Norwegian_Norway</>. For details see
- <ulink url="http://wiki.postgresql.org/wiki/Changes_To_Norwegian_Locale"></>
+ (Bokmål)</quote> locale, manual action is needed after the upgrade to
+ replace any <quote>Norwegian (Bokmål)_Norway</quote> locale names stored
+ in <productname>PostgreSQL</productname> system catalogs with the plain-ASCII
+ alias <quote>Norwegian_Norway</quote>. For details see
+ <ulink url="http://wiki.postgresql.org/wiki/Changes_To_Norwegian_Locale"></ulink>
</para>
<para>
<listitem>
<para>
- Fix buffer overruns in <function>to_char()</>
+ Fix buffer overruns in <function>to_char()</function>
(Bruce Momjian)
</para>
<para>
- When <function>to_char()</> processes a numeric formatting template
- calling for a large number of digits, <productname>PostgreSQL</>
+ When <function>to_char()</function> processes a numeric formatting template
+ calling for a large number of digits, <productname>PostgreSQL</productname>
would read past the end of a buffer. When processing a crafted
- timestamp formatting template, <productname>PostgreSQL</> would write
+ timestamp formatting template, <productname>PostgreSQL</productname> would write
past the end of a buffer. Either case could crash the server.
We have not ruled out the possibility of attacks that lead to
privilege escalation, though they seem unlikely.
<listitem>
<para>
- Fix buffer overrun in replacement <function>*printf()</> functions
+ Fix buffer overrun in replacement <function>*printf()</function> functions
(Tom Lane)
</para>
<para>
- <productname>PostgreSQL</> includes a replacement implementation
- of <function>printf</> and related functions. This code will overrun
+ <productname>PostgreSQL</productname> includes a replacement implementation
+ of <function>printf</function> and related functions. This code will overrun
a stack buffer when formatting a floating point number (conversion
- specifiers <literal>e</>, <literal>E</>, <literal>f</>, <literal>F</>,
- <literal>g</> or <literal>G</>) with requested precision greater than
+ specifiers <literal>e</literal>, <literal>E</literal>, <literal>f</literal>, <literal>F</literal>,
+ <literal>g</literal> or <literal>G</literal>) with requested precision greater than
about 500. This will crash the server, and we have not ruled out the
possibility of attacks that lead to privilege escalation.
A database user can trigger such a buffer overrun through
- the <function>to_char()</> SQL function. While that is the only
- affected core <productname>PostgreSQL</> functionality, extension
+ the <function>to_char()</function> SQL function. While that is the only
+ affected core <productname>PostgreSQL</productname> functionality, extension
modules that use printf-family functions may be at risk as well.
</para>
<para>
- This issue primarily affects <productname>PostgreSQL</> on Windows.
- <productname>PostgreSQL</> uses the system implementation of these
+ This issue primarily affects <productname>PostgreSQL</productname> on Windows.
+ <productname>PostgreSQL</productname> uses the system implementation of these
functions where adequate, which it is on other modern platforms.
(CVE-2015-0242)
</para>
<listitem>
<para>
- Fix buffer overruns in <filename>contrib/pgcrypto</>
+ Fix buffer overruns in <filename>contrib/pgcrypto</filename>
(Marko Tiikkaja, Noah Misch)
</para>
<para>
- Errors in memory size tracking within the <filename>pgcrypto</>
+ Errors in memory size tracking within the <filename>pgcrypto</filename>
module permitted stack buffer overruns and improper dependence on the
contents of uninitialized memory. The buffer overrun cases can
crash the server, and we have not ruled out the possibility of
<para>
Some server error messages show the values of columns that violate
a constraint, such as a unique constraint. If the user does not have
- <literal>SELECT</> privilege on all columns of the table, this could
+ <literal>SELECT</literal> privilege on all columns of the table, this could
mean exposing values that the user should not be able to see. Adjust
the code so that values are displayed only when they came from the SQL
command or could be selected by the user.
<listitem>
<para>
- Cope with the Windows locale named <quote>Norwegian (Bokmål)</>
+ Cope with the Windows locale named <quote>Norwegian (Bokmål)</quote>
(Heikki Linnakangas)
</para>
<para>
Non-ASCII locale names are problematic since it's not clear what
encoding they should be represented in. Map the troublesome locale
- name to a plain-ASCII alias, <quote>Norwegian_Norway</>.
+ name to a plain-ASCII alias, <quote>Norwegian_Norway</quote>.
</para>
</listitem>
<listitem>
<para>
Avoid possible data corruption if <command>ALTER DATABASE SET
- TABLESPACE</> is used to move a database to a new tablespace and then
+ TABLESPACE</command> is used to move a database to a new tablespace and then
shortly later move it back to its original tablespace (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Avoid corrupting tables when <command>ANALYZE</> inside a transaction
+ Avoid corrupting tables when <command>ANALYZE</command> inside a transaction
is rolled back (Andres Freund, Tom Lane, Michael Paquier)
</para>
<para>
If the failing transaction had earlier removed the last index, rule, or
trigger from the table, the table would be left in a corrupted state
- with the relevant <structname>pg_class</> flags not set though they
+ with the relevant <structname>pg_class</structname> flags not set though they
should be.
</para>
</listitem>
<listitem>
<para>
Ensure that unlogged tables are copied correctly
- during <command>CREATE DATABASE</> or <command>ALTER DATABASE SET
- TABLESPACE</> (Pavan Deolasee, Andres Freund)
+ during <command>CREATE DATABASE</command> or <command>ALTER DATABASE SET
+ TABLESPACE</command> (Pavan Deolasee, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix <command>DROP</>'s dependency searching to correctly handle the
+ Fix <command>DROP</command>'s dependency searching to correctly handle the
case where a table column is recursively visited before its table
(Petr Jelinek, Tom Lane)
</para>
<para>
This case is only known to arise when an extension creates both a
datatype and a table using that datatype. The faulty code might
- refuse a <command>DROP EXTENSION</> unless <literal>CASCADE</> is
+ refuse a <command>DROP EXTENSION</command> unless <literal>CASCADE</literal> is
specified, which should not be required.
</para>
</listitem>
</para>
<para>
- In <literal>READ COMMITTED</> mode, queries that lock or update
+ In <literal>READ COMMITTED</literal> mode, queries that lock or update
recently-updated rows could crash as a result of this bug.
</para>
</listitem>
<listitem>
<para>
- Fix planning of <command>SELECT FOR UPDATE</> when using a partial
+ Fix planning of <command>SELECT FOR UPDATE</command> when using a partial
index on a child table (Kyotaro Horiguchi)
</para>
<para>
- In <literal>READ COMMITTED</> mode, <command>SELECT FOR UPDATE</> must
- also recheck the partial index's <literal>WHERE</> condition when
+ In <literal>READ COMMITTED</literal> mode, <command>SELECT FOR UPDATE</command> must
+ also recheck the partial index's <literal>WHERE</literal> condition when
rechecking a recently-updated row to see if it still satisfies the
- query's <literal>WHERE</> condition. This requirement was missed if the
+ query's <literal>WHERE</literal> condition. This requirement was missed if the
index belonged to an inheritance child table, so that it was possible
to incorrectly return rows that no longer satisfy the query condition.
</para>
<listitem>
<para>
- Fix corner case wherein <command>SELECT FOR UPDATE</> could return a row
+ Fix corner case wherein <command>SELECT FOR UPDATE</command> could return a row
twice, and possibly miss returning other rows (Tom Lane)
</para>
<para>
- In <literal>READ COMMITTED</> mode, a <command>SELECT FOR UPDATE</>
+ In <literal>READ COMMITTED</literal> mode, a <command>SELECT FOR UPDATE</command>
that is scanning an inheritance tree could incorrectly return a row
from a prior child table instead of the one it should return from a
later child table.
<listitem>
<para>
Reject duplicate column names in the referenced-columns list of
- a <literal>FOREIGN KEY</> declaration (David Rowley)
+ a <literal>FOREIGN KEY</literal> declaration (David Rowley)
</para>
<para>
<listitem>
<para>
- Fix bugs in raising a <type>numeric</> value to a large integral power
+ Fix bugs in raising a <type>numeric</type> value to a large integral power
(Tom Lane)
</para>
<listitem>
<para>
- In <function>numeric_recv()</>, truncate away any fractional digits
- that would be hidden according to the value's <literal>dscale</> field
+ In <function>numeric_recv()</function>, truncate away any fractional digits
+ that would be hidden according to the value's <literal>dscale</literal> field
(Tom Lane)
</para>
<para>
- A <type>numeric</> value's display scale (<literal>dscale</>) should
+ A <type>numeric</type> value's display scale (<literal>dscale</literal>) should
never be less than the number of nonzero fractional digits; but
apparently there's at least one broken client application that
- transmits binary <type>numeric</> values in which that's true.
+ transmits binary <type>numeric</type> values in which that's true.
This leads to strange behavior since the extra digits are taken into
account by arithmetic operations even though they aren't printed.
- The least risky fix seems to be to truncate away such <quote>hidden</>
+ The least risky fix seems to be to truncate away such <quote>hidden</quote>
digits on receipt, so that the value is indeed what it prints as.
</para>
</listitem>
<para>
Matching would often fail when the number of allowed iterations is
- limited by a <literal>?</> quantifier or a bound expression.
+ limited by a <literal>?</literal> quantifier or a bound expression.
</para>
</listitem>
<listitem>
<para>
- Fix bugs in <type>tsquery</> <literal>@></> <type>tsquery</>
+ Fix bugs in <type>tsquery</type> <literal>@></literal> <type>tsquery</type>
operator (Heikki Linnakangas)
</para>
<listitem>
<para>
- Fix namespace handling in <function>xpath()</> (Ali Akbar)
+ Fix namespace handling in <function>xpath()</function> (Ali Akbar)
</para>
<para>
- Previously, the <type>xml</> value resulting from
- an <function>xpath()</> call would not have namespace declarations if
+ Previously, the <type>xml</type> value resulting from
+ an <function>xpath()</function> call would not have namespace declarations if
the namespace declarations were attached to an ancestor element in the
- input <type>xml</> value, rather than to the specific element being
+ input <type>xml</type> value, rather than to the specific element being
returned. Propagate the ancestral declaration so that the result is
correct when considered in isolation.
</para>
</para>
<para>
- In some contexts, constructs like <literal>row_to_json(tab.*)</> may
+ In some contexts, constructs like <literal>row_to_json(tab.*)</literal> may
not produce the expected column names. This is fixed properly as of
9.4; in older branches, just ensure that we produce some nonempty
name. (In some cases this will be the underlying table's column name
<listitem>
<para>
Fix mishandling of system columns,
- particularly <structfield>tableoid</>, in FDW queries (Etsuro Fujita)
+ particularly <structfield>tableoid</structfield>, in FDW queries (Etsuro Fujita)
</para>
</listitem>
<listitem>
<para>
- Avoid doing <literal><replaceable>indexed_column</> = ANY
- (<replaceable>array</>)</literal> as an index qualifier if that leads
+ Avoid doing <literal><replaceable>indexed_column</replaceable> = ANY
+ (<replaceable>array</replaceable>)</literal> as an index qualifier if that leads
to an inferior plan (Andrew Gierth)
</para>
<para>
- In some cases, <literal>= ANY</> conditions applied to non-first index
+ In some cases, <literal>= ANY</literal> conditions applied to non-first index
columns would be done as index conditions even though it would be
better to use them as simple filter conditions.
</para>
<listitem>
<para>
Fix planner problems with nested append relations, such as inherited
- tables within <literal>UNION ALL</> subqueries (Tom Lane)
+ tables within <literal>UNION ALL</literal> subqueries (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Exempt tables that have per-table <varname>cost_limit</>
- and/or <varname>cost_delay</> settings from autovacuum's global cost
+ Exempt tables that have per-table <varname>cost_limit</varname>
+ and/or <varname>cost_delay</varname> settings from autovacuum's global cost
balancing rules (Álvaro Herrera)
</para>
the target database, if they met the usual thresholds for
autovacuuming. This is at best pretty unexpected; at worst it delays
response to the wraparound threat. Fix it so that if autovacuum is
- turned off, workers <emphasis>only</> do anti-wraparound vacuums and
+ turned off, workers <emphasis>only</emphasis> do anti-wraparound vacuums and
not any other work.
</para>
</listitem>
<listitem>
<para>
Fix several cases where recovery logic improperly ignored WAL records
- for <literal>COMMIT/ABORT PREPARED</> (Heikki Linnakangas)
+ for <literal>COMMIT/ABORT PREPARED</literal> (Heikki Linnakangas)
</para>
<para>
The most notable oversight was
- that <varname>recovery_target_xid</> could not be used to stop at
+ that <varname>recovery_target_xid</varname> could not be used to stop at
a two-phase commit.
</para>
</listitem>
<listitem>
<para>
- Avoid creating unnecessary <filename>.ready</> marker files for
+ Avoid creating unnecessary <filename>.ready</filename> marker files for
timeline history files (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
Fix possible null pointer dereference when an empty prepared statement
- is used and the <varname>log_statement</> setting is <literal>mod</>
- or <literal>ddl</> (Fujii Masao)
+ is used and the <varname>log_statement</varname> setting is <literal>mod</literal>
+ or <literal>ddl</literal> (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Change <quote>pgstat wait timeout</> warning message to be LOG level,
+ Change <quote>pgstat wait timeout</quote> warning message to be LOG level,
and rephrase it to be more understandable (Tom Lane)
</para>
case, but it occurs often enough on our slower buildfarm members to be
a nuisance. Reduce it to LOG level, and expend a bit more effort on
the wording: it now reads <quote>using stale statistics instead of
- current ones because stats collector is not responding</>.
+ current ones because stats collector is not responding</quote>.
</para>
</listitem>
<listitem>
<para>
- Warn if macOS's <function>setlocale()</> starts an unwanted extra
+ Warn if macOS's <function>setlocale()</function> starts an unwanted extra
thread inside the postmaster (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Fix processing of repeated <literal>dbname</> parameters
- in <function>PQconnectdbParams()</> (Alex Shulgin)
+ Fix processing of repeated <literal>dbname</literal> parameters
+ in <function>PQconnectdbParams()</function> (Alex Shulgin)
</para>
<para>
Unexpected behavior ensued if the first occurrence
- of <literal>dbname</> contained a connection string or URI to be
+ of <literal>dbname</literal> contained a connection string or URI to be
expanded.
</para>
</listitem>
<listitem>
<para>
- Ensure that <application>libpq</> reports a suitable error message on
+ Ensure that <application>libpq</application> reports a suitable error message on
unexpected socket EOF (Marko Tiikkaja, Tom Lane)
</para>
<para>
- Depending on kernel behavior, <application>libpq</> might return an
+ Depending on kernel behavior, <application>libpq</application> might return an
empty error string rather than something useful when the server
unexpectedly closed the socket.
</para>
<listitem>
<para>
- Clear any old error message during <function>PQreset()</>
+ Clear any old error message during <function>PQreset()</function>
(Heikki Linnakangas)
</para>
<para>
- If <function>PQreset()</> is called repeatedly, and the connection
+ If <function>PQreset()</function> is called repeatedly, and the connection
cannot be re-established, error messages from the failed connection
- attempts kept accumulating in the <structname>PGconn</>'s error
+ attempts kept accumulating in the <structname>PGconn</structname>'s error
string.
</para>
</listitem>
<listitem>
<para>
Properly handle out-of-memory conditions while parsing connection
- options in <application>libpq</> (Alex Shulgin, Heikki Linnakangas)
+ options in <application>libpq</application> (Alex Shulgin, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Fix array overrun in <application>ecpg</>'s version
- of <function>ParseDateTime()</> (Michael Paquier)
+ Fix array overrun in <application>ecpg</application>'s version
+ of <function>ParseDateTime()</function> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- In <application>initdb</>, give a clearer error message if a password
+ In <application>initdb</application>, give a clearer error message if a password
file is specified but is empty (Mats Erik Andersson)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s <command>\s</> command to work nicely with
+ Fix <application>psql</application>'s <command>\s</command> command to work nicely with
libedit, and add pager support (Stepan Rutz, Tom Lane)
</para>
<para>
- When using libedit rather than readline, <command>\s</> printed the
+ When using libedit rather than readline, <command>\s</command> printed the
command history in a fairly unreadable encoded format, and on recent
libedit versions might fail altogether. Fix that by printing the
history ourselves rather than having the library do it. A pleasant
<para>
This patch also fixes a bug that caused newline encoding to be applied
inconsistently when saving the command history with libedit.
- Multiline history entries written by older <application>psql</>
+ Multiline history entries written by older <application>psql</application>
versions will be read cleanly with this patch, but perhaps not
vice versa, depending on the exact libedit versions involved.
</para>
<listitem>
<para>
- Improve consistency of parsing of <application>psql</>'s special
+ Improve consistency of parsing of <application>psql</application>'s special
variables (Tom Lane)
</para>
<para>
- Allow variant spellings of <literal>on</> and <literal>off</> (such
- as <literal>1</>/<literal>0</>) for <literal>ECHO_HIDDEN</>
- and <literal>ON_ERROR_ROLLBACK</>. Report a warning for unrecognized
- values for <literal>COMP_KEYWORD_CASE</>, <literal>ECHO</>,
- <literal>ECHO_HIDDEN</>, <literal>HISTCONTROL</>,
- <literal>ON_ERROR_ROLLBACK</>, and <literal>VERBOSITY</>. Recognize
+ Allow variant spellings of <literal>on</literal> and <literal>off</literal> (such
+ as <literal>1</literal>/<literal>0</literal>) for <literal>ECHO_HIDDEN</literal>
+ and <literal>ON_ERROR_ROLLBACK</literal>. Report a warning for unrecognized
+ values for <literal>COMP_KEYWORD_CASE</literal>, <literal>ECHO</literal>,
+ <literal>ECHO_HIDDEN</literal>, <literal>HISTCONTROL</literal>,
+ <literal>ON_ERROR_ROLLBACK</literal>, and <literal>VERBOSITY</literal>. Recognize
all values for all these variables case-insensitively; previously
there was a mishmash of case-sensitive and case-insensitive behaviors.
</para>
<listitem>
<para>
- Fix <application>psql</>'s expanded-mode display to work
- consistently when using <literal>border</> = 3
- and <literal>linestyle</> = <literal>ascii</> or <literal>unicode</>
+ Fix <application>psql</application>'s expanded-mode display to work
+ consistently when using <literal>border</literal> = 3
+ and <literal>linestyle</literal> = <literal>ascii</literal> or <literal>unicode</literal>
(Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- Improve performance of <application>pg_dump</> when the database
+ Improve performance of <application>pg_dump</application> when the database
contains many instances of multiple dependency paths between the same
two objects (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_dumpall</> to restore its ability to dump from
+ Fix <application>pg_dumpall</application> to restore its ability to dump from
pre-8.1 servers (Gilles Darold)
</para>
</listitem>
<listitem>
<para>
- Fix core dump in <literal>pg_dump --binary-upgrade</> on zero-column
+ Fix core dump in <literal>pg_dump --binary-upgrade</literal> on zero-column
composite type (Rushabh Lathia)
</para>
</listitem>
<listitem>
<para>
- Prevent WAL files created by <literal>pg_basebackup -x/-X</> from
+ Prevent WAL files created by <literal>pg_basebackup -x/-X</literal> from
being archived again when the standby is promoted (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix failure of <filename>contrib/auto_explain</> to print per-node
- timing information when doing <command>EXPLAIN ANALYZE</> (Tom Lane)
+ Fix failure of <filename>contrib/auto_explain</filename> to print per-node
+ timing information when doing <command>EXPLAIN ANALYZE</command> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix upgrade-from-unpackaged script for <filename>contrib/citext</>
+ Fix upgrade-from-unpackaged script for <filename>contrib/citext</filename>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix block number checking
- in <filename>contrib/pageinspect</>'s <function>get_raw_page()</>
+ in <filename>contrib/pageinspect</filename>'s <function>get_raw_page()</function>
(Tom Lane)
</para>
<listitem>
<para>
- Fix <filename>contrib/pgcrypto</>'s <function>pgp_sym_decrypt()</>
+ Fix <filename>contrib/pgcrypto</filename>'s <function>pgp_sym_decrypt()</function>
to not fail on messages whose length is 6 less than a power of 2
(Marko Tiikkaja)
</para>
<listitem>
<para>
- Fix file descriptor leak in <filename>contrib/pg_test_fsync</>
+ Fix file descriptor leak in <filename>contrib/pg_test_fsync</filename>
(Jeff Janes)
</para>
<listitem>
<para>
Handle unexpected query results, especially NULLs, safely in
- <filename>contrib/tablefunc</>'s <function>connectby()</>
+ <filename>contrib/tablefunc</filename>'s <function>connectby()</function>
(Michael Paquier)
</para>
<para>
- <function>connectby()</> previously crashed if it encountered a NULL
+ <function>connectby()</function> previously crashed if it encountered a NULL
key value. It now prints that row but doesn't recurse further.
</para>
</listitem>
<listitem>
<para>
- Avoid a possible crash in <filename>contrib/xml2</>'s
- <function>xslt_process()</> (Mark Simonetti)
+ Avoid a possible crash in <filename>contrib/xml2</filename>'s
+ <function>xslt_process()</function> (Mark Simonetti)
</para>
<para>
- <application>libxslt</> seems to have an undocumented dependency on
+ <application>libxslt</application> seems to have an undocumented dependency on
the order in which resources are freed; reorder our calls to avoid a
crash.
</para>
<listitem>
<para>
- Mark some <filename>contrib</> I/O functions with correct volatility
+ Mark some <filename>contrib</filename> I/O functions with correct volatility
properties (Tom Lane)
</para>
<para>
With OpenLDAP versions 2.4.24 through 2.4.31,
- inclusive, <productname>PostgreSQL</> backends can crash at exit.
- Raise a warning during <application>configure</> based on the
+ inclusive, <productname>PostgreSQL</productname> backends can crash at exit.
+ Raise a warning during <application>configure</application> based on the
compile-time OpenLDAP version number, and test the crashing scenario
- in the <filename>contrib/dblink</> regression test.
+ in the <filename>contrib/dblink</filename> regression test.
</para>
</listitem>
<listitem>
<para>
- In non-MSVC Windows builds, ensure <filename>libpq.dll</> is installed
+ In non-MSVC Windows builds, ensure <filename>libpq.dll</filename> is installed
with execute permissions (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_regress</> remove any temporary installation it
+ Make <application>pg_regress</application> remove any temporary installation it
created upon successful exit (Tom Lane)
</para>
<para>
This results in a very substantial reduction in disk space usage
- during <literal>make check-world</>, since that sequence involves
+ during <literal>make check-world</literal>, since that sequence involves
creation of numerous temporary installations.
</para>
</listitem>
</para>
<para>
- Previously, <productname>PostgreSQL</> assumed that the UTC offset
- associated with a time zone abbreviation (such as <literal>EST</>)
+ Previously, <productname>PostgreSQL</productname> assumed that the UTC offset
+ associated with a time zone abbreviation (such as <literal>EST</literal>)
never changes in the usage of any particular locale. However this
assumption fails in the real world, so introduce the ability for a
zone abbreviation to represent a UTC offset that sometimes changes.
Update the zone abbreviation definition files to make use of this
feature in timezone locales that have changed the UTC offset of their
abbreviations since 1970 (according to the IANA timezone database).
- In such timezones, <productname>PostgreSQL</> will now associate the
+ In such timezones, <productname>PostgreSQL</productname> will now associate the
correct UTC offset with the abbreviation depending on the given date.
</para>
</listitem>
<para>
Add CST (China Standard Time) to our lists.
- Remove references to ADT as <quote>Arabia Daylight Time</>, an
+ Remove references to ADT as <quote>Arabia Daylight Time</quote>, an
abbreviation that's been out of use since 2007; therefore, claiming
- there is a conflict with <quote>Atlantic Daylight Time</> doesn't seem
+ there is a conflict with <quote>Atlantic Daylight Time</quote> doesn't seem
especially helpful.
Fix entirely incorrect GMT offsets for CKT (Cook Islands), FJT, and FJST
(Fiji); we didn't even have them on the proper side of the date line.
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015a.
+ Update time zone data files to <application>tzdata</application> release 2015a.
</para>
<para>
The IANA timezone database has adopted abbreviations of the form
- <literal>A<replaceable>x</>ST</literal>/<literal>A<replaceable>x</>DT</literal>
+ <literal>A<replaceable>x</replaceable>ST</literal>/<literal>A<replaceable>x</replaceable>DT</literal>
for all Australian time zones, reflecting what they believe to be
current majority practice Down Under. These names do not conflict
with usage elsewhere (other than ACST for Acre Summer Time, which has
been in disuse since 1994). Accordingly, adopt these names into
- our <quote>Default</> timezone abbreviation set.
- The <quote>Australia</> abbreviation set now contains only CST, EAST,
+ our <quote>Default</quote> timezone abbreviation set.
+ The <quote>Australia</quote> abbreviation set now contains only CST, EAST,
EST, SAST, SAT, and WST, all of which are thought to be mostly
historical usage. Note that SAST has also been changed to be South
- Africa Standard Time in the <quote>Default</> abbreviation set.
+ Africa Standard Time in the <quote>Default</quote> abbreviation set.
</para>
<para>
<listitem>
<para>
- Correctly initialize padding bytes in <filename>contrib/btree_gist</>
- indexes on <type>bit</> columns (Heikki Linnakangas)
+ Correctly initialize padding bytes in <filename>contrib/btree_gist</filename>
+ indexes on <type>bit</type> columns (Heikki Linnakangas)
</para>
<para>
This error could result in incorrect query results due to values that
should compare equal not being seen as equal.
- Users with GiST indexes on <type>bit</> or <type>bit varying</>
- columns should <command>REINDEX</> those indexes after installing this
+ Users with GiST indexes on <type>bit</type> or <type>bit varying</type>
+ columns should <command>REINDEX</command> those indexes after installing this
update.
</para>
</listitem>
<listitem>
<para>
Fix possibly-incorrect cache invalidation during nested calls
- to <function>ReceiveSharedInvalidMessages</> (Andres Freund)
+ to <function>ReceiveSharedInvalidMessages</function> (Andres Freund)
</para>
</listitem>
<para>
This oversight could result in <quote>variable not found in subplan
- target lists</> errors, or in silently wrong query results.
+ target lists</quote> errors, or in silently wrong query results.
</para>
</listitem>
<listitem>
<para>
- Fix <quote>could not find pathkey item to sort</> planner failures
- with <literal>UNION ALL</> over subqueries reading from tables with
+ Fix <quote>could not find pathkey item to sort</quote> planner failures
+ with <literal>UNION ALL</literal> over subqueries reading from tables with
inheritance children (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve planner to drop constant-NULL inputs
- of <literal>AND</>/<literal>OR</> when possible (Tom Lane)
+ of <literal>AND</literal>/<literal>OR</literal> when possible (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix identification of input type category in <function>to_json()</>
+ Fix identification of input type category in <function>to_json()</function>
and friends (Tom Lane)
</para>
<para>
- This is known to have led to inadequate quoting of <type>money</>
- fields in the <type>JSON</> result, and there may have been wrong
+ This is known to have led to inadequate quoting of <type>money</type>
+ fields in the <type>JSON</type> result, and there may have been wrong
results for other data types as well.
</para>
</listitem>
This corrects cases where TOAST pointers could be copied into other
tables without being dereferenced. If the original data is later
deleted, it would lead to errors like <quote>missing chunk number 0
- for toast value ...</> when the now-dangling pointer is used.
+ for toast value ...</quote> when the now-dangling pointer is used.
</para>
</listitem>
<listitem>
<para>
- Fix <quote>record type has not been registered</> failures with
+ Fix <quote>record type has not been registered</quote> failures with
whole-row references to the output of Append plan nodes (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix query-lifespan memory leak while evaluating the arguments for a
- function in <literal>FROM</> (Tom Lane)
+ function in <literal>FROM</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix data encoding error in <filename>hungarian.stop</> (Tom Lane)
+ Fix data encoding error in <filename>hungarian.stop</filename> (Tom Lane)
</para>
</listitem>
<para>
This could cause problems (at least spurious warnings, and at worst an
- infinite loop) if <command>CREATE INDEX</> or <command>CLUSTER</> were
+ infinite loop) if <command>CREATE INDEX</command> or <command>CLUSTER</command> were
done later in the same transaction.
</para>
</listitem>
<listitem>
<para>
- Clear <structname>pg_stat_activity</>.<structfield>xact_start</>
- during <command>PREPARE TRANSACTION</> (Andres Freund)
+ Clear <structname>pg_stat_activity</structname>.<structfield>xact_start</structfield>
+ during <command>PREPARE TRANSACTION</command> (Andres Freund)
</para>
<para>
- After the <command>PREPARE</>, the originating session is no longer in
+ After the <command>PREPARE</command>, the originating session is no longer in
a transaction, so it should not continue to display a transaction
start time.
</para>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to not fail for text search objects
+ Fix <command>REASSIGN OWNED</command> to not fail for text search objects
(Álvaro Herrera)
</para>
</listitem>
<para>
This ensures that the postmaster will properly clean up after itself
- if, for example, it receives <systemitem>SIGINT</> while still
+ if, for example, it receives <systemitem>SIGINT</systemitem> while still
starting up.
</para>
</listitem>
<listitem>
<para>
- Fix client host name lookup when processing <filename>pg_hba.conf</>
+ Fix client host name lookup when processing <filename>pg_hba.conf</filename>
entries that specify host names instead of IP addresses (Tom Lane)
</para>
<listitem>
<para>
- Allow the root user to use <literal>postgres -C variable</> and
- <literal>postgres --describe-config</> (MauMau)
+ Allow the root user to use <literal>postgres -C variable</literal> and
+ <literal>postgres --describe-config</literal> (MauMau)
</para>
<para>
The prohibition on starting the server as root does not need to extend
to these operations, and relaxing it prevents failure
- of <application>pg_ctl</> in some scenarios.
+ of <application>pg_ctl</application> in some scenarios.
</para>
</listitem>
<listitem>
<para>
Secure Unix-domain sockets of temporary postmasters started during
- <literal>make check</> (Noah Misch)
+ <literal>make check</literal> (Noah Misch)
</para>
<para>
the operating-system user running the test, as we previously noted in
CVE-2014-0067. This change defends against that risk by placing the
server's socket in a temporary, mode 0700 subdirectory
- of <filename>/tmp</>. The hazard remains however on platforms where
+ of <filename>/tmp</filename>. The hazard remains however on platforms where
Unix sockets are not supported, notably Windows, because then the
temporary postmaster must accept local TCP connections.
</para>
<para>
A useful side effect of this change is to simplify
- <literal>make check</> testing in builds that
- override <literal>DEFAULT_PGSOCKET_DIR</>. Popular non-default values
- like <filename>/var/run/postgresql</> are often not writable by the
+ <literal>make check</literal> testing in builds that
+ override <literal>DEFAULT_PGSOCKET_DIR</literal>. Popular non-default values
+ like <filename>/var/run/postgresql</filename> are often not writable by the
build user, requiring workarounds that will no longer be necessary.
</para>
</listitem>
</para>
<para>
- This oversight could cause <application>initdb</>
- and <application>pg_upgrade</> to fail on Windows, if the installation
- path contained both spaces and <literal>@</> signs.
+ This oversight could cause <application>initdb</application>
+ and <application>pg_upgrade</application> to fail on Windows, if the installation
+ path contained both spaces and <literal>@</literal> signs.
</para>
</listitem>
<listitem>
<para>
- Fix linking of <application>libpython</> on macOS (Tom Lane)
+ Fix linking of <application>libpython</application> on macOS (Tom Lane)
</para>
<para>
<listitem>
<para>
- Avoid buffer bloat in <application>libpq</> when the server
+ Avoid buffer bloat in <application>libpq</application> when the server
consistently sends data faster than the client can absorb it
(Shin-ichi Morita, Tom Lane)
</para>
<para>
- <application>libpq</> could be coerced into enlarging its input buffer
+ <application>libpq</application> could be coerced into enlarging its input buffer
until it runs out of memory (which would be reported misleadingly
- as <quote>lost synchronization with server</>). Under ordinary
+ as <quote>lost synchronization with server</quote>). Under ordinary
circumstances it's quite far-fetched that data could be continuously
- transmitted more quickly than the <function>recv()</> loop can
+ transmitted more quickly than the <function>recv()</function> loop can
absorb it, but this has been observed when the client is artificially
slowed by scheduler constraints.
</para>
<listitem>
<para>
- Ensure that LDAP lookup attempts in <application>libpq</> time out as
+ Ensure that LDAP lookup attempts in <application>libpq</application> time out as
intended (Laurenz Albe)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</> to do the right thing when an array
- of <type>char *</> is the target for a FETCH statement returning more
+ Fix <application>ecpg</application> to do the right thing when an array
+ of <type>char *</type> is the target for a FETCH statement returning more
than one row, as well as some other array-handling fixes
(Ashutosh Bapat)
</para>
<listitem>
<para>
- Fix <application>pg_restore</>'s processing of old-style large object
+ Fix <application>pg_restore</application>'s processing of old-style large object
comments (Tom Lane)
</para>
<para>
A direct-to-database restore from an archive file generated by a
- pre-9.0 version of <application>pg_dump</> would usually fail if the
+ pre-9.0 version of <application>pg_dump</application> would usually fail if the
archive contained more than a few comments for large objects.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> for cases where the new server creates
+ Fix <application>pg_upgrade</application> for cases where the new server creates
a TOAST table but the old version did not (Bruce Momjian)
</para>
<para>
- This rare situation would manifest as <quote>relation OID mismatch</>
+ This rare situation would manifest as <quote>relation OID mismatch</quote>
errors.
</para>
</listitem>
<listitem>
<para>
- Prevent <filename>contrib/auto_explain</> from changing the output of
- a user's <command>EXPLAIN</> (Tom Lane)
+ Prevent <filename>contrib/auto_explain</filename> from changing the output of
+ a user's <command>EXPLAIN</command> (Tom Lane)
</para>
<para>
- If <filename>auto_explain</> is active, it could cause
- an <literal>EXPLAIN (ANALYZE, TIMING OFF)</> command to nonetheless
+ If <filename>auto_explain</filename> is active, it could cause
+ an <literal>EXPLAIN (ANALYZE, TIMING OFF)</literal> command to nonetheless
print timing information.
</para>
</listitem>
<listitem>
<para>
- Fix query-lifespan memory leak in <filename>contrib/dblink</>
+ Fix query-lifespan memory leak in <filename>contrib/dblink</filename>
(MauMau, Joe Conway)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/pgcrypto</> functions, ensure sensitive
+ In <filename>contrib/pgcrypto</filename> functions, ensure sensitive
information is cleared from stack variables before returning
(Marko Kreen)
</para>
<listitem>
<para>
Prevent use of already-freed memory in
- <filename>contrib/pgstattuple</>'s <function>pgstat_heap()</>
+ <filename>contrib/pgstattuple</filename>'s <function>pgstat_heap()</function>
(Noah Misch)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/uuid-ossp</>, cache the state of the OSSP UUID
+ In <filename>contrib/uuid-ossp</filename>, cache the state of the OSSP UUID
library across calls (Tom Lane)
</para>
<para>
This improves the efficiency of UUID generation and reduces the amount
- of entropy drawn from <filename>/dev/urandom</>, on platforms that
+ of entropy drawn from <filename>/dev/urandom</filename>, on platforms that
have that.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2014e
+ Update time zone data files to <application>tzdata</application> release 2014e
for DST law changes in Crimea, Egypt, and Morocco.
</para>
</listitem>
<listitem>
<para>
Avoid race condition in checking transaction commit status during
- receipt of a <command>NOTIFY</> message (Marko Tiikkaja)
+ receipt of a <command>NOTIFY</command> message (Marko Tiikkaja)
</para>
<para>
<listitem>
<para>
- Remove incorrect code that tried to allow <literal>OVERLAPS</> with
+ Remove incorrect code that tried to allow <literal>OVERLAPS</literal> with
single-element row arguments (Joshua Yanovski)
</para>
<listitem>
<para>
- Avoid getting more than <literal>AccessShareLock</> when de-parsing a
+ Avoid getting more than <literal>AccessShareLock</literal> when de-parsing a
rule or view (Dean Rasheed)
</para>
<para>
- This oversight resulted in <application>pg_dump</> unexpectedly
- acquiring <literal>RowExclusiveLock</> locks on tables mentioned as
- the targets of <literal>INSERT</>/<literal>UPDATE</>/<literal>DELETE</>
+ This oversight resulted in <application>pg_dump</application> unexpectedly
+ acquiring <literal>RowExclusiveLock</literal> locks on tables mentioned as
+ the targets of <literal>INSERT</literal>/<literal>UPDATE</literal>/<literal>DELETE</literal>
commands in rules. While usually harmless, that could interfere with
concurrent transactions that tried to acquire, for example,
- <literal>ShareLock</> on those tables.
+ <literal>ShareLock</literal> on those tables.
</para>
</listitem>
<listitem>
<para>
- Fix <application>walsender</>'s failure to shut down cleanly when client
- is <application>pg_receivexlog</> (Fujii Masao)
+ Fix <application>walsender</application>'s failure to shut down cleanly when client
+ is <application>pg_receivexlog</application> (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Prevent interrupts while reporting non-<literal>ERROR</> messages
+ Prevent interrupts while reporting non-<literal>ERROR</literal> messages
(Tom Lane)
</para>
<para>
This guards against rare server-process freezeups due to recursive
- entry to <function>syslog()</>, and perhaps other related problems.
+ entry to <function>syslog()</function>, and perhaps other related problems.
</para>
</listitem>
<listitem>
<para>
- Fix tracking of <application>psql</> script line numbers
- during <literal>\copy</> from out-of-line data
+ Fix tracking of <application>psql</application> script line numbers
+ during <literal>\copy</literal> from out-of-line data
(Kumar Rajeev Rastogi, Amit Khandekar)
</para>
<para>
- <literal>\copy ... from</> incremented the script file line number
+ <literal>\copy ... from</literal> incremented the script file line number
for each data line, even if the data was not coming from the script
file. This mistake resulted in wrong line numbers being reported for
any errors occurring later in the same script file.
<listitem>
<para>
- Prevent intermittent <quote>could not reserve shared memory region</>
+ Prevent intermittent <quote>could not reserve shared memory region</quote>
failures on recent Windows versions (MauMau)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2014a
+ Update time zone data files to <application>tzdata</application> release 2014a
for DST law changes in Fiji and Turkey, plus historical changes in
Israel and Ukraine.
</para>
<listitem>
<para>
- Shore up <literal>GRANT ... WITH ADMIN OPTION</> restrictions
+ Shore up <literal>GRANT ... WITH ADMIN OPTION</literal> restrictions
(Noah Misch)
</para>
<para>
- Granting a role without <literal>ADMIN OPTION</> is supposed to
+ Granting a role without <literal>ADMIN OPTION</literal> is supposed to
prevent the grantee from adding or removing members from the granted
role, but this restriction was easily bypassed by doing <literal>SET
- ROLE</> first. The security impact is mostly that a role member can
+ ROLE</literal> first. The security impact is mostly that a role member can
revoke the access of others, contrary to the wishes of his grantor.
Unapproved role member additions are a lesser concern, since an
uncooperative role member could provide most of his rights to others
- anyway by creating views or <literal>SECURITY DEFINER</> functions.
+ anyway by creating views or <literal>SECURITY DEFINER</literal> functions.
(CVE-2014-0060)
</para>
</listitem>
<para>
The primary role of PL validator functions is to be called implicitly
- during <command>CREATE FUNCTION</>, but they are also normal SQL
+ during <command>CREATE FUNCTION</command>, but they are also normal SQL
functions that a user can call explicitly. Calling a validator on
a function actually written in some other language was not checked
for and could be exploited for privilege-escalation purposes.
<para>
If the name lookups come to different conclusions due to concurrent
activity, we might perform some parts of the DDL on a different table
- than other parts. At least in the case of <command>CREATE INDEX</>,
+ than other parts. At least in the case of <command>CREATE INDEX</command>,
this can be used to cause the permissions checks to be performed
against a different table than the index creation, allowing for a
privilege escalation attack.
</para>
<para>
- The <literal>MAXDATELEN</> constant was too small for the longest
- possible value of type <type>interval</>, allowing a buffer overrun
- in <function>interval_out()</>. Although the datetime input
+ The <literal>MAXDATELEN</literal> constant was too small for the longest
+ possible value of type <type>interval</type>, allowing a buffer overrun
+ in <function>interval_out()</function>. Although the datetime input
functions were more careful about avoiding buffer overrun, the limit
was short enough to cause them to reject some valid inputs, such as
- input containing a very long timezone name. The <application>ecpg</>
+ input containing a very long timezone name. The <application>ecpg</application>
library contained these vulnerabilities along with some of its own.
(CVE-2014-0063)
</para>
</para>
<para>
- Use <function>strlcpy()</> and related functions to provide a clear
+ Use <function>strlcpy()</function> and related functions to provide a clear
guarantee that fixed-size buffers are not overrun. Unlike the
preceding items, it is unclear whether these cases really represent
live issues, since in most cases there appear to be previous
<listitem>
<para>
- Avoid crashing if <function>crypt()</> returns NULL (Honza Horak,
+ Avoid crashing if <function>crypt()</function> returns NULL (Honza Horak,
Bruce Momjian)
</para>
<para>
- There are relatively few scenarios in which <function>crypt()</>
- could return NULL, but <filename>contrib/chkpass</> would crash
+ There are relatively few scenarios in which <function>crypt()</function>
+ could return NULL, but <filename>contrib/chkpass</filename> would crash
if it did. One practical case in which this could be an issue is
- if <application>libc</> is configured to refuse to execute unapproved
- hashing algorithms (e.g., <quote>FIPS mode</>).
+ if <application>libc</application> is configured to refuse to execute unapproved
+ hashing algorithms (e.g., <quote>FIPS mode</quote>).
(CVE-2014-0066)
</para>
</listitem>
<listitem>
<para>
- Document risks of <literal>make check</> in the regression testing
+ Document risks of <literal>make check</literal> in the regression testing
instructions (Noah Misch, Tom Lane)
</para>
<para>
- Since the temporary server started by <literal>make check</>
- uses <quote>trust</> authentication, another user on the same machine
+ Since the temporary server started by <literal>make check</literal>
+ uses <quote>trust</quote> authentication, another user on the same machine
could connect to it as database superuser, and then potentially
exploit the privileges of the operating-system user who started the
tests. A future release will probably incorporate changes in the
testing procedure to prevent this risk, but some public discussion is
needed first. So for the moment, just warn people against using
- <literal>make check</> when there are untrusted users on the
+ <literal>make check</literal> when there are untrusted users on the
same machine.
(CVE-2014-0067)
</para>
<para>
The WAL update could be applied to the wrong page, potentially many
pages past where it should have been. Aside from corrupting data,
- this error has been observed to result in significant <quote>bloat</>
+ this error has been observed to result in significant <quote>bloat</quote>
of standby servers compared to their masters, due to updates being
applied far beyond where the end-of-file should have been. This
failure mode does not appear to be a significant risk during crash
was already consistent at the start of replay, thus possibly allowing
hot-standby queries before the database was really consistent. Other
symptoms such as <quote>PANIC: WAL contains references to invalid
- pages</> were also possible.
+ pages</quote> were also possible.
</para>
</listitem>
<listitem>
<para>
Fix improper locking of btree index pages while replaying
- a <literal>VACUUM</> operation in hot-standby mode (Andres Freund,
+ a <literal>VACUUM</literal> operation in hot-standby mode (Andres Freund,
Heikki Linnakangas, Tom Lane)
</para>
<para>
This error could result in <quote>PANIC: WAL contains references to
- invalid pages</> failures.
+ invalid pages</quote> failures.
</para>
</listitem>
<listitem>
<para>
- When <literal>pause_at_recovery_target</>
- and <literal>recovery_target_inclusive</> are both set, ensure the
+ When <literal>pause_at_recovery_target</literal>
+ and <literal>recovery_target_inclusive</literal> are both set, ensure the
target record is applied before pausing, not after (Heikki
Linnakangas)
</para>
<para>
Ensure that signal handlers don't attempt to use the
- process's <varname>MyProc</> pointer after it's no longer valid.
+ process's <varname>MyProc</varname> pointer after it's no longer valid.
</para>
</listitem>
<listitem>
<para>
- Fix unsafe references to <varname>errno</> within error reporting
+ Fix unsafe references to <varname>errno</varname> within error reporting
logic (Christian Kruse)
</para>
<para>
This would typically lead to odd behaviors such as missing or
- inappropriate <literal>HINT</> fields.
+ inappropriate <literal>HINT</literal> fields.
</para>
</listitem>
<listitem>
<para>
- Fix possible crashes from using <function>ereport()</> too early
+ Fix possible crashes from using <function>ereport()</function> too early
during server startup (Tom Lane)
</para>
<listitem>
<para>
- Fix length checking for Unicode identifiers (<literal>U&"..."</>
+ Fix length checking for Unicode identifiers (<literal>U&"..."</literal>
syntax) containing escapes (Tom Lane)
</para>
<para>
A previous patch allowed such keywords to be used without quoting
in places such as role identifiers; but it missed cases where a
- list of role identifiers was permitted, such as <literal>DROP ROLE</>.
+ list of role identifiers was permitted, such as <literal>DROP ROLE</literal>.
</para>
</listitem>
<listitem>
<para>
Fix possible crash due to invalid plan for nested sub-selects, such
- as <literal>WHERE (... x IN (SELECT ...) ...) IN (SELECT ...)</>
+ as <literal>WHERE (... x IN (SELECT ...) ...) IN (SELECT ...)</literal>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <literal>UPDATE/DELETE</> of an inherited target table
- that has <literal>UNION ALL</> subqueries (Tom Lane)
+ Fix <literal>UPDATE/DELETE</literal> of an inherited target table
+ that has <literal>UNION ALL</literal> subqueries (Tom Lane)
</para>
<para>
- Without this fix, <literal>UNION ALL</> subqueries aren't correctly
+ Without this fix, <literal>UNION ALL</literal> subqueries aren't correctly
inserted into the update plans for inheritance child tables after the
first one, typically resulting in no update happening for those child
table(s).
<listitem>
<para>
- Ensure that <command>ANALYZE</> creates statistics for a table column
- even when all the values in it are <quote>too wide</> (Tom Lane)
+ Ensure that <command>ANALYZE</command> creates statistics for a table column
+ even when all the values in it are <quote>too wide</quote> (Tom Lane)
</para>
<para>
- <command>ANALYZE</> intentionally omits very wide values from its
+ <command>ANALYZE</command> intentionally omits very wide values from its
histogram and most-common-values calculations, but it neglected to do
something sane in the case that all the sampled entries are too wide.
</para>
<listitem>
<para>
- In <literal>ALTER TABLE ... SET TABLESPACE</>, allow the database's
+ In <literal>ALTER TABLE ... SET TABLESPACE</literal>, allow the database's
default tablespace to be used without a permissions check
(Stephen Frost)
</para>
<para>
- <literal>CREATE TABLE</> has always allowed such usage,
- but <literal>ALTER TABLE</> didn't get the memo.
+ <literal>CREATE TABLE</literal> has always allowed such usage,
+ but <literal>ALTER TABLE</literal> didn't get the memo.
</para>
</listitem>
<listitem>
<para>
- Fix <quote>cannot accept a set</> error when some arms of
- a <literal>CASE</> return a set and others don't (Tom Lane)
+ Fix <quote>cannot accept a set</quote> error when some arms of
+ a <literal>CASE</literal> return a set and others don't (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix possible misbehavior in <function>plainto_tsquery()</>
+ Fix possible misbehavior in <function>plainto_tsquery()</function>
(Heikki Linnakangas)
</para>
<para>
- Use <function>memmove()</> not <function>memcpy()</> for copying
+ Use <function>memmove()</function> not <function>memcpy()</function> for copying
overlapping memory regions. There have been no field reports of
this actually causing trouble, but it's certainly risky.
</para>
<listitem>
<para>
- Fix placement of permissions checks in <function>pg_start_backup()</>
- and <function>pg_stop_backup()</> (Andres Freund, Magnus Hagander)
+ Fix placement of permissions checks in <function>pg_start_backup()</function>
+ and <function>pg_stop_backup()</function> (Andres Freund, Magnus Hagander)
</para>
<para>
<listitem>
<para>
- Accept <literal>SHIFT_JIS</> as an encoding name for locale checking
+ Accept <literal>SHIFT_JIS</literal> as an encoding name for locale checking
purposes (Tatsuo Ishii)
</para>
</listitem>
<listitem>
<para>
- Fix <literal>*</>-qualification of named parameters in SQL-language
+ Fix <literal>*</literal>-qualification of named parameters in SQL-language
functions (Tom Lane)
</para>
<para>
Given a composite-type parameter
- named <literal>foo</>, <literal>$1.*</> worked fine,
- but <literal>foo.*</> not so much.
+ named <literal>foo</literal>, <literal>$1.*</literal> worked fine,
+ but <literal>foo.*</literal> not so much.
</para>
</listitem>
<listitem>
<para>
- Fix misbehavior of <function>PQhost()</> on Windows (Fujii Masao)
+ Fix misbehavior of <function>PQhost()</function> on Windows (Fujii Masao)
</para>
<para>
- It should return <literal>localhost</> if no host has been specified.
+ It should return <literal>localhost</literal> if no host has been specified.
</para>
</listitem>
<listitem>
<para>
- Improve error handling in <application>libpq</> and <application>psql</>
- for failures during <literal>COPY TO STDOUT/FROM STDIN</> (Tom Lane)
+ Improve error handling in <application>libpq</application> and <application>psql</application>
+ for failures during <literal>COPY TO STDOUT/FROM STDIN</literal> (Tom Lane)
</para>
<para>
In particular this fixes an infinite loop that could occur in 9.2 and
up if the server connection was lost during <literal>COPY FROM
- STDIN</>. Variants of that scenario might be possible in older
+ STDIN</literal>. Variants of that scenario might be possible in older
versions, or with other client applications.
</para>
</listitem>
<listitem>
<para>
Fix incorrect translation handling in
- some <application>psql</> <literal>\d</> commands
+ some <application>psql</application> <literal>\d</literal> commands
(Peter Eisentraut, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Ensure <application>pg_basebackup</>'s background process is killed
+ Ensure <application>pg_basebackup</application>'s background process is killed
when exiting its foreground process (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
Fix possible incorrect printing of filenames
- in <application>pg_basebackup</>'s verbose mode (Magnus Hagander)
+ in <application>pg_basebackup</application>'s verbose mode (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
- Fix misaligned descriptors in <application>ecpg</> (MauMau)
+ Fix misaligned descriptors in <application>ecpg</application> (MauMau)
</para>
</listitem>
<listitem>
<para>
- In <application>ecpg</>, handle lack of a hostname in the connection
+ In <application>ecpg</application>, handle lack of a hostname in the connection
parameters properly (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Fix performance regression in <filename>contrib/dblink</> connection
+ Fix performance regression in <filename>contrib/dblink</filename> connection
startup (Joe Conway)
</para>
<listitem>
<para>
- In <filename>contrib/isn</>, fix incorrect calculation of the check
+ In <filename>contrib/isn</filename>, fix incorrect calculation of the check
digit for ISMN values (Fabien Coelho)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/pg_stat_statement</>'s handling
- of <literal>CURRENT_DATE</> and related constructs (Kyotaro
+ Fix <filename>contrib/pg_stat_statement</filename>'s handling
+ of <literal>CURRENT_DATE</literal> and related constructs (Kyotaro
Horiguchi)
</para>
</listitem>
<listitem>
<para>
- In Mingw and Cygwin builds, install the <application>libpq</> DLL
- in the <filename>bin</> directory (Andrew Dunstan)
+ In Mingw and Cygwin builds, install the <application>libpq</application> DLL
+ in the <filename>bin</filename> directory (Andrew Dunstan)
</para>
<para>
This duplicates what the MSVC build has long done. It should fix
- problems with programs like <application>psql</> failing to start
+ problems with programs like <application>psql</application> failing to start
because they can't find the DLL.
</para>
</listitem>
<listitem>
<para>
- Avoid using the deprecated <literal>dllwrap</> tool in Cygwin builds
+ Avoid using the deprecated <literal>dllwrap</literal> tool in Cygwin builds
(Marco Atzeri)
</para>
</listitem>
<listitem>
<para>
- Don't generate plain-text <filename>HISTORY</>
- and <filename>src/test/regress/README</> files anymore (Tom Lane)
+ Don't generate plain-text <filename>HISTORY</filename>
+ and <filename>src/test/regress/README</filename> files anymore (Tom Lane)
</para>
<para>
the likely audience for plain-text format. Distribution tarballs
will still contain files by these names, but they'll just be stubs
directing the reader to consult the main documentation.
- The plain-text <filename>INSTALL</> file will still be maintained, as
+ The plain-text <filename>INSTALL</filename> file will still be maintained, as
there is arguably a use-case for that.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2013i
+ Update time zone data files to <application>tzdata</application> release 2013i
for DST law changes in Jordan and historical changes in Cuba.
</para>
<para>
- In addition, the zones <literal>Asia/Riyadh87</>,
- <literal>Asia/Riyadh88</>, and <literal>Asia/Riyadh89</> have been
+ In addition, the zones <literal>Asia/Riyadh87</literal>,
+ <literal>Asia/Riyadh88</literal>, and <literal>Asia/Riyadh89</literal> have been
removed, as they are no longer maintained by IANA, and never
represented actual civil timekeeping practice.
</para>
<listitem>
<para>
- Fix <command>VACUUM</>'s tests to see whether it can
- update <structfield>relfrozenxid</> (Andres Freund)
+ Fix <command>VACUUM</command>'s tests to see whether it can
+ update <structfield>relfrozenxid</structfield> (Andres Freund)
</para>
<para>
- In some cases <command>VACUUM</> (either manual or autovacuum) could
- incorrectly advance a table's <structfield>relfrozenxid</> value,
+ In some cases <command>VACUUM</command> (either manual or autovacuum) could
+ incorrectly advance a table's <structfield>relfrozenxid</structfield> value,
allowing tuples to escape freezing, causing those rows to become
invisible once 2^31 transactions have elapsed. The probability of
data loss is fairly low since multiple incorrect advancements would
need to happen before actual loss occurs, but it's not zero. In 9.2.0
and later, the probability of loss is higher, and it's also possible
- to get <quote>could not access status of transaction</> errors as a
+ to get <quote>could not access status of transaction</quote> errors as a
consequence of this bug. Users upgrading from releases 9.0.4 or 8.4.8
or earlier are not affected, but all later versions contain the bug.
</para>
<para>
The issue can be ameliorated by, after upgrading, vacuuming all tables
in all databases while having <link
- linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</></link>
+ linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</varname></link>
set to zero. This will fix any latent corruption but will not be able
to fix all pre-existing data errors. However, an installation can be
presumed safe after performing this vacuuming if it has executed fewer
than 2^31 update transactions in its lifetime (check this with
- <literal>SELECT txid_current() < 2^31</>).
+ <literal>SELECT txid_current() < 2^31</literal>).
</para>
</listitem>
<listitem>
<para>
- Fix initialization of <filename>pg_clog</> and <filename>pg_subtrans</>
+ Fix initialization of <filename>pg_clog</filename> and <filename>pg_subtrans</filename>
during hot standby startup (Andres Freund, Heikki Linnakangas)
</para>
<para>
This could lead to corruption of the lock data structures in shared
- memory, causing <quote>lock already held</> and other odd errors.
+ memory, causing <quote>lock already held</quote> and other odd errors.
</para>
</listitem>
<listitem>
<para>
- Truncate <filename>pg_multixact</> contents during WAL replay
+ Truncate <filename>pg_multixact</filename> contents during WAL replay
(Andres Freund)
</para>
<listitem>
<para>
- Ensure an anti-wraparound <command>VACUUM</> counts a page as scanned
+ Ensure an anti-wraparound <command>VACUUM</command> counts a page as scanned
when it's only verified that no tuples need freezing (Sergey
Burladyan, Jeff Janes)
</para>
<para>
This bug could result in failing to
- advance <structfield>relfrozenxid</>, so that the table would still be
+ advance <structfield>relfrozenxid</structfield>, so that the table would still be
thought to need another anti-wraparound vacuum. In the worst case the
database might even shut down to prevent wraparound.
</para>
<listitem>
<para>
- Fix <quote>unexpected spgdoinsert() failure</> error during SP-GiST
+ Fix <quote>unexpected spgdoinsert() failure</quote> error during SP-GiST
index creation (Teodor Sigaev)
</para>
</listitem>
<listitem>
<para>
- Avoid flattening a subquery whose <literal>SELECT</> list contains a
- volatile function wrapped inside a sub-<literal>SELECT</> (Tom Lane)
+ Avoid flattening a subquery whose <literal>SELECT</literal> list contains a
+ volatile function wrapped inside a sub-<literal>SELECT</literal> (Tom Lane)
</para>
<para>
<para>
This error could lead to incorrect plans for queries involving
- multiple levels of subqueries within <literal>JOIN</> syntax.
+ multiple levels of subqueries within <literal>JOIN</literal> syntax.
</para>
</listitem>
<listitem>
<para>
Fix incorrect planning in cases where the same non-strict expression
- appears in multiple <literal>WHERE</> and outer <literal>JOIN</>
+ appears in multiple <literal>WHERE</literal> and outer <literal>JOIN</literal>
equality clauses (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix array slicing of <type>int2vector</> and <type>oidvector</> values
+ Fix array slicing of <type>int2vector</type> and <type>oidvector</type> values
(Tom Lane)
</para>
<para>
Expressions of this kind are now implicitly promoted to
- regular <type>int2</> or <type>oid</> arrays.
+ regular <type>int2</type> or <type>oid</type> arrays.
</para>
</listitem>
In some cases, the system would use the simple GMT offset value when
it should have used the regular timezone setting that had prevailed
before the simple offset was selected. This change also causes
- the <function>timeofday</> function to honor the simple GMT offset
+ the <function>timeofday</function> function to honor the simple GMT offset
zone.
</para>
</listitem>
<listitem>
<para>
- Properly quote generated command lines in <application>pg_ctl</>
+ Properly quote generated command lines in <application>pg_ctl</application>
(Naoya Anzai and Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_dumpall</> to work when a source database
+ Fix <application>pg_dumpall</application> to work when a source database
sets <link
- linkend="guc-default-transaction-read-only"><varname>default_transaction_read_only</></link>
- via <command>ALTER DATABASE SET</> (Kevin Grittner)
+ linkend="guc-default-transaction-read-only"><varname>default_transaction_read_only</varname></link>
+ via <command>ALTER DATABASE SET</command> (Kevin Grittner)
</para>
<para>
<listitem>
<para>
- Make <application>ecpg</> search for quoted cursor names
+ Make <application>ecpg</application> search for quoted cursor names
case-sensitively (Zoltán Böszörményi)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>'s processing of lists of variables
- declared <type>varchar</> (Zoltán Böszörményi)
+ Fix <application>ecpg</application>'s processing of lists of variables
+ declared <type>varchar</type> (Zoltán Böszörményi)
</para>
</listitem>
<listitem>
<para>
- Make <filename>contrib/lo</> defend against incorrect trigger definitions
+ Make <filename>contrib/lo</filename> defend against incorrect trigger definitions
(Marc Cousin)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2013h
+ Update time zone data files to <application>tzdata</application> release 2013h
for DST law changes in Argentina, Brazil, Jordan, Libya,
Liechtenstein, Morocco, and Palestine. Also, new timezone
abbreviations WIB, WIT, WITA for Indonesia.
</para>
<para>
- <productname>PostgreSQL</> case-folds non-ASCII characters only
+ <productname>PostgreSQL</productname> case-folds non-ASCII characters only
when using a single-byte server encoding.
</para>
</listitem>
<listitem>
<para>
Fix checkpoint memory leak in background writer when <literal>wal_level =
- hot_standby</> (Naoya Anzai)
+ hot_standby</literal> (Naoya Anzai)
</para>
</listitem>
<listitem>
<para>
- Fix memory overcommit bug when <varname>work_mem</> is using more
+ Fix memory overcommit bug when <varname>work_mem</varname> is using more
than 24GB of memory (Stephen Frost)
</para>
</listitem>
</para>
<para>
- Previously tests like <literal>col IS NOT TRUE</> and <literal>col IS
- NOT FALSE</> did not properly factor in NULL values when estimating
+ Previously tests like <literal>col IS NOT TRUE</literal> and <literal>col IS
+ NOT FALSE</literal> did not properly factor in NULL values when estimating
plan costs.
</para>
</listitem>
<listitem>
<para>
- Fix accounting for qualifier evaluation costs in <literal>UNION ALL</>
+ Fix accounting for qualifier evaluation costs in <literal>UNION ALL</literal>
and inheritance queries (Tom Lane)
</para>
<para>
This fixes cases where suboptimal query plans could be chosen if
- some <literal>WHERE</> clauses are expensive to calculate.
+ some <literal>WHERE</literal> clauses are expensive to calculate.
</para>
</listitem>
<listitem>
<para>
- Prevent pushing down <literal>WHERE</> clauses into unsafe
- <literal>UNION/INTERSECT</> subqueries (Tom Lane)
+ Prevent pushing down <literal>WHERE</literal> clauses into unsafe
+ <literal>UNION/INTERSECT</literal> subqueries (Tom Lane)
</para>
<para>
- Subqueries of a <literal>UNION</> or <literal>INTERSECT</> that
+ Subqueries of a <literal>UNION</literal> or <literal>INTERSECT</literal> that
contain set-returning functions or volatile functions in their
- <literal>SELECT</> lists could be improperly optimized, leading to
+ <literal>SELECT</literal> lists could be improperly optimized, leading to
run-time errors or incorrect query results.
</para>
</listitem>
<listitem>
<para>
- Fix rare case of <quote>failed to locate grouping columns</>
+ Fix rare case of <quote>failed to locate grouping columns</quote>
planner failure (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> of foreign tables with dropped columns (Andrew Dunstan)
+ Fix <application>pg_dump</application> of foreign tables with dropped columns (Andrew Dunstan)
</para>
<para>
- Previously such cases could cause a <application>pg_upgrade</> error.
+ Previously such cases could cause a <application>pg_upgrade</application> error.
</para>
</listitem>
<listitem>
<para>
- Reorder <application>pg_dump</> processing of extension-related
+ Reorder <application>pg_dump</application> processing of extension-related
rules and event triggers (Joe Conway)
</para>
</listitem>
<listitem>
<para>
Force dumping of extension tables if specified by <command>pg_dump
- -t</> or <literal>-n</> (Joe Conway)
+ -t</command> or <literal>-n</literal> (Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Fix <command>pg_restore -l</> with the directory archive to display
+ Fix <command>pg_restore -l</command> with the directory archive to display
the correct format name (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Properly record index comments created using <literal>UNIQUE</>
- and <literal>PRIMARY KEY</> syntax (Andres Freund)
+ Properly record index comments created using <literal>UNIQUE</literal>
+ and <literal>PRIMARY KEY</literal> syntax (Andres Freund)
</para>
<para>
- This fixes a parallel <application>pg_restore</> failure.
+ This fixes a parallel <application>pg_restore</application> failure.
</para>
</listitem>
<listitem>
<para>
- Cause <command>pg_basebackup -x</> with an empty xlog directory
+ Cause <command>pg_basebackup -x</command> with an empty xlog directory
to throw an error rather than crashing (Magnus Hagander, Haruka
Takatsuka)
</para>
<listitem>
<para>
- Fix <command>REINDEX TABLE</> and <command>REINDEX DATABASE</>
+ Fix <command>REINDEX TABLE</command> and <command>REINDEX DATABASE</command>
to properly revalidate constraints and mark invalidated indexes as
valid (Noah Misch)
</para>
<para>
- <command>REINDEX INDEX</> has always worked properly.
+ <command>REINDEX INDEX</command> has always worked properly.
</para>
</listitem>
<listitem>
<para>
Fix possible deadlock during concurrent <command>CREATE INDEX
- CONCURRENTLY</> operations (Tom Lane)
+ CONCURRENTLY</command> operations (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>regexp_matches()</> handling of zero-length matches
+ Fix <function>regexp_matches()</function> handling of zero-length matches
(Jeevan Chalke)
</para>
<listitem>
<para>
- Prevent <command>CREATE FUNCTION</> from checking <command>SET</>
+ Prevent <command>CREATE FUNCTION</command> from checking <command>SET</command>
variables unless function body checking is enabled (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Allow <command>ALTER DEFAULT PRIVILEGES</> to operate on schemas
+ Allow <command>ALTER DEFAULT PRIVILEGES</command> to operate on schemas
without requiring CREATE permission (Tom Lane)
</para>
</listitem>
<para>
Specifically, lessen keyword restrictions for role names, language
- names, <command>EXPLAIN</> and <command>COPY</> options, and
- <command>SET</> values. This allows <literal>COPY ... (FORMAT
- BINARY)</> to work as expected; previously <literal>BINARY</> needed
+ names, <command>EXPLAIN</command> and <command>COPY</command> options, and
+ <command>SET</command> values. This allows <literal>COPY ... (FORMAT
+ BINARY)</literal> to work as expected; previously <literal>BINARY</literal> needed
to be quoted.
</para>
</listitem>
<listitem>
<para>
- Print proper line number during <command>COPY</> failure (Heikki
+ Print proper line number during <command>COPY</command> failure (Heikki
Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Fix <function>pgp_pub_decrypt()</> so it works for secret keys with
+ Fix <function>pgp_pub_decrypt()</function> so it works for secret keys with
passwords (Marko Kreen)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_upgrade</> use <literal>pg_dump
- --quote-all-identifiers</> to avoid problems with keyword changes
+ Make <application>pg_upgrade</application> use <literal>pg_dump
+ --quote-all-identifiers</literal> to avoid problems with keyword changes
between releases (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Ensure that <command>VACUUM ANALYZE</> still runs the ANALYZE phase
+ Ensure that <command>VACUUM ANALYZE</command> still runs the ANALYZE phase
if its attempt to truncate the file is cancelled due to lock conflicts
(Kevin Grittner)
</para>
<listitem>
<para>
Avoid possible failure when performing transaction control commands (e.g
- <command>ROLLBACK</>) in prepared queries (Tom Lane)
+ <command>ROLLBACK</command>) in prepared queries (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Ensure that floating-point data input accepts standard spellings
- of <quote>infinity</> on all platforms (Tom Lane)
+ of <quote>infinity</quote> on all platforms (Tom Lane)
</para>
<para>
- The C99 standard says that allowable spellings are <literal>inf</>,
- <literal>+inf</>, <literal>-inf</>, <literal>infinity</>,
- <literal>+infinity</>, and <literal>-infinity</>. Make sure we
- recognize these even if the platform's <function>strtod</> function
+ The C99 standard says that allowable spellings are <literal>inf</literal>,
+ <literal>+inf</literal>, <literal>-inf</literal>, <literal>infinity</literal>,
+ <literal>+infinity</literal>, and <literal>-infinity</literal>. Make sure we
+ recognize these even if the platform's <function>strtod</function> function
doesn't.
</para>
</listitem>
<listitem>
<para>
- Avoid unnecessary reporting when <varname>track_activities</> is off
+ Avoid unnecessary reporting when <varname>track_activities</varname> is off
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Prevent crash when <application>psql</>'s <envar>PSQLRC</> variable
+ Prevent crash when <application>psql</application>'s <envar>PSQLRC</envar> variable
contains a tilde (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2013d
+ Update time zone data files to <application>tzdata</application> release 2013d
for DST law changes in Israel, Morocco, Palestine, and Paraguay.
Also, historical zone data corrections for Macquarie Island.
</para>
<para>
However, this release corrects several errors in management of GiST
indexes. After installing this update, it is advisable to
- <command>REINDEX</> any GiST indexes that meet one or more of the
+ <command>REINDEX</command> any GiST indexes that meet one or more of the
conditions described below.
</para>
<para>
A connection request containing a database name that begins with
- <quote><literal>-</></quote> could be crafted to damage or destroy
+ <quote><literal>-</literal></quote> could be crafted to damage or destroy
files within the server's data directory, even if the request is
eventually rejected. (CVE-2013-1899)
</para>
<para>
This avoids a scenario wherein random numbers generated by
- <filename>contrib/pgcrypto</> functions might be relatively easy for
+ <filename>contrib/pgcrypto</filename> functions might be relatively easy for
another database user to guess. The risk is only significant when
- the postmaster is configured with <varname>ssl</> = <literal>on</>
+ the postmaster is configured with <varname>ssl</varname> = <literal>on</literal>
but most connections don't use SSL encryption. (CVE-2013-1900)
</para>
</listitem>
<para>
An unprivileged database user could exploit this mistake to call
- <function>pg_start_backup()</> or <function>pg_stop_backup()</>,
+ <function>pg_start_backup()</function> or <function>pg_stop_backup()</function>,
thus possibly interfering with creation of routine backups.
(CVE-2013-1901)
</para>
<listitem>
<para>
- Fix GiST indexes to not use <quote>fuzzy</> geometric comparisons when
+ Fix GiST indexes to not use <quote>fuzzy</quote> geometric comparisons when
it's not appropriate to do so (Alexander Korotkov)
</para>
<para>
- The core geometric types perform comparisons using <quote>fuzzy</>
- equality, but <function>gist_box_same</> must do exact comparisons,
+ The core geometric types perform comparisons using <quote>fuzzy</quote>
+ equality, but <function>gist_box_same</function> must do exact comparisons,
else GiST indexes using it might become inconsistent. After installing
- this update, users should <command>REINDEX</> any GiST indexes on
- <type>box</>, <type>polygon</>, <type>circle</>, or <type>point</>
- columns, since all of these use <function>gist_box_same</>.
+ this update, users should <command>REINDEX</command> any GiST indexes on
+ <type>box</type>, <type>polygon</type>, <type>circle</type>, or <type>point</type>
+ columns, since all of these use <function>gist_box_same</function>.
</para>
</listitem>
<listitem>
<para>
Fix erroneous range-union and penalty logic in GiST indexes that use
- <filename>contrib/btree_gist</> for variable-width data types, that is
- <type>text</>, <type>bytea</>, <type>bit</>, and <type>numeric</>
+ <filename>contrib/btree_gist</filename> for variable-width data types, that is
+ <type>text</type>, <type>bytea</type>, <type>bit</type>, and <type>numeric</type>
columns (Tom Lane)
</para>
<para>
These errors could result in inconsistent indexes in which some keys
that are present would not be found by searches, and also in useless
- index bloat. Users are advised to <command>REINDEX</> such indexes
+ index bloat. Users are advised to <command>REINDEX</command> such indexes
after installing this update.
</para>
</listitem>
These errors could result in inconsistent indexes in which some keys
that are present would not be found by searches, and also in indexes
that are unnecessarily inefficient to search. Users are advised to
- <command>REINDEX</> multi-column GiST indexes after installing this
+ <command>REINDEX</command> multi-column GiST indexes after installing this
update.
</para>
</listitem>
<listitem>
<para>
- Fix <function>gist_point_consistent</>
+ Fix <function>gist_point_consistent</function>
to handle fuzziness consistently (Alexander Korotkov)
</para>
<para>
- Index scans on GiST indexes on <type>point</> columns would sometimes
+ Index scans on GiST indexes on <type>point</type> columns would sometimes
yield results different from a sequential scan, because
- <function>gist_point_consistent</> disagreed with the underlying
+ <function>gist_point_consistent</function> disagreed with the underlying
operator code about whether to do comparisons exactly or fuzzily.
</para>
</listitem>
</para>
<para>
- This bug could result in <quote>incorrect local pin count</> errors
+ This bug could result in <quote>incorrect local pin count</quote> errors
during replay, making recovery impossible.
</para>
</listitem>
<listitem>
<para>
Ensure we do crash recovery before entering archive recovery, if the
- database was not stopped cleanly and a <filename>recovery.conf</> file
+ database was not stopped cleanly and a <filename>recovery.conf</filename> file
is present (Heikki Linnakangas, Kyotaro Horiguchi, Mitsumasa Kondo)
</para>
<listitem>
<para>
- Fix race condition in <command>DELETE RETURNING</> (Tom Lane)
+ Fix race condition in <command>DELETE RETURNING</command> (Tom Lane)
</para>
<para>
- Under the right circumstances, <command>DELETE RETURNING</> could
+ Under the right circumstances, <command>DELETE RETURNING</command> could
attempt to fetch data from a shared buffer that the current process
no longer has any pin on. If some other process changed the buffer
- meanwhile, this would lead to garbage <literal>RETURNING</> output, or
+ meanwhile, this would lead to garbage <literal>RETURNING</literal> output, or
even a crash.
</para>
</listitem>
<listitem>
<para>
- Fix <function>to_char()</> to use ASCII-only case-folding rules where
+ Fix <function>to_char()</function> to use ASCII-only case-folding rules where
appropriate (Tom Lane)
</para>
<para>
This fixes misbehavior of some template patterns that should be
- locale-independent, but mishandled <quote><literal>I</></quote> and
- <quote><literal>i</></quote> in Turkish locales.
+ locale-independent, but mishandled <quote><literal>I</literal></quote> and
+ <quote><literal>i</literal></quote> in Turkish locales.
</para>
</listitem>
<listitem>
<para>
- Fix unwanted rejection of timestamp <literal>1999-12-31 24:00:00</>
+ Fix unwanted rejection of timestamp <literal>1999-12-31 24:00:00</literal>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix logic error when a single transaction does <command>UNLISTEN</>
- then <command>LISTEN</> (Tom Lane)
+ Fix logic error when a single transaction does <command>UNLISTEN</command>
+ then <command>LISTEN</command> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix performance issue in <literal>EXPLAIN (ANALYZE, TIMING OFF)</>
+ Fix performance issue in <literal>EXPLAIN (ANALYZE, TIMING OFF)</literal>
(Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
- Remove useless <quote>picksplit doesn't support secondary split</> log
+ Remove useless <quote>picksplit doesn't support secondary split</quote> log
messages (Josh Hansen, Tom Lane)
</para>
<listitem>
<para>
Remove vestigial secondary-split support in
- <function>gist_box_picksplit()</> (Tom Lane)
+ <function>gist_box_picksplit()</function> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Eliminate memory leaks in PL/Perl's <function>spi_prepare()</> function
+ Eliminate memory leaks in PL/Perl's <function>spi_prepare()</function> function
(Alex Hunsaker, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dumpall</> to handle database names containing
- <quote><literal>=</></quote> correctly (Heikki Linnakangas)
+ Fix <application>pg_dumpall</application> to handle database names containing
+ <quote><literal>=</literal></quote> correctly (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Avoid crash in <application>pg_dump</> when an incorrect connection
+ Avoid crash in <application>pg_dump</application> when an incorrect connection
string is given (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Ignore invalid indexes in <application>pg_dump</> and
- <application>pg_upgrade</> (Michael Paquier, Bruce Momjian)
+ Ignore invalid indexes in <application>pg_dump</application> and
+ <application>pg_upgrade</application> (Michael Paquier, Bruce Momjian)
</para>
<para>
a uniqueness condition not satisfied by the table's data. Also, if the
index creation is in fact still in progress, it seems reasonable to
consider it to be an uncommitted DDL change, which
- <application>pg_dump</> wouldn't be expected to dump anyway.
- <application>pg_upgrade</> now also skips invalid indexes rather than
+ <application>pg_dump</application> wouldn't be expected to dump anyway.
+ <application>pg_upgrade</application> now also skips invalid indexes rather than
failing.
</para>
</listitem>
<listitem>
<para>
- In <application>pg_basebackup</>, include only the current server
+ In <application>pg_basebackup</application>, include only the current server
version's subdirectory when backing up a tablespace (Heikki
Linnakangas)
</para>
<listitem>
<para>
- Add a server version check in <application>pg_basebackup</> and
- <application>pg_receivexlog</>, so they fail cleanly with version
+ Add a server version check in <application>pg_basebackup</application> and
+ <application>pg_receivexlog</application>, so they fail cleanly with version
combinations that won't work (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/dblink</> to handle inconsistent settings of
- <varname>DateStyle</> or <varname>IntervalStyle</> safely (Daniel
+ Fix <filename>contrib/dblink</filename> to handle inconsistent settings of
+ <varname>DateStyle</varname> or <varname>IntervalStyle</varname> safely (Daniel
Farina, Tom Lane)
</para>
Previously, if the remote server had different settings of these
parameters, ambiguous dates might be read incorrectly. This fix
ensures that datetime and interval columns fetched by a
- <filename>dblink</> query will be interpreted correctly. Note however
+ <filename>dblink</filename> query will be interpreted correctly. Note however
that inconsistent settings are still risky, since literal values
appearing in SQL commands sent to the remote server might be
interpreted differently than they would be locally.
<listitem>
<para>
- Fix <filename>contrib/pg_trgm</>'s <function>similarity()</> function
+ Fix <filename>contrib/pg_trgm</filename>'s <function>similarity()</function> function
to return zero for trigram-less strings (Tom Lane)
</para>
<para>
- Previously it returned <literal>NaN</> due to internal division by zero.
+ Previously it returned <literal>NaN</literal> due to internal division by zero.
</para>
</listitem>
<listitem>
<para>
- Enable building <productname>PostgreSQL</> with Microsoft Visual
+ Enable building <productname>PostgreSQL</productname> with Microsoft Visual
Studio 2012 (Brar Piening, Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2013b
+ Update time zone data files to <application>tzdata</application> release 2013b
for DST law changes in Chile, Haiti, Morocco, Paraguay, and some
Russian areas. Also, historical zone data corrections for numerous
places.
<para>
Also, update the time zone abbreviation files for recent changes in
- Russia and elsewhere: <literal>CHOT</>, <literal>GET</>,
- <literal>IRKT</>, <literal>KGT</>, <literal>KRAT</>, <literal>MAGT</>,
- <literal>MAWT</>, <literal>MSK</>, <literal>NOVT</>, <literal>OMST</>,
- <literal>TKT</>, <literal>VLAT</>, <literal>WST</>, <literal>YAKT</>,
- <literal>YEKT</> now follow their current meanings, and
- <literal>VOLT</> (Europe/Volgograd) and <literal>MIST</>
+ Russia and elsewhere: <literal>CHOT</literal>, <literal>GET</literal>,
+ <literal>IRKT</literal>, <literal>KGT</literal>, <literal>KRAT</literal>, <literal>MAGT</literal>,
+ <literal>MAWT</literal>, <literal>MSK</literal>, <literal>NOVT</literal>, <literal>OMST</literal>,
+ <literal>TKT</literal>, <literal>VLAT</literal>, <literal>WST</literal>, <literal>YAKT</literal>,
+ <literal>YEKT</literal> now follow their current meanings, and
+ <literal>VOLT</literal> (Europe/Volgograd) and <literal>MIST</literal>
(Antarctica/Macquarie) are added to the default abbreviations list.
</para>
</listitem>
<listitem>
<para>
- Prevent execution of <function>enum_recv</> from SQL (Tom Lane)
+ Prevent execution of <function>enum_recv</function> from SQL (Tom Lane)
</para>
<para>
<para>
This mistake could result in incorrect <quote>WAL ends before end of
- online backup</> errors.
+ online backup</quote> errors.
</para>
</listitem>
<listitem>
<para>
- Improve performance of <function>SPI_execute</> and related
- functions, thereby improving PL/pgSQL's <literal>EXECUTE</>
+ Improve performance of <function>SPI_execute</function> and related
+ functions, thereby improving PL/pgSQL's <literal>EXECUTE</literal>
(Heikki Linnakangas, Tom Lane)
</para>
<listitem>
<para>
- Fix intermittent crash in <literal>DROP INDEX CONCURRENTLY</> (Tom Lane)
+ Fix intermittent crash in <literal>DROP INDEX CONCURRENTLY</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix potential corruption of shared-memory lock table during
- <command>CREATE/DROP INDEX CONCURRENTLY</> (Tom Lane)
+ <command>CREATE/DROP INDEX CONCURRENTLY</command> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <command>COPY</>'s multiple-tuple-insertion code for the case of
+ Fix <command>COPY</command>'s multiple-tuple-insertion code for the case of
a tuple larger than page size minus fillfactor (Heikki Linnakangas)
</para>
<listitem>
<para>
Protect against race conditions when scanning
- <structname>pg_tablespace</> (Stephen Frost, Tom Lane)
+ <structname>pg_tablespace</structname> (Stephen Frost, Tom Lane)
</para>
<para>
- <command>CREATE DATABASE</> and <command>DROP DATABASE</> could
+ <command>CREATE DATABASE</command> and <command>DROP DATABASE</command> could
misbehave if there were concurrent updates of
- <structname>pg_tablespace</> entries.
+ <structname>pg_tablespace</structname> entries.
</para>
</listitem>
<listitem>
<para>
- Prevent <command>DROP OWNED</> from trying to drop whole databases or
+ Prevent <command>DROP OWNED</command> from trying to drop whole databases or
tablespaces (Álvaro Herrera)
</para>
<listitem>
<para>
Fix error in <link
- linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</></link>
+ linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</varname></link>
implementation (Andres Freund)
</para>
<para>
In installations that have existed for more than <link
- linkend="guc-vacuum-freeze-min-age"><varname>vacuum_freeze_min_age</></link>
+ linkend="guc-vacuum-freeze-min-age"><varname>vacuum_freeze_min_age</varname></link>
transactions, this mistake prevented autovacuum from using partial-table
scans, so that a full-table scan would always happen instead.
</para>
<listitem>
<para>
- Prevent misbehavior when a <symbol>RowExpr</> or <symbol>XmlExpr</>
+ Prevent misbehavior when a <symbol>RowExpr</symbol> or <symbol>XmlExpr</symbol>
is parse-analyzed twice (Andres Freund, Tom Lane)
</para>
<para>
This mistake could be user-visible in contexts such as
- <literal>CREATE TABLE LIKE INCLUDING INDEXES</>.
+ <literal>CREATE TABLE LIKE INCLUDING INDEXES</literal>.
</para>
</listitem>
<para>
There were some issues with default privileges for types, and
- <application>pg_dump</> failed to dump such privileges at all.
+ <application>pg_dump</application> failed to dump such privileges at all.
</para>
</listitem>
<listitem>
<para>
- Reject out-of-range dates in <function>to_date()</> (Hitoshi Harada)
+ Reject out-of-range dates in <function>to_date()</function> (Hitoshi Harada)
</para>
</listitem>
<listitem>
<para>
- Fix <function>pg_extension_config_dump()</> to handle
+ Fix <function>pg_extension_config_dump()</function> to handle
extension-update cases properly (Tom Lane)
</para>
<para>
The previous coding resulted in sometimes omitting the first line in
- the <literal>CONTEXT</> traceback for the error.
+ the <literal>CONTEXT</literal> traceback for the error.
</para>
</listitem>
</para>
<para>
- This bug affected <application>psql</> and some other client programs.
+ This bug affected <application>psql</application> and some other client programs.
</para>
</listitem>
<listitem>
<para>
- Fix possible crash in <application>psql</>'s <command>\?</> command
+ Fix possible crash in <application>psql</application>'s <command>\?</command> command
when not connected to a database (Meng Qingzhong)
</para>
</listitem>
<listitem>
<para>
Fix possible error if a relation file is removed while
- <application>pg_basebackup</> is running (Heikki Linnakangas)
+ <application>pg_basebackup</application> is running (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Tolerate timeline switches while <literal>pg_basebackup -X fetch</>
+ Tolerate timeline switches while <literal>pg_basebackup -X fetch</literal>
is backing up a standby server (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> exclude data of unlogged tables when
+ Make <application>pg_dump</application> exclude data of unlogged tables when
running on a hot-standby server (Magnus Hagander)
</para>
<para>
This would fail anyway because the data is not available on the standby
server, so it seems most convenient to assume
- <option>--no-unlogged-table-data</> automatically.
+ <option>--no-unlogged-table-data</option> automatically.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to deal with invalid indexes safely
+ Fix <application>pg_upgrade</application> to deal with invalid indexes safely
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</>'s -O/-o options (Marti Raudsepp)
+ Fix <application>pg_upgrade</application>'s -O/-o options (Marti Raudsepp)
</para>
</listitem>
<listitem>
<para>
- Fix one-byte buffer overrun in <application>libpq</>'s
- <function>PQprintTuples</> (Xi Wang)
+ Fix one-byte buffer overrun in <application>libpq</application>'s
+ <function>PQprintTuples</function> (Xi Wang)
</para>
<para>
This ancient function is not used anywhere by
- <productname>PostgreSQL</> itself, but it might still be used by some
+ <productname>PostgreSQL</productname> itself, but it might still be used by some
client code.
</para>
</listitem>
<listitem>
<para>
- Make <application>ecpglib</> use translated messages properly
+ Make <application>ecpglib</application> use translated messages properly
(Chen Huajun)
</para>
</listitem>
<listitem>
<para>
- Properly install <application>ecpg_compat</> and
- <application>pgtypes</> libraries on MSVC (Jiang Guiqing)
+ Properly install <application>ecpg_compat</application> and
+ <application>pgtypes</application> libraries on MSVC (Jiang Guiqing)
</para>
</listitem>
<listitem>
<para>
- Include our version of <function>isinf()</> in
- <application>libecpg</> if it's not provided by the system
+ Include our version of <function>isinf()</function> in
+ <application>libecpg</application> if it's not provided by the system
(Jiang Guiqing)
</para>
</listitem>
<listitem>
<para>
- Make <application>pgxs</> build executables with the right
- <literal>.exe</> suffix when cross-compiling for Windows
+ Make <application>pgxs</application> build executables with the right
+ <literal>.exe</literal> suffix when cross-compiling for Windows
(Zoltan Boszormenyi)
</para>
</listitem>
<listitem>
<para>
- Add new timezone abbreviation <literal>FET</> (Tom Lane)
+ Add new timezone abbreviation <literal>FET</literal> (Tom Lane)
</para>
<para>
</para>
<para>
- However, you may need to perform <command>REINDEX</> operations to
+ However, you may need to perform <command>REINDEX</command> operations to
correct problems in concurrently-built indexes, as described in the first
changelog item below.
</para>
<listitem>
<para>
Fix multiple bugs associated with <command>CREATE/DROP INDEX
- CONCURRENTLY</> (Andres Freund, Tom Lane, Simon Riggs, Pavan Deolasee)
+ CONCURRENTLY</command> (Andres Freund, Tom Lane, Simon Riggs, Pavan Deolasee)
</para>
<para>
- An error introduced while adding <command>DROP INDEX CONCURRENTLY</>
+ An error introduced while adding <command>DROP INDEX CONCURRENTLY</command>
allowed incorrect indexing decisions to be made during the initial
- phase of <command>CREATE INDEX CONCURRENTLY</>; so that indexes built
+ phase of <command>CREATE INDEX CONCURRENTLY</command>; so that indexes built
by that command could be corrupt. It is recommended that indexes
- built in 9.2.X with <command>CREATE INDEX CONCURRENTLY</> be rebuilt
+ built in 9.2.X with <command>CREATE INDEX CONCURRENTLY</command> be rebuilt
after applying this update.
</para>
<para>
- In addition, fix <command>CREATE/DROP INDEX CONCURRENTLY</> to use
+ In addition, fix <command>CREATE/DROP INDEX CONCURRENTLY</command> to use
in-place updates when changing the state of an index's
- <structname>pg_index</> row. This prevents race conditions that could
+ <structname>pg_index</structname> row. This prevents race conditions that could
cause concurrent sessions to miss updating the target index, thus
again resulting in corrupt concurrently-created indexes.
</para>
<para>
Also, fix various other operations to ensure that they ignore
invalid indexes resulting from a failed <command>CREATE INDEX
- CONCURRENTLY</> command. The most important of these is
- <command>VACUUM</>, because an auto-vacuum could easily be launched
+ CONCURRENTLY</command> command. The most important of these is
+ <command>VACUUM</command>, because an auto-vacuum could easily be launched
on the table before corrective action can be taken to fix or remove
the invalid index.
</para>
<para>
- Also fix <command>DROP INDEX CONCURRENTLY</> to not disable
+ Also fix <command>DROP INDEX CONCURRENTLY</command> to not disable
insertions into the target index until all queries using it are done.
</para>
<para>
- Also fix misbehavior if <command>DROP INDEX CONCURRENTLY</> is
+ Also fix misbehavior if <command>DROP INDEX CONCURRENTLY</command> is
canceled: the previous coding could leave an un-droppable index behind.
</para>
</listitem>
<listitem>
<para>
- Correct predicate locking for <command>DROP INDEX CONCURRENTLY</>
+ Correct predicate locking for <command>DROP INDEX CONCURRENTLY</command>
(Kevin Grittner)
</para>
<para>
Previously, SSI predicate locks were processed at the wrong time,
possibly leading to incorrect behavior of serializable transactions
- executing in parallel with the <command>DROP</>.
+ executing in parallel with the <command>DROP</command>.
</para>
</listitem>
<para>
This oversight could prevent subsequent execution of certain
- operations such as <command>CREATE INDEX CONCURRENTLY</>.
+ operations such as <command>CREATE INDEX CONCURRENTLY</command>.
</para>
</listitem>
<listitem>
<para>
- Avoid bogus <quote>out-of-sequence timeline ID</> errors in standby
+ Avoid bogus <quote>out-of-sequence timeline ID</quote> errors in standby
mode (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix the syslogger process to not fail when
- <varname>log_rotation_age</> exceeds 2^31 milliseconds (about 25 days)
+ <varname>log_rotation_age</varname> exceeds 2^31 milliseconds (about 25 days)
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>WaitLatch()</> to return promptly when the requested
+ Fix <function>WaitLatch()</function> to return promptly when the requested
timeout expires (Jeff Janes, Tom Lane)
</para>
<para>
With the previous coding, a steady stream of non-wait-terminating
- interrupts could delay return from <function>WaitLatch()</>
+ interrupts could delay return from <function>WaitLatch()</function>
indefinitely. This has been shown to be a problem for the autovacuum
launcher process, and might cause trouble elsewhere as well.
</para>
<para>
The planner could derive incorrect constraints from a clause equating
a non-strict construct to something else, for example
- <literal>WHERE COALESCE(foo, 0) = 0</>
- when <literal>foo</> is coming from the nullable side of an outer join.
+ <literal>WHERE COALESCE(foo, 0) = 0</literal>
+ when <literal>foo</literal> is coming from the nullable side of an outer join.
9.2 showed this type of error in more cases than previous releases,
but the basic bug has been there for a long time.
</para>
<listitem>
<para>
- Fix <command>SELECT DISTINCT</> with index-optimized
- <function>MIN</>/<function>MAX</> on an inheritance tree (Tom Lane)
+ Fix <command>SELECT DISTINCT</command> with index-optimized
+ <function>MIN</function>/<function>MAX</function> on an inheritance tree (Tom Lane)
</para>
<para>
The planner would fail with <quote>failed to re-find MinMaxAggInfo
- record</> given this combination of factors.
+ record</quote> given this combination of factors.
</para>
</listitem>
<para>
A strict join clause can be sufficient to establish an
- <replaceable>x</> <literal>IS NOT NULL</> predicate, for example.
+ <replaceable>x</replaceable> <literal>IS NOT NULL</literal> predicate, for example.
This fixes a planner regression in 9.2, since previous versions could
make comparable deductions.
</para>
</para>
<para>
- This affects multicolumn <literal>NOT IN</> subplans, such as
- <literal>WHERE (a, b) NOT IN (SELECT x, y FROM ...)</>
- when for instance <literal>b</> and <literal>y</> are <type>int4</>
- and <type>int8</> respectively. This mistake led to wrong answers
+ This affects multicolumn <literal>NOT IN</literal> subplans, such as
+ <literal>WHERE (a, b) NOT IN (SELECT x, y FROM ...)</literal>
+ when for instance <literal>b</literal> and <literal>y</literal> are <type>int4</type>
+ and <type>int8</type> respectively. This mistake led to wrong answers
or crashes depending on the specific datatypes involved.
</para>
</listitem>
<para>
This oversight could result in wrong answers from merge joins whose
inner side is an index scan using an
- <literal><replaceable>indexed_column</> =
- ANY(<replaceable>array</>)</literal> condition.
+ <literal><replaceable>indexed_column</replaceable> =
+ ANY(<replaceable>array</replaceable>)</literal> condition.
</para>
</listitem>
<listitem>
<para>
Acquire buffer lock when re-fetching the old tuple for an
- <literal>AFTER ROW UPDATE/DELETE</> trigger (Andres Freund)
+ <literal>AFTER ROW UPDATE/DELETE</literal> trigger (Andres Freund)
</para>
<para>
In very unusual circumstances, this oversight could result in passing
- incorrect data to a trigger <literal>WHEN</> condition, or to the
+ incorrect data to a trigger <literal>WHEN</literal> condition, or to the
precheck logic for a foreign-key enforcement trigger. That could
result in a crash, or in an incorrect decision about whether to
fire the trigger.
<listitem>
<para>
- Fix <command>ALTER COLUMN TYPE</> to handle inherited check
+ Fix <command>ALTER COLUMN TYPE</command> to handle inherited check
constraints properly (Pavan Deolasee)
</para>
<listitem>
<para>
- Fix <command>ALTER EXTENSION SET SCHEMA</>'s failure to move some
+ Fix <command>ALTER EXTENSION SET SCHEMA</command>'s failure to move some
subsidiary objects into the new schema (Álvaro Herrera, Dimitri
Fontaine)
</para>
<listitem>
<para>
- Handle <command>CREATE TABLE AS EXECUTE</> correctly in extended query
+ Handle <command>CREATE TABLE AS EXECUTE</command> correctly in extended query
protocol (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Don't modify the input parse tree in <command>DROP RULE IF NOT
- EXISTS</> and <command>DROP TRIGGER IF NOT EXISTS</> (Tom Lane)
+ EXISTS</command> and <command>DROP TRIGGER IF NOT EXISTS</command> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to handle grants on tablespaces
+ Fix <command>REASSIGN OWNED</command> to handle grants on tablespaces
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Ignore incorrect <structname>pg_attribute</> entries for system
+ Ignore incorrect <structname>pg_attribute</structname> entries for system
columns for views (Tom Lane)
</para>
<listitem>
<para>
- Fix rule printing to dump <literal>INSERT INTO <replaceable>table</>
+ Fix rule printing to dump <literal>INSERT INTO <replaceable>table</replaceable>
DEFAULT VALUES</literal> correctly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Guard against stack overflow when there are too many
- <literal>UNION</>/<literal>INTERSECT</>/<literal>EXCEPT</> clauses
+ <literal>UNION</literal>/<literal>INTERSECT</literal>/<literal>EXCEPT</literal> clauses
in a query (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix failure to advance XID epoch if XID wraparound happens during a
- checkpoint and <varname>wal_level</> is <literal>hot_standby</>
+ checkpoint and <varname>wal_level</varname> is <literal>hot_standby</literal>
(Tom Lane, Andres Freund)
</para>
<para>
While this mistake had no particular impact on
<productname>PostgreSQL</productname> itself, it was bad for
- applications that rely on <function>txid_current()</> and related
+ applications that rely on <function>txid_current()</function> and related
functions: the TXID value would appear to go backwards.
</para>
</listitem>
<listitem>
<para>
- Fix <function>pg_terminate_backend()</> and
- <function>pg_cancel_backend()</> to not throw error for a non-existent
+ Fix <function>pg_terminate_backend()</function> and
+ <function>pg_cancel_backend()</function> to not throw error for a non-existent
target process (Josh Kupershmidt)
</para>
<listitem>
<para>
Fix display of
- <structname>pg_stat_replication</>.<structfield>sync_state</> at a
+ <structname>pg_stat_replication</structname>.<structfield>sync_state</structfield> at a
page boundary (Kyotaro Horiguchi)
</para>
</listitem>
<para>
Formerly, this would result in something quite unhelpful, such as
- <quote>Non-recoverable failure in name resolution</>.
+ <quote>Non-recoverable failure in name resolution</quote>.
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_ctl</> more robust about reading the
- <filename>postmaster.pid</> file (Heikki Linnakangas)
+ Make <application>pg_ctl</application> more robust about reading the
+ <filename>postmaster.pid</filename> file (Heikki Linnakangas)
</para>
<para>
<listitem>
<para>
- Fix possible crash in <application>psql</> if incorrectly-encoded data
- is presented and the <varname>client_encoding</> setting is a
+ Fix possible crash in <application>psql</application> if incorrectly-encoded data
+ is presented and the <varname>client_encoding</varname> setting is a
client-only encoding, such as SJIS (Jiang Guiqing)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> dump <literal>SEQUENCE SET</> items in
+ Make <application>pg_dump</application> dump <literal>SEQUENCE SET</literal> items in
the data not pre-data section of the archive (Tom Lane)
</para>
<para>
This fixes an undesirable inconsistency between the meanings of
- <option>--data-only</> and <option>--section=data</>, and also fixes
+ <option>--data-only</option> and <option>--section=data</option>, and also fixes
dumping of sequences that are marked as extension configuration tables.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</>'s handling of <command>DROP DATABASE</>
- commands in <option>--clean</> mode (Guillaume Lelarge)
+ Fix <application>pg_dump</application>'s handling of <command>DROP DATABASE</command>
+ commands in <option>--clean</option> mode (Guillaume Lelarge)
</para>
<para>
- Beginning in 9.2.0, <literal>pg_dump --clean</> would issue a
- <command>DROP DATABASE</> command, which was either useless or
+ Beginning in 9.2.0, <literal>pg_dump --clean</literal> would issue a
+ <command>DROP DATABASE</command> command, which was either useless or
dangerous depending on the usage scenario. It no longer does that.
- This change also fixes the combination of <option>--clean</> and
- <option>--create</> to work sensibly, i.e., emit <command>DROP
- DATABASE</> then <command>CREATE DATABASE</> before reconnecting to the
+ This change also fixes the combination of <option>--clean</option> and
+ <option>--create</option> to work sensibly, i.e., emit <command>DROP
+ DATABASE</command> then <command>CREATE DATABASE</command> before reconnecting to the
target database.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> for views with circular dependencies and
+ Fix <application>pg_dump</application> for views with circular dependencies and
no relation options (Tom Lane)
</para>
The previous fix to dump relation options when a view is
involved in a circular dependency didn't work right for the case
that the view has no options; it emitted <literal>ALTER VIEW foo
- SET ()</> which is invalid syntax.
+ SET ()</literal> which is invalid syntax.
</para>
</listitem>
<listitem>
<para>
- Fix bugs in the <filename>restore.sql</> script emitted by
- <application>pg_dump</> in <literal>tar</> output format (Tom Lane)
+ Fix bugs in the <filename>restore.sql</filename> script emitted by
+ <application>pg_dump</application> in <literal>tar</literal> output format (Tom Lane)
</para>
<para>
The script would fail outright on tables whose names include
upper-case characters. Also, make the script capable of restoring
- data in <option>--inserts</> mode as well as the regular COPY mode.
+ data in <option>--inserts</option> mode as well as the regular COPY mode.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_restore</> to accept POSIX-conformant
- <literal>tar</> files (Brian Weaver, Tom Lane)
+ Fix <application>pg_restore</application> to accept POSIX-conformant
+ <literal>tar</literal> files (Brian Weaver, Tom Lane)
</para>
<para>
- The original coding of <application>pg_dump</>'s <literal>tar</>
+ The original coding of <application>pg_dump</application>'s <literal>tar</literal>
output mode produced files that are not fully conformant with the
POSIX standard. This has been corrected for version 9.3. This
patch updates previous branches so that they will accept both the
<listitem>
<para>
- Fix <literal>tar</> files emitted by <application>pg_basebackup</> to
+ Fix <literal>tar</literal> files emitted by <application>pg_basebackup</application> to
be POSIX conformant (Brian Weaver, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_resetxlog</> to locate <filename>postmaster.pid</>
+ Fix <application>pg_resetxlog</application> to locate <filename>postmaster.pid</filename>
correctly when given a relative path to the data directory (Tom Lane)
</para>
<para>
- This mistake could lead to <application>pg_resetxlog</> not noticing
+ This mistake could lead to <application>pg_resetxlog</application> not noticing
that there is an active postmaster using the data directory.
</para>
</listitem>
<listitem>
<para>
- Fix <application>libpq</>'s <function>lo_import()</> and
- <function>lo_export()</> functions to report file I/O errors properly
+ Fix <application>libpq</application>'s <function>lo_import()</function> and
+ <function>lo_export()</function> functions to report file I/O errors properly
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>'s processing of nested structure pointer
+ Fix <application>ecpg</application>'s processing of nested structure pointer
variables (Muhammad Usama)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>'s <function>ecpg_get_data</> function to
+ Fix <application>ecpg</application>'s <function>ecpg_get_data</function> function to
handle arrays properly (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Prevent <application>pg_upgrade</> from trying to process TOAST tables
+ Prevent <application>pg_upgrade</application> from trying to process TOAST tables
for system catalogs (Bruce Momjian)
</para>
<para>
- This fixes an error seen when the <literal>information_schema</> has
+ This fixes an error seen when the <literal>information_schema</literal> has
been dropped and recreated. Other failures were also possible.
</para>
</listitem>
<listitem>
<para>
- Improve <application>pg_upgrade</> performance by setting
- <varname>synchronous_commit</> to <literal>off</> in the new cluster
+ Improve <application>pg_upgrade</application> performance by setting
+ <varname>synchronous_commit</varname> to <literal>off</literal> in the new cluster
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Make <filename>contrib/pageinspect</>'s btree page inspection
+ Make <filename>contrib/pageinspect</filename>'s btree page inspection
functions take buffer locks while examining pages (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Work around unportable behavior of <literal>malloc(0)</> and
- <literal>realloc(NULL, 0)</> (Tom Lane)
+ Work around unportable behavior of <literal>malloc(0)</literal> and
+ <literal>realloc(NULL, 0)</literal> (Tom Lane)
</para>
<para>
- On platforms where these calls return <literal>NULL</>, some code
+ On platforms where these calls return <literal>NULL</literal>, some code
mistakenly thought that meant out-of-memory.
- This is known to have broken <application>pg_dump</> for databases
+ This is known to have broken <application>pg_dump</application> for databases
containing no user-defined aggregates. There might be other cases
as well.
</para>
<listitem>
<para>
- Ensure that <literal>make install</> for an extension creates the
- <filename>extension</> installation directory (Cédric Villemain)
+ Ensure that <literal>make install</literal> for an extension creates the
+ <filename>extension</filename> installation directory (Cédric Villemain)
</para>
<para>
- Previously, this step was missed if <varname>MODULEDIR</> was set in
+ Previously, this step was missed if <varname>MODULEDIR</varname> was set in
the extension's Makefile.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pgxs</> support for building loadable modules on AIX
+ Fix <application>pgxs</application> support for building loadable modules on AIX
(Tom Lane)
</para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2012j
+ Update time zone data files to <application>tzdata</application> release 2012j
for DST law changes in Cuba, Israel, Jordan, Libya, Palestine, Western
Samoa, and portions of Brazil.
</para>
</para>
<para>
- However, you may need to perform <command>REINDEX</> and/or
- <command>VACUUM</> operations to recover from the effects of the data
+ However, you may need to perform <command>REINDEX</command> and/or
+ <command>VACUUM</command> operations to recover from the effects of the data
corruption bug described in the first changelog item below.
</para>
likely to occur on standby slave servers since those perform much
more WAL replay. There is a low probability of corruption of btree
and GIN indexes. There is a much higher probability of corruption
- of table <quote>visibility maps</>, which might lead to wrong answers
+ of table <quote>visibility maps</quote>, which might lead to wrong answers
from index-only scans. Table data proper cannot be corrupted by this
bug.
</para>
<para>
While no index corruption due to this bug is known to have occurred
in the field, as a precautionary measure it is recommended that
- production installations <command>REINDEX</> all btree and GIN
+ production installations <command>REINDEX</command> all btree and GIN
indexes at a convenient time after upgrading to 9.2.1.
</para>
<para>
- Also, it is recommended to perform a <command>VACUUM</> of all tables
+ Also, it is recommended to perform a <command>VACUUM</command> of all tables
while having <link
- linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</></link>
+ linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</varname></link>
set to zero. This will fix any incorrect visibility map data. <link
- linkend="guc-vacuum-cost-delay"><varname>vacuum_cost_delay</></link>
+ linkend="guc-vacuum-cost-delay"><varname>vacuum_cost_delay</varname></link>
can be adjusted to reduce the performance impact of vacuuming, while
causing it to take longer to finish.
</para>
<listitem>
<para>
Fix possible incorrect sorting of output from queries involving
- <literal>WHERE <replaceable>indexed_column</> IN
- (<replaceable>list_of_values</>)</literal> (Tom Lane)
+ <literal>WHERE <replaceable>indexed_column</replaceable> IN
+ (<replaceable>list_of_values</replaceable>)</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix planner failure for queries involving <literal>GROUP BY</>
+ Fix planner failure for queries involving <literal>GROUP BY</literal>
expressions along with window functions and aggregates (Tom Lane)
</para>
</listitem>
<para>
This error could result in wrong answers from queries that scan the
- same <literal>WITH</> subquery multiple times.
+ same <literal>WITH</literal> subquery multiple times.
</para>
</listitem>
<listitem>
<para>
Improve selectivity estimation for text search queries involving
- prefixes, i.e. <replaceable>word</><literal>:*</> patterns (Tom Lane)
+ prefixes, i.e. <replaceable>word</replaceable><literal>:*</literal> patterns (Tom Lane)
</para>
</listitem>
<para>
A command that needed no locks other than ones its transaction already
- had might fail to notice a concurrent <command>GRANT</> or
- <command>REVOKE</> that committed since the start of its transaction.
+ had might fail to notice a concurrent <command>GRANT</command> or
+ <command>REVOKE</command> that committed since the start of its transaction.
</para>
</listitem>
<listitem>
<para>
- Fix <command>ANALYZE</> to not fail when a column is a domain over an
+ Fix <command>ANALYZE</command> to not fail when a column is a domain over an
array type (Tom Lane)
</para>
</listitem>
<para>
Some Linux distributions contain an incorrect version of
- <filename>pthread.h</> that results in incorrect compiled code in
+ <filename>pthread.h</filename> that results in incorrect compiled code in
PL/Perl, leading to crashes if a PL/Perl function calls another one
that throws an error.
</para>
<listitem>
<para>
- Remove unnecessary dependency on <application>pg_config</> from
- <application>pg_upgrade</> (Peter Eisentraut)
+ Remove unnecessary dependency on <application>pg_config</application> from
+ <application>pg_upgrade</application> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2012f
+ Update time zone data files to <application>tzdata</application> release 2012f
for DST law changes in Fiji
</para>
</listitem>
<listitem>
<para>
Allow queries to retrieve data only from indexes, avoiding heap
- access (<firstterm>index-only scans</>)
+ access (<firstterm>index-only scans</firstterm>)
</para>
</listitem>
<para>
Allow streaming replication slaves to forward data to other slaves
(<link linkend="cascading-replication"><firstterm>cascading
- replication</></link>)
+ replication</firstterm></link>)
</para>
</listitem>
<listitem>
<para>
Allow <link
- linkend="app-pgbasebackup"><application>pg_basebackup</></link>
+ linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
to make base backups from standby servers
</para>
</listitem>
<listitem>
<para>
Add a <link
- linkend="app-pgreceivewal"><application>pg_receivexlog</></link>
+ linkend="app-pgreceivewal"><application>pg_receivexlog</application></link>
tool to archive WAL file changes as they are written
</para>
</listitem>
<listitem>
<para>
- Add the <link linkend="SPGiST">SP-GiST</link> (Space-Partitioned
+ Add the <link linkend="spgist">SP-GiST</link> (Space-Partitioned
GiST) index access method
</para>
</listitem>
<listitem>
<para>
Add a <link
- linkend="SQL-CREATEVIEW"><literal>security_barrier</></link>
+ linkend="sql-createview"><literal>security_barrier</literal></link>
option for views
</para>
</listitem>
<listitem>
<para>
- Allow <application>libpq</> connection strings to have the format of a
+ Allow <application>libpq</application> connection strings to have the format of a
<link linkend="libpq-connstring"><acronym>URI</acronym></link>
</para>
</listitem>
<listitem>
<para>
Add a <link linkend="libpq-single-row-mode">single-row processing
- mode</link> to <application>libpq</> for better handling of large
+ mode</link> to <application>libpq</application> for better handling of large
result sets
</para>
</listitem>
<listitem>
<para>
- Remove the <structfield>spclocation</> field from <link
- linkend="catalog-pg-tablespace"><structname>pg_tablespace</></link>
+ Remove the <structfield>spclocation</structfield> field from <link
+ linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname></link>
(Magnus Hagander)
</para>
a tablespace. This change allows tablespace directories to be moved
while the server is down, by manually adjusting the symbolic links.
To replace this field, we have added <link
- linkend="functions-info-catalog-table"><function>pg_tablespace_location()</></link>
+ linkend="functions-info-catalog-table"><function>pg_tablespace_location()</function></link>
to allow querying of the symbolic links.
</para>
</listitem>
<listitem>
<para>
- Move <type>tsvector</> most-common-element statistics to new
- <link linkend="view-pg-stats"><structname>pg_stats</></link> columns
+ Move <type>tsvector</type> most-common-element statistics to new
+ <link linkend="view-pg-stats"><structname>pg_stats</structname></link> columns
(Alexander Korotkov)
</para>
<para>
- Consult <structfield>most_common_elems</>
- and <structfield>most_common_elem_freqs</> for the data formerly
- available in <structfield>most_common_vals</>
- and <structfield>most_common_freqs</> for a <type>tsvector</> column.
+ Consult <structfield>most_common_elems</structfield>
+ and <structfield>most_common_elem_freqs</structfield> for the data formerly
+ available in <structfield>most_common_vals</structfield>
+ and <structfield>most_common_freqs</structfield> for a <type>tsvector</type> column.
</para>
</listitem>
<listitem>
<para>
- Remove <link linkend="hstore">hstore</link>'s <literal>=></>
+ Remove <link linkend="hstore">hstore</link>'s <literal>=></literal>
operator (Robert Haas)
</para>
<para>
- Users should now use <function>hstore(text, text)</>. Since
+ Users should now use <function>hstore(text, text)</function>. Since
<productname>PostgreSQL</productname> 9.0, a warning message has been
- emitted when an operator named <literal>=></> is created because
+ emitted when an operator named <literal>=></literal> is created because
the <acronym>SQL</acronym> standard reserves that token for
another use.
</para>
<listitem>
<para>
Ensure that <link
- linkend="functions-xml-processing"><function>xpath()</></link>
+ linkend="functions-xml-processing"><function>xpath()</function></link>
escapes special characters in string values (Florian Pflug)
</para>
<listitem>
<para>
Make <link
- linkend="functions-admin-dbobject"><function>pg_relation_size()</></link>
+ linkend="functions-admin-dbobject"><function>pg_relation_size()</function></link>
and friends return NULL if the object does not exist (Phil Sorber)
</para>
<para>
This prevents queries that call these functions from returning
- errors immediately after a concurrent <command>DROP</>.
+ errors immediately after a concurrent <command>DROP</command>.
</para>
</listitem>
<para>
Make <link
linkend="functions-datetime-extract"><function>EXTRACT(EPOCH FROM
- <replaceable>timestamp without time zone</>)</function></link>
+ <replaceable>timestamp without time zone</replaceable>)</function></link>
measure the epoch from local midnight, not <acronym>UTC</acronym>
midnight (Tom Lane)
</para>
This change reverts an ill-considered change made in release 7.3.
Measuring from <acronym>UTC</acronym> midnight was inconsistent
because it made the result dependent on the <link
- linkend="guc-timezone"><varname>timezone</></link> setting, which
- computations for <type>timestamp without time zone</> should not be.
+ linkend="guc-timezone"><varname>timezone</varname></link> setting, which
+ computations for <type>timestamp without time zone</type> should not be.
The previous behavior remains available by casting the input value
- to <type>timestamp with time zone</>.
+ to <type>timestamp with time zone</type>.
</para>
</listitem>
<listitem>
<para>
- Properly parse time strings with trailing <literal>yesterday</>,
- <literal>today</>, and <literal>tomorrow</> (Dean Rasheed)
+ Properly parse time strings with trailing <literal>yesterday</literal>,
+ <literal>today</literal>, and <literal>tomorrow</literal> (Dean Rasheed)
</para>
<para>
<listitem>
<para>
Fix <link
- linkend="functions-formatting"><function>to_date()</></link> and
- <function>to_timestamp()</> to wrap incomplete dates toward 2020
+ linkend="functions-formatting"><function>to_date()</function></link> and
+ <function>to_timestamp()</function> to wrap incomplete dates toward 2020
(Bruce Momjian)
</para>
<listitem>
<para>
- Prevent <link linkend="SQL-ALTERDOMAIN"><command>ALTER
+ Prevent <link linkend="sql-alterdomain"><command>ALTER
DOMAIN</command></link> from working on non-domain types (Peter
Eisentraut)
</para>
<listitem>
<para>
No longer forcibly lowercase procedural language names in <link
- linkend="SQL-CREATEFUNCTION"><command>CREATE FUNCTION</></link>
+ linkend="sql-createfunction"><command>CREATE FUNCTION</command></link>
(Robert Haas)
</para>
<para>
While unquoted language identifiers are still lowercased, strings
and quoted identifiers are no longer forcibly down-cased.
- Thus for example <literal>CREATE FUNCTION ... LANGUAGE 'C'</>
- will no longer work; it must be spelled <literal>'c'</>, or better
+ Thus for example <literal>CREATE FUNCTION ... LANGUAGE 'C'</literal>
+ will no longer work; it must be spelled <literal>'c'</literal>, or better
omit the quotes.
</para>
</listitem>
<para>
Provide consistent backquote, variable
expansion, and quoted substring behavior in <link
- linkend="APP-PSQL"><application>psql</></link> meta-command
+ linkend="app-psql"><application>psql</application></link> meta-command
arguments (Tom Lane)
</para>
<para>
Previously, such references were treated oddly when not separated by
- whitespace from adjacent text. For example <literal>'FOO'BAR</> was
- output as <literal>FOO BAR</> (unexpected insertion of a space) and
- <literal>FOO'BAR'BAZ</> was output unchanged (not removing the quotes
+ whitespace from adjacent text. For example <literal>'FOO'BAR</literal> was
+ output as <literal>FOO BAR</literal> (unexpected insertion of a space) and
+ <literal>FOO'BAR'BAZ</literal> was output unchanged (not removing the quotes
as most would expect).
</para>
</listitem>
<listitem>
<para>
No longer treat <link
- linkend="APP-CLUSTERDB"><application>clusterdb</></link>
+ linkend="app-clusterdb"><application>clusterdb</application></link>
table names as double-quoted; no longer treat <link
- linkend="APP-REINDEXDB"><application>reindexdb</></link> table
+ linkend="app-reindexdb"><application>reindexdb</application></link> table
and index names as double-quoted (Bruce Momjian)
</para>
<listitem>
<para>
- <link linkend="APP-CREATEUSER"><application>createuser</></link>
+ <link linkend="app-createuser"><application>createuser</application></link>
no longer prompts for option settings by default (Peter Eisentraut)
</para>
<para>
- Use <option>--interactive</> to obtain the old behavior.
+ Use <option>--interactive</option> to obtain the old behavior.
</para>
</listitem>
<listitem>
<para>
Disable prompting for the user name in <link
- linkend="APP-DROPUSER"><application>dropuser</></link> unless
- <option>--interactive</> is specified (Peter Eisentraut)
+ linkend="app-dropuser"><application>dropuser</application></link> unless
+ <option>--interactive</option> is specified (Peter Eisentraut)
</para>
</listitem>
<para>
This allows changing the names and locations of the files that were
- previously hard-coded as <filename>server.crt</>,
- <filename>server.key</>, <filename>root.crt</>, and
- <filename>root.crl</> in the data directory.
- <emphasis>The server will no longer examine <filename>root.crt</> or
- <filename>root.crl</> by default</emphasis>; to load these files, the
+ previously hard-coded as <filename>server.crt</filename>,
+ <filename>server.key</filename>, <filename>root.crt</filename>, and
+ <filename>root.crl</filename> in the data directory.
+ <emphasis>The server will no longer examine <filename>root.crt</filename> or
+ <filename>root.crl</filename> by default</emphasis>; to load these files, the
associated parameters must be set to non-default values.
</para>
</listitem>
<listitem>
<para>
- Remove the <varname>silent_mode</> parameter (Heikki Linnakangas)
+ Remove the <varname>silent_mode</varname> parameter (Heikki Linnakangas)
</para>
<para>
Similar behavior can be obtained with <command>pg_ctl start
- -l postmaster.log</>.
+ -l postmaster.log</command>.
</para>
</listitem>
<listitem>
<para>
- Remove the <varname>wal_sender_delay</> parameter,
+ Remove the <varname>wal_sender_delay</varname> parameter,
as it is no longer needed (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Remove the <varname>custom_variable_classes</> parameter (Tom Lane)
+ Remove the <varname>custom_variable_classes</varname> parameter (Tom Lane)
</para>
<para>
<listitem>
<para>
Rename <link
- linkend="monitoring-stats-views-table"><structname>pg_stat_activity</></link><structfield>.procpid</>
- to <structfield>pid</>, to match other system tables (Magnus Hagander)
+ linkend="monitoring-stats-views-table"><structname>pg_stat_activity</structname></link><structfield>.procpid</structfield>
+ to <structfield>pid</structfield>, to match other system tables (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
- Create a separate <structfield>pg_stat_activity</> column to
+ Create a separate <structfield>pg_stat_activity</structfield> column to
report process state (Scott Mead, Magnus Hagander)
</para>
<para>
- The previous <structfield>query</> and <structfield>query_start</>
+ The previous <structfield>query</structfield> and <structfield>query_start</structfield>
values now remain available for an idle session, allowing enhanced
analysis.
</para>
<listitem>
<para>
- Rename <structname>pg_stat_activity</>.<structfield>current_query</> to
- <structfield>query</> because it is not cleared when the query
+ Rename <structname>pg_stat_activity</structname>.<structfield>current_query</structfield> to
+ <structfield>query</structfield> because it is not cleared when the query
completes (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
Change all <acronym>SQL</acronym>-level statistics timing values
- to be <type>float8</> columns measured in milliseconds (Tom Lane)
+ to be <type>float8</type> columns measured in milliseconds (Tom Lane)
</para>
<para>
This change eliminates the designed-in assumption that the values
- are accurate to microseconds and no more (since the <type>float8</>
+ are accurate to microseconds and no more (since the <type>float8</type>
values can be fractional).
The columns affected are
- <structname>pg_stat_user_functions</>.<structfield>total_time</>,
- <structname>pg_stat_user_functions</>.<structfield>self_time</>,
- <structname>pg_stat_xact_user_functions</>.<structfield>total_time</>,
+ <structname>pg_stat_user_functions</structname>.<structfield>total_time</structfield>,
+ <structname>pg_stat_user_functions</structname>.<structfield>self_time</structfield>,
+ <structname>pg_stat_xact_user_functions</structname>.<structfield>total_time</structfield>,
and
- <structname>pg_stat_xact_user_functions</>.<structfield>self_time</>.
+ <structname>pg_stat_xact_user_functions</structname>.<structfield>self_time</structfield>.
The statistics functions underlying these columns now also return
- <type>float8</> milliseconds, rather than <type>bigint</>
+ <type>float8</type> milliseconds, rather than <type>bigint</type>
microseconds.
- <filename>contrib/pg_stat_statements</>'
- <structfield>total_time</> column is now also measured in
+ <filename>contrib/pg_stat_statements</filename>'
+ <structfield>total_time</structfield> column is now also measured in
milliseconds.
</para>
</listitem>
</para>
<para>
- This feature is often called <firstterm>index-only scans</>.
+ This feature is often called <firstterm>index-only scans</firstterm>.
Heap access can be skipped for heap pages containing only tuples that
are visible to all sessions, as reported by the visibility map; so
the benefit applies mainly to mostly-static data. The visibility map
<listitem>
<para>
- Add the <link linkend="SPGiST">SP-GiST</link> (Space-Partitioned
+ Add the <link linkend="spgist">SP-GiST</link> (Space-Partitioned
GiST) index access method (Teodor Sigaev, Oleg Bartunov, Tom
Lane)
</para>
<listitem>
<para>
- Move the frequently accessed members of the <structname>PGPROC</>
+ Move the frequently accessed members of the <structname>PGPROC</structname>
shared memory array to a separate array (Pavan
Deolasee, Heikki Linnakangas, Robert Haas)
</para>
<listitem>
<para>
Make the number of CLOG buffers scale based on <link
- linkend="guc-shared-buffers"><varname>shared_buffers</></link>
+ linkend="guc-shared-buffers"><varname>shared_buffers</varname></link>
(Robert Haas, Simon Riggs, Tom Lane)
</para>
</listitem>
<para>
Previously, only <link
- linkend="guc-wal-writer-delay"><varname>wal_writer_delay</></link>
+ linkend="guc-wal-writer-delay"><varname>wal_writer_delay</varname></link>
triggered <acronym>WAL</acronym> flushing to disk; now filling a
<acronym>WAL</acronym> buffer also triggers <acronym>WAL</acronym>
writes.
<para>
In the past, a prepared statement always had a single
- <quote>generic</> plan that was used for all parameter values, which
+ <quote>generic</quote> plan that was used for all parameter values, which
was frequently much inferior to the plans used for non-prepared
statements containing explicit constant values. Now, the planner
attempts to generate custom plans for specific parameter values.
</para>
<para>
- The new <quote>parameterized path</> mechanism allows inner
+ The new <quote>parameterized path</quote> mechanism allows inner
index scans to use values from relations that are more than one join
level up from the scan. This can greatly improve performance in
situations where semantic restrictions (such as outer joins) limit
</para>
<para>
- Wrappers can now provide multiple access <quote>paths</> for their
+ Wrappers can now provide multiple access <quote>paths</quote> for their
tables, allowing more flexibility in join planning.
</para>
</listitem>
<para>
This check is only performed when <link
- linkend="guc-constraint-exclusion"><varname>constraint_exclusion</></link>
+ linkend="guc-constraint-exclusion"><varname>constraint_exclusion</varname></link>
is <literal>on</literal>.
</para>
</listitem>
<listitem>
<para>
- Allow <literal>indexed_col op ANY(ARRAY[...])</> conditions to be
+ Allow <literal>indexed_col op ANY(ARRAY[...])</literal> conditions to be
used in plain index scans and index-only scans (Tom Lane)
</para>
<listitem>
<para>
- Support <function>MIN</>/<function>MAX</> index optimizations on
+ Support <function>MIN</function>/<function>MAX</function> index optimizations on
<type>boolean</type> columns (Marti Raudsepp)
</para>
</listitem>
<listitem>
<para>
- Account for set-returning functions in <command>SELECT</> target
+ Account for set-returning functions in <command>SELECT</command> target
lists when setting row count estimates (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve statistical estimates for subqueries using
- <literal>DISTINCT</> (Tom Lane)
+ <literal>DISTINCT</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Do not treat role names and <literal>samerole</> specified in <link
+ Do not treat role names and <literal>samerole</literal> specified in <link
linkend="auth-pg-hba-conf"><filename>pg_hba.conf</filename></link>
as automatically including superusers (Andrew Dunstan)
</para>
<para>
- This makes it easier to use <literal>reject</> lines with group roles.
+ This makes it easier to use <literal>reject</literal> lines with group roles.
</para>
</listitem>
<para>
This logging is triggered by <link
- linkend="guc-log-autovacuum-min-duration"><varname>log_autovacuum_min_duration</></link>.
+ linkend="guc-log-autovacuum-min-duration"><varname>log_autovacuum_min_duration</varname></link>.
</para>
</listitem>
<listitem>
<para>
Add <link
- linkend="functions-admin-backup"><function>pg_xlog_location_diff()</></link>
+ linkend="functions-admin-backup"><function>pg_xlog_location_diff()</function></link>
to simplify WAL location comparisons (Euler Taveira de Oliveira)
</para>
<para>
This allows different instances to use the event log
with different identifiers, by setting the <link
- linkend="guc-event-source"><varname>event_source</></link>
+ linkend="guc-event-source"><varname>event_source</varname></link>
server parameter, which is similar to how <link
- linkend="guc-syslog-ident"><varname>syslog_ident</></link> works.
+ linkend="guc-syslog-ident"><varname>syslog_ident</varname></link> works.
</para>
</listitem>
<listitem>
<para>
- Change <quote>unexpected EOF</> messages to <literal>DEBUG1</> level,
+ Change <quote>unexpected EOF</quote> messages to <literal>DEBUG1</literal> level,
except when there is an open transaction (Magnus Hagander)
</para>
<listitem>
<para>
Track temporary file sizes and file counts in the <link
- linkend="pg-stat-database-view"><structname>pg_stat_database</></link>
+ linkend="pg-stat-database-view"><structname>pg_stat_database</structname></link>
system view (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
- Add a deadlock counter to the <structname>pg_stat_database</>
+ Add a deadlock counter to the <structname>pg_stat_database</structname>
system view (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
Add a server parameter <link
- linkend="guc-track-io-timing"><varname>track_io_timing</></link>
+ linkend="guc-track-io-timing"><varname>track_io_timing</varname></link>
to track I/O timings (Ants Aasma, Robert Haas)
</para>
</listitem>
<listitem>
<para>
Report checkpoint timing information in <link
- linkend="pg-stat-bgwriter-view"><structname>pg_stat_bgwriter</></link>
+ linkend="pg-stat-bgwriter-view"><structname>pg_stat_bgwriter</structname></link>
(Greg Smith, Peter Geoghegan)
</para>
</listitem>
<listitem>
<para>
Silently ignore nonexistent schemas specified in <link
- linkend="guc-search-path"><varname>search_path</></link> (Tom Lane)
+ linkend="guc-search-path"><varname>search_path</varname></link> (Tom Lane)
</para>
<para>
<listitem>
<para>
Allow superusers to set <link
- linkend="guc-deadlock-timeout"><varname>deadlock_timeout</></link>
+ linkend="guc-deadlock-timeout"><varname>deadlock_timeout</varname></link>
per-session, not just per-cluster (Noah Misch)
</para>
<para>
- This allows <varname>deadlock_timeout</> to be reduced for
+ This allows <varname>deadlock_timeout</varname> to be reduced for
transactions that are likely to be involved in a deadlock, thus
detecting the failure more quickly. Alternatively, increasing the
value can be used to reduce the chances of a session being chosen for
<listitem>
<para>
Add a server parameter <link
- linkend="guc-temp-file-limit"><varname>temp_file_limit</></link>
+ linkend="guc-temp-file-limit"><varname>temp_file_limit</varname></link>
to constrain temporary file space usage per session (Mark Kirkwood)
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="app-postmaster">postmaster</link> <option>-C</>
+ Add <link linkend="app-postmaster">postmaster</link> <option>-C</option>
option to query configuration parameters (Bruce Momjian)
</para>
<para>
- This allows <application>pg_ctl</> to better handle cases where
- <envar>PGDATA</> or <option>-D</> points to a configuration-only
+ This allows <application>pg_ctl</application> to better handle cases where
+ <envar>PGDATA</envar> or <option>-D</option> points to a configuration-only
directory.
</para>
</listitem>
<listitem>
<para>
Replace an empty locale name with the implied value in
- <command>CREATE DATABASE</>
+ <command>CREATE DATABASE</command>
(Tom Lane)
</para>
<para>
This prevents cases where
- <structname>pg_database</>.<structfield>datcollate</> or
- <structfield>datctype</> could be interpreted differently after a
+ <structname>pg_database</structname>.<structfield>datcollate</structfield> or
+ <structfield>datctype</structfield> could be interpreted differently after a
server restart.
</para>
</listitem>
<listitem>
<para>
- Add an <literal>include_if_exists</> facility for configuration
+ Add an <literal>include_if_exists</literal> facility for configuration
files (Greg Smith)
</para>
<para>
- This works the same as <literal>include</>, except that an error
+ This works the same as <literal>include</literal>, except that an error
is not thrown if the file is missing.
</para>
</listitem>
<listitem>
<para>
- Identify the server time zone during <application>initdb</>, and set
+ Identify the server time zone during <application>initdb</application>, and set
<filename>postgresql.conf</filename> entries
- <link linkend="guc-timezone"><varname>timezone</></link> and
- <link linkend="guc-log-timezone"><varname>log_timezone</></link>
+ <link linkend="guc-timezone"><varname>timezone</varname></link> and
+ <link linkend="guc-log-timezone"><varname>log_timezone</varname></link>
accordingly (Tom Lane)
</para>
<listitem>
<para>
Fix <link
- linkend="view-pg-settings"><structname>pg_settings</></link> to
+ linkend="view-pg-settings"><structname>pg_settings</structname></link> to
report <filename>postgresql.conf</filename> line numbers on Windows
(Tom Lane)
</para>
<para>
Allow streaming replication slaves to forward data to other slaves
(<link linkend="cascading-replication"><firstterm>cascading
- replication</></link>) (Fujii Masao)
+ replication</firstterm></link>) (Fujii Masao)
</para>
<para>
<listitem>
<para>
Add new <link
- linkend="guc-synchronous-commit"><varname>synchronous_commit</></link>
- mode <literal>remote_write</> (Fujii Masao, Simon Riggs)
+ linkend="guc-synchronous-commit"><varname>synchronous_commit</varname></link>
+ mode <literal>remote_write</literal> (Fujii Masao, Simon Riggs)
</para>
<para>
<listitem>
<para>
Add a <link
- linkend="app-pgreceivewal"><application>pg_receivexlog</></link>
+ linkend="app-pgreceivewal"><application>pg_receivexlog</application></link>
tool to archive WAL file changes as they are written, rather
than waiting for completed WAL files (Magnus Hagander)
</para>
<listitem>
<para>
Allow <link
- linkend="app-pgbasebackup"><application>pg_basebackup</></link>
+ linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
to make base backups from standby servers (Jun Ishizuka, Fujii Masao)
</para>
<listitem>
<para>
- Allow streaming of WAL files while <application>pg_basebackup</>
+ Allow streaming of WAL files while <application>pg_basebackup</application>
is performing a backup (Magnus Hagander)
</para>
<para>
This change allows better results when a row value is converted to
- <type>hstore</> or <type>json</> type: the fields of the resulting
+ <type>hstore</type> or <type>json</type> type: the fields of the resulting
value will now have the expected names.
</para>
</listitem>
<listitem>
<para>
- Improve column labels used for sub-<command>SELECT</> results
+ Improve column labels used for sub-<command>SELECT</command> results
(Marti Raudsepp)
</para>
<para>
- Previously, the generic label <literal>?column?</> was used.
+ Previously, the generic label <literal>?column?</literal> was used.
</para>
</listitem>
<listitem>
<para>
- When a row fails a <literal>CHECK</> or <literal>NOT NULL</>
+ When a row fails a <literal>CHECK</literal> or <literal>NOT NULL</literal>
constraint, show the row's contents as error detail (Jan
Kundrát)
</para>
<para>
This change adds locking that should eliminate <quote>cache lookup
- failed</> errors in many scenarios. Also, it is no longer possible
+ failed</quote> errors in many scenarios. Also, it is no longer possible
to add relations to a schema that is being concurrently dropped, a
scenario that formerly led to inconsistent system catalog contents.
</para>
<listitem>
<para>
- Add <literal>CONCURRENTLY</> option to <link
- linkend="SQL-DROPINDEX"><command>DROP INDEX</command></link>
+ Add <literal>CONCURRENTLY</literal> option to <link
+ linkend="sql-dropindex"><command>DROP INDEX</command></link>
(Simon Riggs)
</para>
<listitem>
<para>
- Allow <link linkend="ddl-constraints"><literal>CHECK</></link>
- constraints to be declared <literal>NOT VALID</> (Álvaro
+ Allow <link linkend="ddl-constraints"><literal>CHECK</literal></link>
+ constraints to be declared <literal>NOT VALID</literal> (Álvaro
Herrera)
</para>
<para>
- Adding a <literal>NOT VALID</> constraint does not cause the table to
+ Adding a <literal>NOT VALID</literal> constraint does not cause the table to
be scanned to verify that existing rows meet the constraint.
Subsequently, newly added or updated rows are checked.
Such constraints are ignored by the planner when considering
- <varname>constraint_exclusion</>, since it is not certain that all
+ <varname>constraint_exclusion</varname>, since it is not certain that all
rows meet the constraint.
</para>
<para>
- The new <command>ALTER TABLE VALIDATE</> command allows <literal>NOT
- VALID</> constraints to be checked for existing rows, after which
+ The new <command>ALTER TABLE VALIDATE</command> command allows <literal>NOT
+ VALID</literal> constraints to be checked for existing rows, after which
they are converted into ordinary constraints.
</para>
</listitem>
<listitem>
<para>
- Allow <literal>CHECK</> constraints to be declared <literal>NO
- INHERIT</> (Nikhil Sontakke, Alex Hunsaker, Álvaro Herrera)
+ Allow <literal>CHECK</literal> constraints to be declared <literal>NO
+ INHERIT</literal> (Nikhil Sontakke, Alex Hunsaker, Álvaro Herrera)
</para>
<para>
<listitem>
<para>
- Add the ability to <link linkend="SQL-ALTERTABLE">rename</link>
+ Add the ability to <link linkend="sql-altertable">rename</link>
constraints (Peter Eisentraut)
</para>
</listitem>
</sect4>
<sect4>
- <title><command>ALTER</></title>
+ <title><command>ALTER</command></title>
<itemizedlist>
<listitem>
<para>
Reduce need to rebuild tables and indexes for certain <link
- linkend="SQL-ALTERTABLE"><command>ALTER TABLE</command></link>
- ... <literal>ALTER COLUMN TYPE</> operations (Noah Misch)
+ linkend="sql-altertable"><command>ALTER TABLE</command></link>
+ ... <literal>ALTER COLUMN TYPE</literal> operations (Noah Misch)
</para>
<para>
- Increasing the length limit for a <type>varchar</> or <type>varbit</>
+ Increasing the length limit for a <type>varchar</type> or <type>varbit</type>
column, or removing the limit altogether, no longer requires a table
rewrite. Similarly, increasing the allowable precision of a
- <type>numeric</> column, or changing a column from constrained
- <type>numeric</> to unconstrained <type>numeric</>, no longer
+ <type>numeric</type> column, or changing a column from constrained
+ <type>numeric</type> to unconstrained <type>numeric</type>, no longer
requires a table rewrite. Table rewrites are also avoided in similar
- cases involving the <type>interval</>, <type>timestamp</>, and
- <type>timestamptz</> types.
+ cases involving the <type>interval</type>, <type>timestamp</type>, and
+ <type>timestamptz</type> types.
</para>
</listitem>
<listitem>
<para>
- Avoid having <link linkend="SQL-ALTERTABLE"><command>ALTER
+ Avoid having <link linkend="sql-altertable"><command>ALTER
TABLE</command></link> revalidate foreign key constraints in some
cases where it is not necessary (Noah Misch)
</para>
<listitem>
<para>
- Add <literal>IF EXISTS</> options to some <command>ALTER</command>
+ Add <literal>IF EXISTS</literal> options to some <command>ALTER</command>
commands (Pavel Stehule)
</para>
<listitem>
<para>
- Add <link linkend="SQL-ALTERFOREIGNDATAWRAPPER"><command>ALTER
- FOREIGN DATA WRAPPER</command></link> ... <literal>RENAME</>
- and <link linkend="SQL-ALTERSERVER"><command>ALTER
- SERVER</command></link> ... <literal>RENAME</> (Peter Eisentraut)
+ Add <link linkend="sql-alterforeigndatawrapper"><command>ALTER
+ FOREIGN DATA WRAPPER</command></link> ... <literal>RENAME</literal>
+ and <link linkend="sql-alterserver"><command>ALTER
+ SERVER</command></link> ... <literal>RENAME</literal> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="SQL-ALTERDOMAIN"><command>ALTER
- DOMAIN</command></link> ... <literal>RENAME</> (Peter Eisentraut)
+ Add <link linkend="sql-alterdomain"><command>ALTER
+ DOMAIN</command></link> ... <literal>RENAME</literal> (Peter Eisentraut)
</para>
<para>
<listitem>
<para>
Throw an error for <command>ALTER DOMAIN</command> ... <literal>DROP
- CONSTRAINT</> on a nonexistent constraint (Peter Eisentraut)
+ CONSTRAINT</literal> on a nonexistent constraint (Peter Eisentraut)
</para>
<para>
- An <literal>IF EXISTS</> option has been added to provide the
+ An <literal>IF EXISTS</literal> option has been added to provide the
previous behavior.
</para>
</listitem>
</sect4>
<sect4>
- <title><link linkend="SQL-CREATETABLE"><command>CREATE TABLE</></link></title>
+ <title><link linkend="sql-createtable"><command>CREATE TABLE</command></link></title>
<itemizedlist>
<listitem>
<para>
- Fix <command>CREATE TABLE</command> ... <literal>AS EXECUTE</>
- to handle <literal>WITH NO DATA</> and column name specifications
+ Fix <command>CREATE TABLE</command> ... <literal>AS EXECUTE</literal>
+ to handle <literal>WITH NO DATA</literal> and column name specifications
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add a <link
- linkend="SQL-CREATEVIEW"><literal>security_barrier</></link>
+ linkend="sql-createview"><literal>security_barrier</literal></link>
option for views (KaiGai Kohei, Robert Haas)
</para>
<para>
This option prevents optimizations that might allow view-protected
data to be exposed to users, for example pushing a clause involving
- an insecure function into the <literal>WHERE</> clause of the view.
+ an insecure function into the <literal>WHERE</literal> clause of the view.
Such views can be expected to perform more poorly than ordinary
views.
</para>
<listitem>
<para>
Add a new <link
- linkend="SQL-CREATEFUNCTION"><literal>LEAKPROOF</></link> function
+ linkend="sql-createfunction"><literal>LEAKPROOF</literal></link> function
attribute to mark functions that can safely be pushed down
- into <literal>security_barrier</> views (KaiGai Kohei)
+ into <literal>security_barrier</literal> views (KaiGai Kohei)
</para>
</listitem>
</para>
<para>
- This adds support for the <acronym>SQL</>-conforming
- <literal>USAGE</> privilege on types and domains. The intent is
+ This adds support for the <acronym>SQL</acronym>-conforming
+ <literal>USAGE</literal> privilege on types and domains. The intent is
to be able to restrict which users can create dependencies on types,
since such dependencies limit the owner's ability to alter the type.
</para>
Because the object is being created by <command>SELECT INTO</command>
or <command>CREATE TABLE AS</command>, the creator would ordinarily
have insert permissions; but there are corner cases where this is not
- true, such as when <literal>ALTER DEFAULT PRIVILEGES</> has removed
+ true, such as when <literal>ALTER DEFAULT PRIVILEGES</literal> has removed
such permissions.
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="SQL-VACUUM"><command>VACUUM</></link> to more
+ Allow <link linkend="sql-vacuum"><command>VACUUM</command></link> to more
easily skip pages that cannot be locked (Simon Riggs, Robert Haas)
</para>
<para>
- This change should greatly reduce the incidence of <command>VACUUM</>
- getting <quote>stuck</> waiting for other sessions.
+ This change should greatly reduce the incidence of <command>VACUUM</command>
+ getting <quote>stuck</quote> waiting for other sessions.
</para>
</listitem>
<listitem>
<para>
- Make <link linkend="SQL-EXPLAIN"><command>EXPLAIN</></link>
- <literal>(BUFFERS)</> count blocks dirtied and written (Robert Haas)
+ Make <link linkend="sql-explain"><command>EXPLAIN</command></link>
+ <literal>(BUFFERS)</literal> count blocks dirtied and written (Robert Haas)
</para>
</listitem>
</para>
<para>
- This is accomplished by setting the new <literal>TIMING</> option to
- <literal>FALSE</>.
+ This is accomplished by setting the new <literal>TIMING</literal> option to
+ <literal>FALSE</literal>.
</para>
</listitem>
<listitem>
<para>
Add <link
- linkend="functions-json"><function>array_to_json()</></link>
- and <function>row_to_json()</> (Andrew Dunstan)
+ linkend="functions-json"><function>array_to_json()</function></link>
+ and <function>row_to_json()</function> (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Add a <link linkend="datatype-serial"><type>SMALLSERIAL</></link>
+ Add a <link linkend="datatype-serial"><type>SMALLSERIAL</type></link>
data type (Mike Pultz)
</para>
<para>
- This is like <type>SERIAL</>, except it stores the sequence in
- a two-byte integer column (<type>int2</>).
+ This is like <type>SERIAL</type>, except it stores the sequence in
+ a two-byte integer column (<type>int2</type>).
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="SQL-CREATEDOMAIN">domains</link> to be
- declared <literal>NOT VALID</> (Álvaro Herrera)
+ Allow <link linkend="sql-createdomain">domains</link> to be
+ declared <literal>NOT VALID</literal> (Álvaro Herrera)
</para>
<para>
This option can be set at domain creation time, or via <command>ALTER
- DOMAIN</command> ... <literal>ADD CONSTRAINT</> ... <literal>NOT
- VALID</>. <command>ALTER DOMAIN</command> ... <literal>VALIDATE
- CONSTRAINT</> fully validates the constraint.
+ DOMAIN</command> ... <literal>ADD CONSTRAINT</literal> ... <literal>NOT
+ VALID</literal>. <command>ALTER DOMAIN</command> ... <literal>VALIDATE
+ CONSTRAINT</literal> fully validates the constraint.
</para>
</listitem>
<listitem>
<para>
Support more locale-specific formatting options for the <link
- linkend="datatype-money"><type>money</></link> data type (Tom Lane)
+ linkend="datatype-money"><type>money</type></link> data type (Tom Lane)
</para>
<para>
<listitem>
<para>
- Add bitwise <quote>and</>, <quote>or</>, and <quote>not</>
- operators for the <type>macaddr</> data type (Brendan Jurd)
+ Add bitwise <quote>and</quote>, <quote>or</quote>, and <quote>not</quote>
+ operators for the <type>macaddr</type> data type (Brendan Jurd)
</para>
</listitem>
<listitem>
<para>
Allow <link
- linkend="functions-xml-processing"><function>xpath()</></link> to
+ linkend="functions-xml-processing"><function>xpath()</function></link> to
return a single-element <acronym>XML</acronym> array when supplied a
scalar value (Florian Pflug)
</para>
<para>
Previously, it returned an empty array. This change will also
- cause <function>xpath_exists()</> to return true, not false,
+ cause <function>xpath_exists()</function> to return true, not false,
for such expressions.
</para>
</listitem>
<listitem>
<para>
Allow non-superusers to use <link
- linkend="functions-admin-signal"><function>pg_cancel_backend()</></link>
+ linkend="functions-admin-signal"><function>pg_cancel_backend()</function></link>
and <link
- linkend="functions-admin-signal"><function>pg_terminate_backend()</></link>
+ linkend="functions-admin-signal"><function>pg_terminate_backend()</function></link>
on other sessions belonging to the same user
(Magnus Hagander, Josh Kupershmidt, Dan Farina)
</para>
This allows multiple transactions to share identical views of the
database state.
Snapshots are exported via <link
- linkend="functions-snapshot-synchronization"><function>pg_export_snapshot()</></link>
- and imported via <link linkend="SQL-SET-TRANSACTION"><command>SET
+ linkend="functions-snapshot-synchronization"><function>pg_export_snapshot()</function></link>
+ and imported via <link linkend="sql-set-transaction"><command>SET
TRANSACTION SNAPSHOT</command></link>. Only snapshots from
currently-running transactions can be imported.
</para>
<para>
Support <link
linkend="functions-info-catalog-table"><literal>COLLATION
- FOR</></link> on expressions (Peter Eisentraut)
+ FOR</literal></link> on expressions (Peter Eisentraut)
</para>
<para>
<listitem>
<para>
Add <link
- linkend="functions-info-schema-table"><function>pg_opfamily_is_visible()</></link>
+ linkend="functions-info-schema-table"><function>pg_opfamily_is_visible()</function></link>
(Josh Kupershmidt)
</para>
</listitem>
<listitem>
<para>
- Add a <type>numeric</> variant of <link
- linkend="functions-admin-dbsize"><function>pg_size_pretty()</></link>
- for use with <function>pg_xlog_location_diff()</> (Fujii Masao)
+ Add a <type>numeric</type> variant of <link
+ linkend="functions-admin-dbsize"><function>pg_size_pretty()</function></link>
+ for use with <function>pg_xlog_location_diff()</function> (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
Add a <link
- linkend="functions-info-session-table"><function>pg_trigger_depth()</></link>
+ linkend="functions-info-session-table"><function>pg_trigger_depth()</function></link>
function (Kevin Grittner)
</para>
<listitem>
<para>
Allow <link
- linkend="functions-aggregate-table"><function>string_agg()</></link>
- to process <type>bytea</> values (Pavel Stehule)
+ linkend="functions-aggregate-table"><function>string_agg()</function></link>
+ to process <type>bytea</type> values (Pavel Stehule)
</para>
</listitem>
</para>
<para>
- For example, <literal>^(\w+)( \1)+$</>. Previous releases did not
+ For example, <literal>^(\w+)( \1)+$</literal>. Previous releases did not
check that the back-reference actually matched the first occurrence.
</para>
</listitem>
<listitem>
<para>
Add information schema views
- <structname>role_udt_grants</>, <structname>udt_privileges</>,
- and <structname>user_defined_types</> (Peter Eisentraut)
+ <structname>role_udt_grants</structname>, <structname>udt_privileges</structname>,
+ and <structname>user_defined_types</structname> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Add composite-type attributes to the
- information schema <structname>element_types</> view
+ information schema <structname>element_types</structname> view
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Implement <structfield>interval_type</> columns in the information
+ Implement <structfield>interval_type</structfield> columns in the information
schema (Peter Eisentraut)
</para>
<listitem>
<para>
Implement collation-related columns in the information schema
- <structname>attributes</>, <structname>columns</>,
- <structname>domains</>, and <structname>element_types</>
+ <structname>attributes</structname>, <structname>columns</structname>,
+ <structname>domains</structname>, and <structname>element_types</structname>
views (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Implement the <structfield>with_hierarchy</> column in the
- information schema <structname>table_privileges</> view (Peter
+ Implement the <structfield>with_hierarchy</structfield> column in the
+ information schema <structname>table_privileges</structname> view (Peter
Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add display of sequence <literal>USAGE</> privileges to information
+ Add display of sequence <literal>USAGE</literal> privileges to information
schema (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Allow the PL/pgSQL <command>OPEN</> cursor command to supply
+ Allow the PL/pgSQL <command>OPEN</command> cursor command to supply
parameters by name (Yeb Havinga)
</para>
</listitem>
<listitem>
<para>
Improve performance and memory consumption for long chains of
- <literal>ELSIF</> clauses (Tom Lane)
+ <literal>ELSIF</literal> clauses (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="APP-INITDB"><application>initdb</></link>
- options <option>--auth-local</> and <option>--auth-host</>
+ Add <link linkend="app-initdb"><application>initdb</application></link>
+ options <option>--auth-local</option> and <option>--auth-host</option>
(Peter Eisentraut)
</para>
<para>
- This allows separate control of <literal>local</> and
- <literal>host</> <filename>pg_hba.conf</filename> authentication
- settings. <option>--auth</> still controls both.
+ This allows separate control of <literal>local</literal> and
+ <literal>host</literal> <filename>pg_hba.conf</filename> authentication
+ settings. <option>--auth</option> still controls both.
</para>
</listitem>
<listitem>
<para>
- Add <option>--replication</>/<option>--no-replication</> flags to
- <link linkend="APP-CREATEUSER"><application>createuser</></link>
+ Add <option>--replication</option>/<option>--no-replication</option> flags to
+ <link linkend="app-createuser"><application>createuser</application></link>
to control replication permission (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Add the <option>--if-exists</> option to <link
- linkend="APP-DROPDB"><application>dropdb</></link> and <link
- linkend="APP-DROPUSER"><application>dropuser</></link> (Josh
+ Add the <option>--if-exists</option> option to <link
+ linkend="app-dropdb"><application>dropdb</application></link> and <link
+ linkend="app-dropuser"><application>dropuser</application></link> (Josh
Kupershmidt)
</para>
</listitem>
<listitem>
<para>
Give command-line tools the ability to specify the name of the
- database to connect to, and fall back to <literal>template1</>
- if a <literal>postgres</> database connection fails (Robert Haas)
+ database to connect to, and fall back to <literal>template1</literal>
+ if a <literal>postgres</literal> database connection fails (Robert Haas)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><link linkend="APP-PSQL"><application>psql</></link></title>
+ <title><link linkend="app-psql"><application>psql</application></link></title>
<itemizedlist>
</para>
<para>
- This adds the <literal>auto</> option to the <command>\x</>
+ This adds the <literal>auto</literal> option to the <command>\x</command>
command, which switches to the expanded mode when the normal
output would be wider than the screen.
</para>
</para>
<para>
- This is done with a new command <command>\ir</>.
+ This is done with a new command <command>\ir</command>.
</para>
</listitem>
<listitem>
<para>
Add support for non-<acronym>ASCII</acronym> characters in
- <application>psql</> variable names (Tom Lane)
+ <application>psql</application> variable names (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Add support for major-version-specific <filename>.psqlrc</> files
+ Add support for major-version-specific <filename>.psqlrc</filename> files
(Bruce Momjian)
</para>
<para>
- <application>psql</> already supported minor-version-specific
- <filename>.psqlrc</> files.
+ <application>psql</application> already supported minor-version-specific
+ <filename>.psqlrc</filename> files.
</para>
</listitem>
<listitem>
<para>
- Provide environment variable overrides for <application>psql</>
+ Provide environment variable overrides for <application>psql</application>
history and startup file locations (Andrew Dunstan)
</para>
<listitem>
<para>
- Add a <command>\setenv</> command to modify
+ Add a <command>\setenv</command> command to modify
the environment variables passed to child processes (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Name <application>psql</>'s temporary editor files with a
- <filename>.sql</> extension (Peter Eisentraut)
+ Name <application>psql</application>'s temporary editor files with a
+ <filename>.sql</filename> extension (Peter Eisentraut)
</para>
<para>
<listitem>
<para>
- Allow <application>psql</> to use zero-byte field and record
+ Allow <application>psql</application> to use zero-byte field and record
separators (Peter Eisentraut)
</para>
<para>
Various shell tools use zero-byte (NUL) separators,
- e.g. <application>find</>.
+ e.g. <application>find</application>.
</para>
</listitem>
<listitem>
<para>
- Make the <command>\timing</> option report times for
+ Make the <command>\timing</command> option report times for
failed queries (Magnus Hagander)
</para>
<listitem>
<para>
- Unify and tighten <application>psql</>'s treatment of <command>\copy</>
- and SQL <command>COPY</> (Noah Misch)
+ Unify and tighten <application>psql</application>'s treatment of <command>\copy</command>
+ and SQL <command>COPY</command> (Noah Misch)
</para>
<para>
This fix makes failure behavior more predictable and honors
- <command>\set ON_ERROR_ROLLBACK</>.
+ <command>\set ON_ERROR_ROLLBACK</command>.
</para>
</listitem>
<itemizedlist>
<listitem>
<para>
- Make <command>\d</> on a sequence show the
+ Make <command>\d</command> on a sequence show the
table/column name owning it (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
- Show statistics target for columns in <command>\d+</> (Magnus
+ Show statistics target for columns in <command>\d+</command> (Magnus
Hagander)
</para>
</listitem>
<listitem>
<para>
- Show role password expiration dates in <command>\du</>
+ Show role password expiration dates in <command>\du</command>
(Fabrízio de Royes Mello)
</para>
</listitem>
</para>
<para>
- These are included in the output of <command>\dC+</>,
- <command>\dc+</>, <command>\dD+</>, and <command>\dL</> respectively.
+ These are included in the output of <command>\dC+</command>,
+ <command>\dc+</command>, <command>\dD+</command>, and <command>\dL</command> respectively.
</para>
</listitem>
</para>
<para>
- These are included in the output of <command>\des+</>,
- <command>\det+</>, and <command>\dew+</> for foreign servers, foreign
+ These are included in the output of <command>\des+</command>,
+ <command>\det+</command>, and <command>\dew+</command> for foreign servers, foreign
tables, and foreign data wrappers respectively.
</para>
</listitem>
<listitem>
<para>
- Change <command>\dd</> to display comments only for object types
+ Change <command>\dd</command> to display comments only for object types
without their own backslash command (Josh Kupershmidt)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</> tab completion, complete <acronym>SQL</>
+ In <application>psql</application> tab completion, complete <acronym>SQL</acronym>
keywords in either upper or lower case according to the new <link
- linkend="APP-PSQL-variables"><literal>COMP_KEYWORD_CASE</></link>
+ linkend="app-psql-variables"><literal>COMP_KEYWORD_CASE</literal></link>
setting (Peter Eisentraut)
</para>
</listitem>
</sect4>
<sect4>
- <title><link linkend="APP-PGDUMP"><application>pg_dump</></link></title>
+ <title><link linkend="app-pgdump"><application>pg_dump</application></link></title>
<itemizedlist>
<listitem>
<para>
- Add an <option>--exclude-table-data</> option to
- <application>pg_dump</> (Andrew Dunstan)
+ Add an <option>--exclude-table-data</option> option to
+ <application>pg_dump</application> (Andrew Dunstan)
</para>
<para>
<listitem>
<para>
- Add a <option>--section</> option to <application>pg_dump</>
- and <application>pg_restore</> (Andrew Dunstan)
+ Add a <option>--section</option> option to <application>pg_dump</application>
+ and <application>pg_restore</application> (Andrew Dunstan)
</para>
<para>
- Valid values are <literal>pre-data</>, <literal>data</>,
- and <literal>post-data</>. The option can be
+ Valid values are <literal>pre-data</literal>, <literal>data</literal>,
+ and <literal>post-data</literal>. The option can be
given more than once to select two or more sections.
</para>
</listitem>
<listitem>
<para>
Make <link
- linkend="APP-PG-DUMPALL"><application>pg_dumpall</></link> dump all
+ linkend="app-pg-dumpall"><application>pg_dumpall</application></link> dump all
roles first, then all configuration settings on roles (Phil Sorber)
</para>
<listitem>
<para>
- Allow <application>pg_dumpall</> to avoid errors if the
- <literal>postgres</> database is missing in the new cluster
+ Allow <application>pg_dumpall</application> to avoid errors if the
+ <literal>postgres</literal> database is missing in the new cluster
(Robert Haas)
</para>
</listitem>
<listitem>
<para>
Tighten rules for when extension configuration tables are dumped
- by <application>pg_dump</> (Tom Lane)
+ by <application>pg_dump</application> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> emit more useful dependency
+ Make <application>pg_dump</application> emit more useful dependency
information (Tom Lane)
</para>
<listitem>
<para>
- Improve <application>pg_dump</>'s performance when dumping many
+ Improve <application>pg_dump</application>'s performance when dumping many
database objects (Tom Lane)
</para>
</listitem>
</sect3>
<sect3>
- <title><link linkend="libpq"><application>libpq</></link></title>
+ <title><link linkend="libpq"><application>libpq</application></link></title>
<itemizedlist>
<listitem>
<para>
- Allow <application>libpq</> connection strings to have the format of a
+ Allow <application>libpq</application> connection strings to have the format of a
<link linkend="libpq-connstring"><acronym>URI</acronym></link>
(Alexander Shulgin)
</para>
<para>
- The syntax begins with <literal>postgres://</>. This can allow
+ The syntax begins with <literal>postgres://</literal>. This can allow
applications to avoid implementing their own parser for URIs
representing database connections.
</para>
</para>
<para>
- Previously, <application>libpq</> always collected the entire query
+ Previously, <application>libpq</application> always collected the entire query
result in memory before passing it back to the application.
</para>
</listitem>
<listitem>
<para>
- Add <literal>const</> qualifiers to the declarations of the functions
- <function>PQconnectdbParams</>, <function>PQconnectStartParams</>,
- and <function>PQpingParams</> (Lionel Elie Mamane)
+ Add <literal>const</literal> qualifiers to the declarations of the functions
+ <function>PQconnectdbParams</function>, <function>PQconnectStartParams</function>,
+ and <function>PQpingParams</function> (Lionel Elie Mamane)
</para>
</listitem>
<listitem>
<para>
- Allow the <filename>.pgpass</> file to include escaped characters
+ Allow the <filename>.pgpass</filename> file to include escaped characters
in the password field (Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Make library functions use <function>abort()</> instead of
- <function>exit()</> when it is necessary to terminate the process
+ Make library functions use <function>abort()</function> instead of
+ <function>exit()</function> when it is necessary to terminate the process
(Peter Eisentraut)
</para>
<listitem>
<para>
- Install <filename>plpgsql.h</> into <filename>include/server</> during installation
+ Install <filename>plpgsql.h</filename> into <filename>include/server</filename> during installation
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Improve the concurrent transaction regression tests
- (<application>isolationtester</>) (Noah Misch)
+ (<application>isolationtester</application>) (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Modify <application>thread_test</> to create its test files in
- the current directory, rather than <filename>/tmp</> (Bruce Momjian)
+ Modify <application>thread_test</application> to create its test files in
+ the current directory, rather than <filename>/tmp</filename> (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Add a <application>pg_upgrade</> test suite (Peter Eisentraut)
+ Add a <application>pg_upgrade</application> test suite (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add options to <application>git_changelog</> for use in major
+ Add options to <application>git_changelog</application> for use in major
release note creation (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Support Linux's <filename>/proc/self/oom_score_adj</> API (Tom Lane)
+ Support Linux's <filename>/proc/self/oom_score_adj</filename> API (Tom Lane)
</para>
</listitem>
<para>
This improvement does not apply to
- <function>dblink_send_query()</>/<function>dblink_get_result()</>.
+ <function>dblink_send_query()</function>/<function>dblink_get_result()</function>.
</para>
</listitem>
<listitem>
<para>
- Support <literal>force_not_null</> option in <link
+ Support <literal>force_not_null</literal> option in <link
linkend="file-fdw">file_fdw</link> (Shigeru Hanada)
</para>
</listitem>
<listitem>
<para>
Implement dry-run mode for <link
- linkend="pgarchivecleanup"><application>pg_archivecleanup</></link>
+ linkend="pgarchivecleanup"><application>pg_archivecleanup</application></link>
(Gabriele Bartolini)
</para>
<listitem>
<para>
Add new <link linkend="pgbench">pgbench</link> switches
- <option>--unlogged-tables</>, <option>--tablespace</>, and
- <option>--index-tablespace</> (Robert Haas)
+ <option>--unlogged-tables</option>, <option>--tablespace</option>, and
+ <option>--index-tablespace</option> (Robert Haas)
</para>
</listitem>
<listitem>
<para>
Change <link
- linkend="pgtestfsync"><application>pg_test_fsync</></link> to test
+ linkend="pgtestfsync"><application>pg_test_fsync</application></link> to test
for a fixed amount of time, rather than a fixed number of cycles
(Bruce Momjian)
</para>
<para>
- The <option>-o</>/cycles option was removed, and
- <option>-s</>/seconds added.
+ The <option>-o</option>/cycles option was removed, and
+ <option>-s</option>/seconds added.
</para>
</listitem>
<listitem>
<para>
Add a <link
- linkend="pgtesttiming"><application>pg_test_timing</></link>
+ linkend="pgtesttiming"><application>pg_test_timing</application></link>
utility to measure clock monotonicity and timing overhead (Ants
Aasma, Greg Smith)
</para>
</itemizedlist>
<sect4>
- <title><link linkend="pgupgrade"><application>pg_upgrade</></link></title>
+ <title><link linkend="pgupgrade"><application>pg_upgrade</application></link></title>
<itemizedlist>
<listitem>
<para>
- Adjust <application>pg_upgrade</> environment variables (Bruce
+ Adjust <application>pg_upgrade</application> environment variables (Bruce
Momjian)
</para>
<para>
Rename data, bin, and port environment
- variables to begin with <literal>PG</>, and support
+ variables to begin with <literal>PG</literal>, and support
<envar>PGPORTOLD</envar>/<envar>PGPORTNEW</envar>, to replace
<envar>PGPORT</envar>.
</para>
<listitem>
<para>
- Overhaul <application>pg_upgrade</> logging and failure reporting
+ Overhaul <application>pg_upgrade</application> logging and failure reporting
(Bruce Momjian)
</para>
<para>
Create four append-only log files, and delete them on success.
- Add <option>-r</>/<option>--retain</> option to unconditionally
- retain these files. Also remove <application>pg_upgrade</> options
- <option>-g</>/<option>-G</>/<option>-l</> options as unnecessary,
+ Add <option>-r</option>/<option>--retain</option> option to unconditionally
+ retain these files. Also remove <application>pg_upgrade</application> options
+ <option>-g</option>/<option>-G</option>/<option>-l</option> options as unnecessary,
and tighten log file permissions.
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_upgrade</> create a script to incrementally
+ Make <application>pg_upgrade</application> create a script to incrementally
generate more accurate optimizer statistics (Bruce Momjian)
</para>
<listitem>
<para>
- Allow <application>pg_upgrade</> to upgrade an old cluster that
- does not have a <literal>postgres</> database (Bruce Momjian)
+ Allow <application>pg_upgrade</application> to upgrade an old cluster that
+ does not have a <literal>postgres</literal> database (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Allow <application>pg_upgrade</> to handle cases where some
+ Allow <application>pg_upgrade</application> to handle cases where some
old or new databases are missing, as long as they are empty
(Bruce Momjian)
</para>
<listitem>
<para>
- Allow <application>pg_upgrade</> to handle configuration-only
+ Allow <application>pg_upgrade</application> to handle configuration-only
directory installations (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, add <option>-o</>/<option>-O</>
+ In <application>pg_upgrade</application>, add <option>-o</option>/<option>-O</option>
options to pass parameters to the servers (Bruce Momjian)
</para>
<listitem>
<para>
- Change <application>pg_upgrade</> to use port 50432 by default
+ Change <application>pg_upgrade</application> to use port 50432 by default
(Bruce Momjian)
</para>
<listitem>
<para>
- Reduce cluster locking in <application>pg_upgrade</> (Bruce
+ Reduce cluster locking in <application>pg_upgrade</application> (Bruce
Momjian)
</para>
</sect4>
<sect4>
- <title><link linkend="pgstatstatements"><application>pg_stat_statements</></link></title>
+ <title><link linkend="pgstatstatements"><application>pg_stat_statements</application></link></title>
<itemizedlist>
<listitem>
<para>
- Allow <application>pg_stat_statements</> to aggregate similar
+ Allow <application>pg_stat_statements</application> to aggregate similar
queries via SQL text normalization (Peter Geoghegan, Tom Lane)
</para>
<listitem>
<para>
Add dirtied and written block counts and read/write times to
- <application>pg_stat_statements</> (Robert Haas, Ants Aasma)
+ <application>pg_stat_statements</application> (Robert Haas, Ants Aasma)
</para>
</listitem>
<listitem>
<para>
- Prevent <application>pg_stat_statements</> from double-counting
+ Prevent <application>pg_stat_statements</application> from double-counting
<command>PREPARE</command> and <command>EXECUTE</command> commands
(Tom Lane)
</para>
<itemizedlist>
<listitem>
<para>
- Support <literal>SECURITY LABEL</> on global objects (KaiGai
+ Support <literal>SECURITY LABEL</literal> on global objects (KaiGai
Kohei, Robert Haas)
</para>
<listitem>
<para>
- Add <function>sepgsql_setcon()</> and related functions to control
+ Add <function>sepgsql_setcon()</function> and related functions to control
the sepgsql security domain (KaiGai Kohei)
</para>
</listitem>
</para>
<para>
- Use <command>gmake STYLE=website draft</>.
+ Use <command>gmake STYLE=website draft</command>.
</para>
</listitem>
<listitem>
<para>
Document that user/database names are preserved with double-quoting
- by command-line tools like <application>vacuumdb</> (Bruce
+ by command-line tools like <application>vacuumdb</application> (Bruce
Momjian)
</para>
</listitem>
<listitem>
<para>
- Deprecate use of <literal>GLOBAL</> and <literal>LOCAL</> in
- <command>CREATE TEMP TABLE</> (Noah Misch)
+ Deprecate use of <literal>GLOBAL</literal> and <literal>LOCAL</literal> in
+ <command>CREATE TEMP TABLE</command> (Noah Misch)
</para>
<para>
- <productname>PostgreSQL</> has long treated these keyword as no-ops,
+ <productname>PostgreSQL</productname> has long treated these keyword as no-ops,
and continues to do so; but in future they might mean what the SQL
standard says they mean, so applications should avoid using them.
</para>
<!-- doc/src/sgml/release-9.3.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+ <sect1 id="release-9-3-20">
+ <title>Release 9.3.20</title>
+
+ <formalpara>
+ <title>Release date:</title>
+ <para>2017-11-09</para>
+ </formalpara>
+
+ <para>
+ This release contains a variety of fixes from 9.3.19.
+ For information about new features in the 9.3 major release, see
+ <xref linkend="release-9-3">.
+ </para>
+
+ <sect2>
+ <title>Migration to Version 9.3.20</title>
+
+ <para>
+ A dump/restore is not required for those running 9.3.X.
+ </para>
+
+ <para>
+ However, if you are upgrading from a version earlier than 9.3.18,
+ see <xref linkend="release-9-3-18">.
+ </para>
+
+ </sect2>
+
+ <sect2>
+ <title>Changes</title>
+
+ <itemizedlist>
+
+ <listitem>
+ <para>
+ Properly reject attempts to convert infinite float values to
+ type <type>numeric</type> (Tom Lane, KaiGai Kohei)
+ </para>
+
+ <para>
+ Previously the behavior was platform-dependent.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix corner-case crashes when columns have been added to the end of a
+ view (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Record proper dependencies when a view or rule
+ contains <structname>FieldSelect</structname>
+ or <structname>FieldStore</structname> expression nodes (Tom Lane)
+ </para>
+
+ <para>
+ Lack of these dependencies could allow a column or data
+ type <command>DROP</command> to go through when it ought to fail,
+ thereby causing later uses of the view or rule to get errors.
+ This patch does not do anything to protect existing views/rules,
+ only ones created in the future.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly detect hashability of range data types (Tom Lane)
+ </para>
+
+ <para>
+ The planner mistakenly assumed that any range type could be hashed
+ for use in hash joins or hash aggregation, but actually it must check
+ whether the range's subtype has hash support. This does not affect any
+ of the built-in range types, since they're all hashable anyway.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix low-probability loss of <command>NOTIFY</command> messages due to
+ XID wraparound (Marko Tiikkaja, Tom Lane)
+ </para>
+
+ <para>
+ If a session executed no queries, but merely listened for
+ notifications, for more than 2 billion transactions, it started to miss
+ some notifications from concurrently-committing transactions.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Prevent low-probability crash in processing of nested trigger firings
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly restore the umask setting when file creation fails
+ in <command>COPY</command> or <function>lo_export()</function>
+ (Peter Eisentraut)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Give a better error message for duplicate column names
+ in <command>ANALYZE</command> (Nathan Bossart)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix mis-parsing of the last line in a
+ non-newline-terminated <filename>pg_hba.conf</filename> file
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to not require user's home
+ directory to exist (Tom Lane)
+ </para>
+
+ <para>
+ In v10, failure to find the home directory while trying to
+ read <filename>~/.pgpass</filename> was treated as a hard error,
+ but it should just cause that file to not be found. Both v10 and
+ previous release branches made the same mistake when
+ reading <filename>~/.pg_service.conf</filename>, though this was less
+ obvious since that file is not sought unless a service name is
+ specified.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to guard against integer
+ overflow in the row count of a <structname>PGresult</structname>
+ (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>ecpg</application>'s handling of out-of-scope cursor
+ declarations with pointer or array variables (Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Make ecpglib's Informix-compatibility mode ignore fractional digits in
+ integer input strings, as expected (Gao Zengqi, Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Sync our copy of the timezone library with IANA release tzcode2017c
+ (Tom Lane)
+ </para>
+
+ <para>
+ This fixes various issues; the only one likely to be user-visible
+ is that the default DST rules for a POSIX-style zone name, if
+ no <filename>posixrules</filename> file exists in the timezone data
+ directory, now match current US law rather than what it was a dozen
+ years ago.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Update time zone data files to <application>tzdata</application>
+ release 2017c for DST law changes in Fiji, Namibia, Northern Cyprus,
+ Sudan, Tonga, and Turks & Caicos Islands, plus historical
+ corrections for Alaska, Apia, Burma, Calcutta, Detroit, Ireland,
+ Namibia, and Pago Pago.
+ </para>
+ </listitem>
+
+ </itemizedlist>
+
+ </sect2>
+ </sect1>
+
<sect1 id="release-9-3-19">
<title>Release 9.3.19</title>
<listitem>
<para>
Show foreign tables
- in <structname>information_schema</>.<structname>table_privileges</>
+ in <structname>information_schema</structname>.<structname>table_privileges</structname>
view (Peter Eisentraut)
</para>
<para>
- All other relevant <structname>information_schema</> views include
+ All other relevant <structname>information_schema</structname> views include
foreign tables, but this one ignored them.
</para>
<para>
- Since this view definition is installed by <application>initdb</>,
+ Since this view definition is installed by <application>initdb</application>,
merely upgrading will not fix the problem. If you need to fix this
in an existing installation, you can, as a superuser, do this
- in <application>psql</>:
+ in <application>psql</application>:
<programlisting>
SET search_path TO information_schema;
CREATE OR REPLACE VIEW table_privileges AS
OR grantee.rolname = 'PUBLIC');
</programlisting>
This must be repeated in each database to be fixed,
- including <literal>template0</>.
+ including <literal>template0</literal>.
</para>
</listitem>
<listitem>
<para>
Clean up handling of a fatal exit (e.g., due to receipt
- of <systemitem>SIGTERM</>) that occurs while trying to execute
- a <command>ROLLBACK</> of a failed transaction (Tom Lane)
+ of <systemitem>SIGTERM</systemitem>) that occurs while trying to execute
+ a <command>ROLLBACK</command> of a failed transaction (Tom Lane)
</para>
<para>
This situation could result in an assertion failure. In production
builds, the exit would still occur, but it would log an unexpected
- message about <quote>cannot drop active portal</>.
+ message about <quote>cannot drop active portal</quote>.
</para>
</listitem>
</para>
<para>
- Certain <command>ALTER</> commands that change the definition of a
+ Certain <command>ALTER</command> commands that change the definition of a
composite type or domain type are supposed to fail if there are any
stored values of that type in the database, because they lack the
infrastructure needed to update or check such values. Previously,
<listitem>
<para>
- Fix crash in <application>pg_restore</> when using parallel mode and
+ Fix crash in <application>pg_restore</application> when using parallel mode and
using a list file to select a subset of items to restore
(Fabrízio de Royes Mello)
</para>
<listitem>
<para>
- Change <application>ecpg</>'s parser to allow <literal>RETURNING</>
+ Change <application>ecpg</application>'s parser to allow <literal>RETURNING</literal>
clauses without attached C variables (Michael Meskes)
</para>
<para>
- This allows <application>ecpg</> programs to contain SQL constructs
- that use <literal>RETURNING</> internally (for example, inside a CTE)
+ This allows <application>ecpg</application> programs to contain SQL constructs
+ that use <literal>RETURNING</literal> internally (for example, inside a CTE)
rather than using it to define values to be returned to the client.
</para>
</listitem>
<para>
This fix avoids possible crashes of PL/Perl due to inconsistent
- assumptions about the width of <type>time_t</> values.
+ assumptions about the width of <type>time_t</type> values.
A side-effect that may be visible to extension developers is
- that <literal>_USE_32BIT_TIME_T</> is no longer defined globally
- in <productname>PostgreSQL</> Windows builds. This is not expected
- to cause problems, because type <type>time_t</> is not used
- in any <productname>PostgreSQL</> API definitions.
+ that <literal>_USE_32BIT_TIME_T</literal> is no longer defined globally
+ in <productname>PostgreSQL</productname> Windows builds. This is not expected
+ to cause problems, because type <type>time_t</type> is not used
+ in any <productname>PostgreSQL</productname> API definitions.
</para>
</listitem>
<listitem>
<para>
Further restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Noah Misch)
</para>
<para>
The fix for CVE-2017-7486 was incorrect: it allowed a user
to see the options in her own user mapping, even if she did not
- have <literal>USAGE</> permission on the associated foreign server.
+ have <literal>USAGE</literal> permission on the associated foreign server.
Such options might include a password that had been provided by the
server owner rather than the user herself.
- Since <structname>information_schema.user_mapping_options</> does not
- show the options in such cases, <structname>pg_user_mappings</>
+ Since <structname>information_schema.user_mapping_options</structname> does not
+ show the options in such cases, <structname>pg_user_mappings</structname>
should not either.
(CVE-2017-7547)
</para>
<step>
<para>
Restart the postmaster after adding <literal>allow_system_table_mods
- = true</> to <filename>postgresql.conf</>. (In versions
- supporting <command>ALTER SYSTEM</>, you can use that to make the
+ = true</literal> to <filename>postgresql.conf</filename>. (In versions
+ supporting <command>ALTER SYSTEM</command>, you can use that to make the
configuration change, but you'll still need a restart.)
</para>
</step>
<step>
<para>
- In <emphasis>each</> database of the cluster,
+ In <emphasis>each</emphasis> database of the cluster,
run the following commands as superuser:
<programlisting>
SET search_path = pg_catalog;
<step>
<para>
- Do not forget to include the <literal>template0</>
- and <literal>template1</> databases, or the vulnerability will still
- exist in databases you create later. To fix <literal>template0</>,
+ Do not forget to include the <literal>template0</literal>
+ and <literal>template1</literal> databases, or the vulnerability will still
+ exist in databases you create later. To fix <literal>template0</literal>,
you'll need to temporarily make it accept connections.
- In <productname>PostgreSQL</> 9.5 and later, you can use
+ In <productname>PostgreSQL</productname> 9.5 and later, you can use
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS true;
</programlisting>
- and then after fixing <literal>template0</>, undo that with
+ and then after fixing <literal>template0</literal>, undo that with
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS false;
</programlisting>
<step>
<para>
- Finally, remove the <literal>allow_system_table_mods</> configuration
+ Finally, remove the <literal>allow_system_table_mods</literal> configuration
setting, and again restart the postmaster.
</para>
</step>
</para>
<para>
- <application>libpq</> ignores empty password specifications, and does
+ <application>libpq</application> ignores empty password specifications, and does
not transmit them to the server. So, if a user's password has been
set to the empty string, it's impossible to log in with that password
- via <application>psql</> or other <application>libpq</>-based
+ via <application>psql</application> or other <application>libpq</application>-based
clients. An administrator might therefore believe that setting the
password to empty is equivalent to disabling password login.
- However, with a modified or non-<application>libpq</>-based client,
+ However, with a modified or non-<application>libpq</application>-based client,
logging in could be possible, depending on which authentication
method is configured. In particular the most common
- method, <literal>md5</>, accepted empty passwords.
+ method, <literal>md5</literal>, accepted empty passwords.
Change the server to reject empty passwords in all cases.
(CVE-2017-7546)
</para>
<listitem>
<para>
Fix possible creation of an invalid WAL segment when a standby is
- promoted just after it processes an <literal>XLOG_SWITCH</> WAL
+ promoted just after it processes an <literal>XLOG_SWITCH</literal> WAL
record (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix <systemitem>SIGHUP</> and <systemitem>SIGUSR1</> handling in
+ Fix <systemitem>SIGHUP</systemitem> and <systemitem>SIGUSR1</systemitem> handling in
walsender processes (Petr Jelinek, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix unnecessarily slow restarts of <application>walreceiver</>
+ Fix unnecessarily slow restarts of <application>walreceiver</application>
processes due to race condition in postmaster (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix cases where an <command>INSERT</> or <command>UPDATE</> assigns
+ Fix cases where an <command>INSERT</command> or <command>UPDATE</command> assigns
to more than one element of a column that is of domain-over-array
type (Tom Lane)
</para>
<listitem>
<para>
- Allow window functions to be used in sub-<literal>SELECT</>s that
+ Allow window functions to be used in sub-<literal>SELECT</literal>s that
are within the arguments of an aggregate function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Move autogenerated array types out of the way during
- <command>ALTER ... RENAME</> (Vik Fearing)
+ <command>ALTER ... RENAME</command> (Vik Fearing)
</para>
<para>
Previously, we would rename a conflicting autogenerated array type
- out of the way during <command>CREATE</>; this fix extends that
+ out of the way during <command>CREATE</command>; this fix extends that
behavior to renaming operations.
</para>
</listitem>
<listitem>
<para>
- Ensure that <command>ALTER USER ... SET</> accepts all the syntax
- variants that <command>ALTER ROLE ... SET</> does (Peter Eisentraut)
+ Ensure that <command>ALTER USER ... SET</command> accepts all the syntax
+ variants that <command>ALTER ROLE ... SET</command> does (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Properly update dependency info when changing a datatype I/O
- function's argument or return type from <type>opaque</> to the
+ function's argument or return type from <type>opaque</type> to the
correct type (Heikki Linnakangas)
</para>
<para>
- <command>CREATE TYPE</> updates I/O functions declared in this
+ <command>CREATE TYPE</command> updates I/O functions declared in this
long-obsolete style, but it forgot to record a dependency on the
- type, allowing a subsequent <command>DROP TYPE</> to leave broken
+ type, allowing a subsequent <command>DROP TYPE</command> to leave broken
function definitions behind.
</para>
</listitem>
<listitem>
<para>
- Reduce memory usage when <command>ANALYZE</> processes
- a <type>tsvector</> column (Heikki Linnakangas)
+ Reduce memory usage when <command>ANALYZE</command> processes
+ a <type>tsvector</type> column (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix unnecessary precision loss and sloppy rounding when multiplying
- or dividing <type>money</> values by integers or floats (Tom Lane)
+ or dividing <type>money</type> values by integers or floats (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Tighten checks for whitespace in functions that parse identifiers,
- such as <function>regprocedurein()</> (Tom Lane)
+ such as <function>regprocedurein()</function> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Use relevant <literal>#define</> symbols from Perl while
- compiling <application>PL/Perl</> (Ashutosh Sharma, Tom Lane)
+ Use relevant <literal>#define</literal> symbols from Perl while
+ compiling <application>PL/Perl</application> (Ashutosh Sharma, Tom Lane)
</para>
<para>
This avoids portability problems, typically manifesting as
- a <quote>handshake</> mismatch during library load, when working with
+ a <quote>handshake</quote> mismatch during library load, when working with
recent Perl versions.
</para>
</listitem>
<listitem>
<para>
- In <application>libpq</>, reset GSS/SASL and SSPI authentication
+ In <application>libpq</application>, reset GSS/SASL and SSPI authentication
state properly after a failed connection attempt (Michael Paquier)
</para>
<listitem>
<para>
- In <application>psql</>, fix failure when <command>COPY FROM STDIN</>
+ In <application>psql</application>, fix failure when <command>COPY FROM STDIN</command>
is ended with a keyboard EOF signal and then another <command>COPY
- FROM STDIN</> is attempted (Thomas Munro)
+ FROM STDIN</command> is attempted (Thomas Munro)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_dump</> and <application>pg_restore</> to
- emit <command>REFRESH MATERIALIZED VIEW</> commands last (Tom Lane)
+ Fix <application>pg_dump</application> and <application>pg_restore</application> to
+ emit <command>REFRESH MATERIALIZED VIEW</command> commands last (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_dump</> with the <option>--clean</> option to
+ Fix <application>pg_dump</application> with the <option>--clean</option> option to
drop event triggers as expected (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_dump</> to not emit invalid SQL for an empty
+ Fix <application>pg_dump</application> to not emit invalid SQL for an empty
operator class (Daniel Gustafsson)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> output to stdout on Windows (Kuntal Ghosh)
+ Fix <application>pg_dump</application> output to stdout on Windows (Kuntal Ghosh)
</para>
<para>
<listitem>
<para>
- Fix <function>pg_get_ruledef()</> to print correct output for
- the <literal>ON SELECT</> rule of a view whose columns have been
+ Fix <function>pg_get_ruledef()</function> to print correct output for
+ the <literal>ON SELECT</literal> rule of a view whose columns have been
renamed (Tom Lane)
</para>
<para>
- In some corner cases, <application>pg_dump</> relies
- on <function>pg_get_ruledef()</> to dump views, so that this error
+ In some corner cases, <application>pg_dump</application> relies
+ on <function>pg_get_ruledef()</function> to dump views, so that this error
could result in dump/reload failures.
</para>
</listitem>
<listitem>
<para>
Fix dumping of outer joins with empty constraints, such as the result
- of a <literal>NATURAL LEFT JOIN</> with no common columns (Tom Lane)
+ of a <literal>NATURAL LEFT JOIN</literal> with no common columns (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of function expressions in the <literal>FROM</> clause in
+ Fix dumping of function expressions in the <literal>FROM</literal> clause in
cases where the expression does not deparse into something that looks
like a function call (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_basebackup</> output to stdout on Windows
+ Fix <application>pg_basebackup</application> output to stdout on Windows
(Haribabu Kommi)
</para>
<listitem>
<para>
- Fix <application>pg_upgrade</> to ensure that the ending WAL record
- does not have <xref linkend="guc-wal-level"> = <literal>minimum</>
+ Fix <application>pg_upgrade</application> to ensure that the ending WAL record
+ does not have <xref linkend="guc-wal-level"> = <literal>minimum</literal>
(Bruce Momjian)
</para>
<listitem>
<para>
- In <filename>postgres_fdw</>, re-establish connections to remote
- servers after <command>ALTER SERVER</> or <command>ALTER USER
- MAPPING</> commands (Kyotaro Horiguchi)
+ In <filename>postgres_fdw</filename>, re-establish connections to remote
+ servers after <command>ALTER SERVER</command> or <command>ALTER USER
+ MAPPING</command> commands (Kyotaro Horiguchi)
</para>
<para>
<listitem>
<para>
- In <filename>postgres_fdw</>, allow cancellation of remote
+ In <filename>postgres_fdw</filename>, allow cancellation of remote
transaction control commands (Robert Haas, Rafia Sabih)
</para>
<listitem>
<para>
- Always use <option>-fPIC</>, not <option>-fpic</>, when building
+ Always use <option>-fPIC</option>, not <option>-fpic</option>, when building
shared libraries with gcc (Tom Lane)
</para>
<listitem>
<para>
- In MSVC builds, handle the case where the <application>openssl</>
- library is not within a <filename>VC</> subdirectory (Andrew Dunstan)
+ In MSVC builds, handle the case where the <application>openssl</application>
+ library is not within a <filename>VC</filename> subdirectory (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- In MSVC builds, add proper include path for <application>libxml2</>
+ In MSVC builds, add proper include path for <application>libxml2</application>
header files (Andrew Dunstan)
</para>
<para>
This fixes a former need to move things around in standard Windows
- installations of <application>libxml2</>.
+ installations of <application>libxml2</application>.
</para>
</listitem>
<listitem>
<para>
In MSVC builds, recognize a Tcl library that is
- named <filename>tcl86.lib</> (Noah Misch)
+ named <filename>tcl86.lib</filename> (Noah Misch)
</para>
</listitem>
<listitem>
<para>
Restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Michael Paquier, Feike Steenbergen)
</para>
<para>
The previous coding allowed the owner of a foreign server object,
- or anyone he has granted server <literal>USAGE</> permission to,
+ or anyone he has granted server <literal>USAGE</literal> permission to,
to see the options for all user mappings associated with that server.
This might well include passwords for other users.
Adjust the view definition to match the behavior of
- <structname>information_schema.user_mapping_options</>, namely that
+ <structname>information_schema.user_mapping_options</structname>, namely that
these options are visible to the user being mapped, or if the mapping
is for <literal>PUBLIC</literal> and the current user is the server
owner, or if the current user is a superuser.
<para>
Some selectivity estimation functions in the planner will apply
user-defined operators to values obtained
- from <structname>pg_statistic</>, such as most common values and
+ from <structname>pg_statistic</structname>, such as most common values and
histogram entries. This occurs before table permissions are checked,
so a nefarious user could exploit the behavior to obtain these values
for table columns he does not have permission to read. To fix,
<listitem>
<para>
- Restore <application>libpq</>'s recognition of
- the <envar>PGREQUIRESSL</> environment variable (Daniel Gustafsson)
+ Restore <application>libpq</application>'s recognition of
+ the <envar>PGREQUIRESSL</envar> environment variable (Daniel Gustafsson)
</para>
<para>
Processing of this environment variable was unintentionally dropped
- in <productname>PostgreSQL</> 9.3, but its documentation remained.
+ in <productname>PostgreSQL</productname> 9.3, but its documentation remained.
This creates a security hazard, since users might be relying on the
environment variable to force SSL-encrypted connections, but that
would no longer be guaranteed. Restore handling of the variable,
- but give it lower priority than <envar>PGSSLMODE</>, to avoid
+ but give it lower priority than <envar>PGSSLMODE</envar>, to avoid
breaking configurations that work correctly with post-9.3 code.
(CVE-2017-7485)
</para>
<listitem>
<para>
- Fix possible corruption of <quote>init forks</> of unlogged indexes
+ Fix possible corruption of <quote>init forks</quote> of unlogged indexes
(Robert Haas, Michael Paquier)
</para>
<listitem>
<para>
- Fix incorrect reconstruction of <structname>pg_subtrans</> entries
+ Fix incorrect reconstruction of <structname>pg_subtrans</structname> entries
when a standby server replays a prepared but uncommitted two-phase
transaction (Tom Lane)
</para>
<para>
In most cases this turned out to have no visible ill effects, but in
corner cases it could result in circular references
- in <structname>pg_subtrans</>, potentially causing infinite loops
+ in <structname>pg_subtrans</structname>, potentially causing infinite loops
in queries that examine rows modified by the two-phase transaction.
</para>
</listitem>
Due to lack of a cache flush step between commands in an extension
script file, non-utility queries might not see the effects of an
immediately preceding catalog change, such as <command>ALTER TABLE
- ... RENAME</>.
+ ... RENAME</command>.
</para>
</listitem>
<listitem>
<para>
Skip tablespace privilege checks when <command>ALTER TABLE ... ALTER
- COLUMN TYPE</> rebuilds an existing index (Noah Misch)
+ COLUMN TYPE</command> rebuilds an existing index (Noah Misch)
</para>
<para>
The command failed if the calling user did not currently have
- <literal>CREATE</> privilege for the tablespace containing the index.
+ <literal>CREATE</literal> privilege for the tablespace containing the index.
That behavior seems unhelpful, so skip the check, allowing the
index to be rebuilt where it is.
</para>
<listitem>
<para>
- Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</> to not recurse
- to child tables when the constraint is marked <literal>NO INHERIT</>
+ Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</command> to not recurse
+ to child tables when the constraint is marked <literal>NO INHERIT</literal>
(Amit Langote)
</para>
<para>
- This fix prevents unwanted <quote>constraint does not exist</> failures
+ This fix prevents unwanted <quote>constraint does not exist</quote> failures
when no matching constraint is present in the child tables.
</para>
</listitem>
<listitem>
<para>
- Fix <command>VACUUM</> to account properly for pages that could not
+ Fix <command>VACUUM</command> to account properly for pages that could not
be scanned due to conflicting page pins (Andrew Gierth)
</para>
<para>
This tended to lead to underestimation of the number of tuples in
the table. In the worst case of a small heavily-contended
- table, <command>VACUUM</> could incorrectly report that the table
+ table, <command>VACUUM</command> could incorrectly report that the table
contained no tuples, leading to very bad planning choices.
</para>
</listitem>
<listitem>
<para>
- Fix <function>cursor_to_xml()</> to produce valid output
- with <replaceable>tableforest</> = false
+ Fix <function>cursor_to_xml()</function> to produce valid output
+ with <replaceable>tableforest</replaceable> = false
(Thomas Munro, Peter Eisentraut)
</para>
<para>
- Previously it failed to produce a wrapping <literal><table></>
+ Previously it failed to produce a wrapping <literal><table></literal>
element.
</para>
</listitem>
<listitem>
<para>
- Improve performance of <structname>pg_timezone_names</> view
+ Improve performance of <structname>pg_timezone_names</structname> view
(Tom Lane, David Rowley)
</para>
</listitem>
<listitem>
<para>
- Fix sloppy handling of corner-case errors from <function>lseek()</>
- and <function>close()</> (Tom Lane)
+ Fix sloppy handling of corner-case errors from <function>lseek()</function>
+ and <function>close()</function> (Tom Lane)
</para>
<para>
Neither of these system calls are likely to fail in typical situations,
- but if they did, <filename>fd.c</> could get quite confused.
+ but if they did, <filename>fd.c</filename> could get quite confused.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</> to support <command>COMMIT PREPARED</>
- and <command>ROLLBACK PREPARED</> (Masahiko Sawada)
+ Fix <application>ecpg</application> to support <command>COMMIT PREPARED</command>
+ and <command>ROLLBACK PREPARED</command> (Masahiko Sawada)
</para>
</listitem>
<listitem>
<para>
Fix a double-free error when processing dollar-quoted string literals
- in <application>ecpg</> (Michael Meskes)
+ in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, fix incorrect schema and owner marking for
+ In <application>pg_dump</application>, fix incorrect schema and owner marking for
comments and security labels of some types of database objects
(Giuseppe Broccolo, Tom Lane)
</para>
<listitem>
<para>
- Avoid emitting an invalid list file in <literal>pg_restore -l</>
+ Avoid emitting an invalid list file in <literal>pg_restore -l</literal>
when SQL object names contain newlines (Tom Lane)
</para>
<para>
Replace newlines by spaces, which is sufficient to make the output
- valid for <literal>pg_restore -L</>'s purposes.
+ valid for <literal>pg_restore -L</literal>'s purposes.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to transfer comments and security labels
- attached to <quote>large objects</> (blobs) (Stephen Frost)
+ Fix <application>pg_upgrade</application> to transfer comments and security labels
+ attached to <quote>large objects</quote> (blobs) (Stephen Frost)
</para>
<para>
<listitem>
<para>
Improve error handling
- in <filename>contrib/adminpack</>'s <function>pg_file_write()</>
+ in <filename>contrib/adminpack</filename>'s <function>pg_file_write()</function>
function (Noah Misch)
</para>
<para>
Notably, it failed to detect errors reported
- by <function>fclose()</>.
+ by <function>fclose()</function>.
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/dblink</>, avoid leaking the previous unnamed
+ In <filename>contrib/dblink</filename>, avoid leaking the previous unnamed
connection when establishing a new unnamed connection (Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/pg_trgm</>'s extraction of trigrams from regular
+ Fix <filename>contrib/pg_trgm</filename>'s extraction of trigrams from regular
expressions (Tom Lane)
</para>
<listitem>
<para>
- In <filename>contrib/postgres_fdw</>,
+ In <filename>contrib/postgres_fdw</filename>,
transmit query cancellation requests to the remote server
(Michael Paquier, Etsuro Fujita)
</para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2017b
+ Update time zone data files to <application>tzdata</application> release 2017b
for DST law changes in Chile, Haiti, and Mongolia, plus historical
corrections for Ecuador, Kazakhstan, Liberia, and Spain.
Switch to numeric abbreviations for numerous time zones in South
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
</listitem>
<para>
The Microsoft MSVC build scripts neglected to install
- the <filename>posixrules</> file in the timezone directory tree.
+ the <filename>posixrules</filename> file in the timezone directory tree.
This resulted in the timezone code falling back to its built-in
rule about what DST behavior to assume for a POSIX-style time zone
name. For historical reasons that still corresponds to the DST rules
the USA was using before 2007 (i.e., change on first Sunday in April
and last Sunday in October). With this fix, a POSIX-style zone name
will use the current and historical DST transition dates of
- the <literal>US/Eastern</> zone. If you don't want that, remove
- the <filename>posixrules</> file, or replace it with a copy of some
+ the <literal>US/Eastern</literal> zone. If you don't want that, remove
+ the <filename>posixrules</filename> file, or replace it with a copy of some
other zone file (see <xref linkend="datatype-timezones">). Note that
due to caching, you may need to restart the server to get such changes
to take effect.
<listitem>
<para>
Fix a race condition that could cause indexes built
- with <command>CREATE INDEX CONCURRENTLY</> to be corrupt
+ with <command>CREATE INDEX CONCURRENTLY</command> to be corrupt
(Pavan Deolasee, Tom Lane)
</para>
<para>
- If <command>CREATE INDEX CONCURRENTLY</> was used to build an index
+ If <command>CREATE INDEX CONCURRENTLY</command> was used to build an index
that depends on a column not previously indexed, then rows
updated by transactions that ran concurrently with
- the <command>CREATE INDEX</> command could have received incorrect
+ the <command>CREATE INDEX</command> command could have received incorrect
index entries. If you suspect this may have happened, the most
reliable solution is to rebuild affected indexes after installing
this update.
<listitem>
<para>
- Unconditionally WAL-log creation of the <quote>init fork</> for an
+ Unconditionally WAL-log creation of the <quote>init fork</quote> for an
unlogged table (Michael Paquier)
</para>
<para>
Previously, this was skipped when <xref linkend="guc-wal-level">
- = <literal>minimal</>, but actually it's necessary even in that case
+ = <literal>minimal</literal>, but actually it's necessary even in that case
to ensure that the unlogged table is properly reset to empty after a
crash.
</para>
<listitem>
<para>
- Make sure <command>ALTER TABLE</> preserves index tablespace
+ Make sure <command>ALTER TABLE</command> preserves index tablespace
assignments when rebuilding indexes (Tom Lane, Michael Paquier)
</para>
</para>
<para>
- This avoids <quote>could not find trigger <replaceable>NNN</></quote>
- or <quote>relation <replaceable>NNN</> has no triggers</quote> errors.
+ This avoids <quote>could not find trigger <replaceable>NNN</replaceable></quote>
+ or <quote>relation <replaceable>NNN</replaceable> has no triggers</quote> errors.
</para>
</listitem>
<listitem>
<para>
Fix processing of OID column when a table with OIDs is associated to
- a parent with OIDs via <command>ALTER TABLE ... INHERIT</> (Amit
+ a parent with OIDs via <command>ALTER TABLE ... INHERIT</command> (Amit
Langote)
</para>
<listitem>
<para>
Report correct object identity during <command>ALTER TEXT SEARCH
- CONFIGURATION</> (Artur Zakirov)
+ CONFIGURATION</command> (Artur Zakirov)
</para>
<para>
<listitem>
<para>
- Prevent multicolumn expansion of <replaceable>foo</><literal>.*</> in
- an <command>UPDATE</> source expression (Tom Lane)
+ Prevent multicolumn expansion of <replaceable>foo</replaceable><literal>.*</literal> in
+ an <command>UPDATE</command> source expression (Tom Lane)
</para>
<para>
This led to <quote>UPDATE target count mismatch --- internal
- error</>. Now the syntax is understood as a whole-row variable,
+ error</quote>. Now the syntax is understood as a whole-row variable,
as it would be in other contexts.
</para>
</listitem>
<listitem>
<para>
Ensure that column typmods are determined accurately for
- multi-row <literal>VALUES</> constructs (Tom Lane)
+ multi-row <literal>VALUES</literal> constructs (Tom Lane)
</para>
<para>
This fixes problems occurring when the first value in a column has a
- determinable typmod (e.g., length for a <type>varchar</> value) but
+ determinable typmod (e.g., length for a <type>varchar</type> value) but
later values don't share the same limit.
</para>
</listitem>
Normally, a Unicode surrogate leading character must be followed by a
Unicode surrogate trailing character, but the check for this was
missed if the leading character was the last character in a Unicode
- string literal (<literal>U&'...'</>) or Unicode identifier
- (<literal>U&"..."</>).
+ string literal (<literal>U&'...'</literal>) or Unicode identifier
+ (<literal>U&"..."</literal>).
</para>
</listitem>
<listitem>
<para>
Ensure that a purely negative text search query, such
- as <literal>!foo</>, matches empty <type>tsvector</>s (Tom Dunstan)
+ as <literal>!foo</literal>, matches empty <type>tsvector</type>s (Tom Dunstan)
</para>
<para>
<listitem>
<para>
- Prevent crash when <function>ts_rewrite()</> replaces a non-top-level
+ Prevent crash when <function>ts_rewrite()</function> replaces a non-top-level
subtree with an empty query (Artur Zakirov)
</para>
</listitem>
<listitem>
<para>
- Fix performance problems in <function>ts_rewrite()</> (Tom Lane)
+ Fix performance problems in <function>ts_rewrite()</function> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>ts_rewrite()</>'s handling of nested NOT operators
+ Fix <function>ts_rewrite()</function>'s handling of nested NOT operators
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>array_fill()</> to handle empty arrays properly (Tom Lane)
+ Fix <function>array_fill()</function> to handle empty arrays properly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix one-byte buffer overrun in <function>quote_literal_cstr()</>
+ Fix one-byte buffer overrun in <function>quote_literal_cstr()</function>
(Heikki Linnakangas)
</para>
<listitem>
<para>
- Prevent multiple calls of <function>pg_start_backup()</>
- and <function>pg_stop_backup()</> from running concurrently (Michael
+ Prevent multiple calls of <function>pg_start_backup()</function>
+ and <function>pg_stop_backup()</function> from running concurrently (Michael
Paquier)
</para>
<listitem>
<para>
- Avoid discarding <type>interval</>-to-<type>interval</> casts
+ Avoid discarding <type>interval</type>-to-<type>interval</type> casts
that aren't really no-ops (Tom Lane)
</para>
<para>
In some cases, a cast that should result in zeroing out
- low-order <type>interval</> fields was mistakenly deemed to be a
+ low-order <type>interval</type> fields was mistakenly deemed to be a
no-op and discarded. An example is that casting from <type>INTERVAL
- MONTH</> to <type>INTERVAL YEAR</> failed to clear the months field.
+ MONTH</type> to <type>INTERVAL YEAR</type> failed to clear the months field.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to dump user-defined casts and transforms
+ Fix <application>pg_dump</application> to dump user-defined casts and transforms
that use built-in functions (Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- Fix possible <application>pg_basebackup</> failure on standby
+ Fix possible <application>pg_basebackup</application> failure on standby
server when including WAL files (Amit Kapila, Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix PL/Tcl to support triggers on tables that have <literal>.tupno</>
+ Fix PL/Tcl to support triggers on tables that have <literal>.tupno</literal>
as a column name (Tom Lane)
</para>
<para>
This matches the (previously undocumented) behavior of
- PL/Tcl's <command>spi_exec</> and <command>spi_execp</> commands,
- namely that a magic <literal>.tupno</> column is inserted only if
+ PL/Tcl's <command>spi_exec</command> and <command>spi_execp</command> commands,
+ namely that a magic <literal>.tupno</literal> column is inserted only if
there isn't a real column named that.
</para>
</listitem>
<listitem>
<para>
- Allow DOS-style line endings in <filename>~/.pgpass</> files,
+ Allow DOS-style line endings in <filename>~/.pgpass</filename> files,
even on Unix (Vik Fearing)
</para>
<listitem>
<para>
- Fix one-byte buffer overrun if <application>ecpg</> is given a file
+ Fix one-byte buffer overrun if <application>ecpg</application> is given a file
name that ends with a dot (Takayuki Tsunakawa)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for <command>ALTER DEFAULT
- PRIVILEGES</> (Gilles Darold, Stephen Frost)
+ Fix <application>psql</application>'s tab completion for <command>ALTER DEFAULT
+ PRIVILEGES</command> (Gilles Darold, Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, treat an empty or all-blank setting of
- the <envar>PAGER</> environment variable as meaning <quote>no
- pager</> (Tom Lane)
+ In <application>psql</application>, treat an empty or all-blank setting of
+ the <envar>PAGER</envar> environment variable as meaning <quote>no
+ pager</quote> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Improve <filename>contrib/dblink</>'s reporting of
- low-level <application>libpq</> errors, such as out-of-memory
+ Improve <filename>contrib/dblink</filename>'s reporting of
+ low-level <application>libpq</application> errors, such as out-of-memory
(Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Teach <filename>contrib/dblink</> to ignore irrelevant server options
- when it uses a <filename>contrib/postgres_fdw</> foreign server as
+ Teach <filename>contrib/dblink</filename> to ignore irrelevant server options
+ when it uses a <filename>contrib/postgres_fdw</filename> foreign server as
the source of connection options (Corey Huinker)
</para>
<para>
Previously, if the foreign server object had options that were not
- also <application>libpq</> connection options, an error occurred.
+ also <application>libpq</application> connection options, an error occurred.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016j
+ Update time zone data files to <application>tzdata</application> release 2016j
for DST law changes in northern Cyprus (adding a new zone
Asia/Famagusta), Russia (adding a new zone Europe/Saratov), Tonga,
and Antarctica/Casey.
crash recovery, or to be written incorrectly on a standby server.
Bogus entries in a free space map could lead to attempts to access
pages that have been truncated away from the relation itself, typically
- producing errors like <quote>could not read block <replaceable>XXX</>:
+ producing errors like <quote>could not read block <replaceable>XXX</replaceable>:
read only 0 of 8192 bytes</quote>. Checksum failures in the
visibility map are also possible, if checksumming is enabled.
</para>
<para>
Procedures for determining whether there is a problem and repairing it
if so are discussed at
- <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></>.
+ <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></ulink>.
</para>
</listitem>
<listitem>
<para>
- Fix <command>SELECT FOR UPDATE/SHARE</> to correctly lock tuples that
+ Fix <command>SELECT FOR UPDATE/SHARE</command> to correctly lock tuples that
have been updated by a subsequently-aborted transaction
(Álvaro Herrera)
</para>
<para>
- In 9.5 and later, the <command>SELECT</> would sometimes fail to
+ In 9.5 and later, the <command>SELECT</command> would sometimes fail to
return such tuples at all. A failure has not been proven to occur in
earlier releases, but might be possible with concurrent updates.
</para>
<listitem>
<para>
- Fix <command>EXPLAIN</> to emit valid XML when
+ Fix <command>EXPLAIN</command> to emit valid XML when
<xref linkend="guc-track-io-timing"> is on (Markus Winand)
</para>
<para>
Previously the XML output-format option produced syntactically invalid
- tags such as <literal><I/O-Read-Time></>. That is now
- rendered as <literal><I-O-Read-Time></>.
+ tags such as <literal><I/O-Read-Time></literal>. That is now
+ rendered as <literal><I-O-Read-Time></literal>.
</para>
</listitem>
<listitem>
<para>
Suppress printing of zeroes for unmeasured times
- in <command>EXPLAIN</> (Maksim Milyutin)
+ in <command>EXPLAIN</command> (Maksim Milyutin)
</para>
<para>
Certain option combinations resulted in printing zero values for times
that actually aren't ever measured in that combination. Our general
- policy in <command>EXPLAIN</> is not to print such fields at all, so
+ policy in <command>EXPLAIN</command> is not to print such fields at all, so
do that consistently in all cases.
</para>
</listitem>
<listitem>
<para>
- Fix timeout length when <command>VACUUM</> is waiting for exclusive
+ Fix timeout length when <command>VACUUM</command> is waiting for exclusive
table lock so that it can truncate the table (Simon Riggs)
</para>
<para>
The timeout was meant to be 50 milliseconds, but it was actually only
- 50 microseconds, causing <command>VACUUM</> to give up on truncation
+ 50 microseconds, causing <command>VACUUM</command> to give up on truncation
much more easily than intended. Set it to the intended value.
</para>
</listitem>
<listitem>
<para>
- Fix bugs in merging inherited <literal>CHECK</> constraints while
+ Fix bugs in merging inherited <literal>CHECK</literal> constraints while
creating or altering a table (Tom Lane, Amit Langote)
</para>
<para>
- Allow identical <literal>CHECK</> constraints to be added to a parent
+ Allow identical <literal>CHECK</literal> constraints to be added to a parent
and child table in either order. Prevent merging of a valid
- constraint from the parent table with a <literal>NOT VALID</>
+ constraint from the parent table with a <literal>NOT VALID</literal>
constraint on the child. Likewise, prevent merging of a <literal>NO
- INHERIT</> child constraint with an inherited constraint.
+ INHERIT</literal> child constraint with an inherited constraint.
</para>
</listitem>
<listitem>
<para>
Remove artificial restrictions on the values accepted
- by <function>numeric_in()</> and <function>numeric_recv()</>
+ by <function>numeric_in()</function> and <function>numeric_recv()</function>
(Tom Lane)
</para>
<para>
We allow numeric values up to the limit of the storage format (more
- than <literal>1e100000</>), so it seems fairly pointless
- that <function>numeric_in()</> rejected scientific-notation exponents
- above 1000. Likewise, it was silly for <function>numeric_recv()</> to
+ than <literal>1e100000</literal>), so it seems fairly pointless
+ that <function>numeric_in()</function> rejected scientific-notation exponents
+ above 1000. Likewise, it was silly for <function>numeric_recv()</function> to
reject more than 1000 digits in an input value.
</para>
</listitem>
<listitem>
<para>
- Disallow starting a standalone backend with <literal>standby_mode</>
+ Disallow starting a standalone backend with <literal>standby_mode</literal>
turned on (Michael Paquier)
</para>
<listitem>
<para>
Don't try to share SSL contexts across multiple connections
- in <application>libpq</> (Heikki Linnakangas)
+ in <application>libpq</application> (Heikki Linnakangas)
</para>
<para>
<listitem>
<para>
- Avoid corner-case memory leak in <application>libpq</> (Tom Lane)
+ Avoid corner-case memory leak in <application>libpq</application> (Tom Lane)
</para>
<para>
The reported problem involved leaking an error report
- during <function>PQreset()</>, but there might be related cases.
+ during <function>PQreset()</function>, but there might be related cases.
</para>
</listitem>
<listitem>
<para>
- Make <application>ecpg</>'s <option>--help</> and <option>--version</>
+ Make <application>ecpg</application>'s <option>--help</option> and <option>--version</option>
options work consistently with our other executables (Haribabu Kommi)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, never dump range constructor functions
+ In <application>pg_dump</application>, never dump range constructor functions
(Tom Lane)
</para>
<para>
- This oversight led to <application>pg_upgrade</> failures with
+ This oversight led to <application>pg_upgrade</application> failures with
extensions containing range types, due to duplicate creation of the
constructor functions.
</para>
<listitem>
<para>
- In <application>pg_xlogdump</>, retry opening new WAL segments when
- using <option>--follow</> option (Magnus Hagander)
+ In <application>pg_xlogdump</application>, retry opening new WAL segments when
+ using <option>--follow</option> option (Magnus Hagander)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_xlogdump</> to cope with a WAL file that begins
+ Fix <application>pg_xlogdump</application> to cope with a WAL file that begins
with a continuation record spanning more than one page (Pavan
Deolasee)
</para>
<listitem>
<para>
- Fix <filename>contrib/intarray/bench/bench.pl</> to print the results
- of the <command>EXPLAIN</> it does when given the <option>-e</> option
+ Fix <filename>contrib/intarray/bench/bench.pl</filename> to print the results
+ of the <command>EXPLAIN</command> it does when given the <option>-e</option> option
(Daniel Gustafsson)
</para>
</listitem>
If a dynamic time zone abbreviation does not match any entry in the
referenced time zone, treat it as equivalent to the time zone name.
This avoids unexpected failures when IANA removes abbreviations from
- their time zone database, as they did in <application>tzdata</>
+ their time zone database, as they did in <application>tzdata</application>
release 2016f and seem likely to do again in the future. The
consequences were not limited to not recognizing the individual
abbreviation; any mismatch caused
- the <structname>pg_timezone_abbrevs</> view to fail altogether.
+ the <structname>pg_timezone_abbrevs</structname> view to fail altogether.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016h
+ Update time zone data files to <application>tzdata</application> release 2016h
for DST law changes in Palestine and Turkey, plus historical
corrections for Turkey and some regions of Russia.
Switch to numeric abbreviations for some time zones in Antarctica,
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
<para>
- In this update, <literal>AMT</> is no longer shown as being in use to
- mean Armenia Time. Therefore, we have changed the <literal>Default</>
+ In this update, <literal>AMT</literal> is no longer shown as being in use to
+ mean Armenia Time. Therefore, we have changed the <literal>Default</literal>
abbreviation set to interpret it as Amazon Time, thus UTC-4 not UTC+4.
</para>
</listitem>
<listitem>
<para>
Fix possible mis-evaluation of
- nested <literal>CASE</>-<literal>WHEN</> expressions (Heikki
+ nested <literal>CASE</literal>-<literal>WHEN</literal> expressions (Heikki
Linnakangas, Michael Paquier, Tom Lane)
</para>
<para>
- A <literal>CASE</> expression appearing within the test value
- subexpression of another <literal>CASE</> could become confused about
+ A <literal>CASE</literal> expression appearing within the test value
+ subexpression of another <literal>CASE</literal> could become confused about
whether its own test value was null or not. Also, inlining of a SQL
function implementing the equality operator used by
- a <literal>CASE</> expression could result in passing the wrong test
- value to functions called within a <literal>CASE</> expression in the
+ a <literal>CASE</literal> expression could result in passing the wrong test
+ value to functions called within a <literal>CASE</literal> expression in the
SQL function's body. If the test values were of different data
types, a crash might result; moreover such situations could be abused
to allow disclosure of portions of server memory. (CVE-2016-5423)
</para>
<para>
- Numerous places in <application>vacuumdb</> and other client programs
+ Numerous places in <application>vacuumdb</application> and other client programs
could become confused by database and role names containing double
quotes or backslashes. Tighten up quoting rules to make that safe.
Also, ensure that when a conninfo string is used as a database name
<para>
Fix handling of paired double quotes
- in <application>psql</>'s <command>\connect</>
- and <command>\password</> commands to match the documentation.
+ in <application>psql</application>'s <command>\connect</command>
+ and <command>\password</command> commands to match the documentation.
</para>
<para>
- Introduce a new <option>-reuse-previous</> option
- in <application>psql</>'s <command>\connect</> command to allow
+ Introduce a new <option>-reuse-previous</option> option
+ in <application>psql</application>'s <command>\connect</command> command to allow
explicit control of whether to re-use connection parameters from a
previous connection. (Without this, the choice is based on whether
the database name looks like a conninfo string, as before.) This
allows secure handling of database names containing special
- characters in <application>pg_dumpall</> scripts.
+ characters in <application>pg_dumpall</application> scripts.
</para>
<para>
- <application>pg_dumpall</> now refuses to deal with database and role
+ <application>pg_dumpall</application> now refuses to deal with database and role
names containing carriage returns or newlines, as it seems impractical
to quote those characters safely on Windows. In future we may reject
such names on the server side, but that step has not been taken yet.
These are considered security fixes because crafted object names
containing special characters could have been used to execute
commands with superuser privileges the next time a superuser
- executes <application>pg_dumpall</> or other routine maintenance
+ executes <application>pg_dumpall</application> or other routine maintenance
operations. (CVE-2016-5424)
</para>
</listitem>
<listitem>
<para>
- Fix corner-case misbehaviors for <literal>IS NULL</>/<literal>IS NOT
- NULL</> applied to nested composite values (Andrew Gierth, Tom Lane)
+ Fix corner-case misbehaviors for <literal>IS NULL</literal>/<literal>IS NOT
+ NULL</literal> applied to nested composite values (Andrew Gierth, Tom Lane)
</para>
<para>
- The SQL standard specifies that <literal>IS NULL</> should return
+ The SQL standard specifies that <literal>IS NULL</literal> should return
TRUE for a row of all null values (thus <literal>ROW(NULL,NULL) IS
- NULL</> yields TRUE), but this is not meant to apply recursively
- (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</> yields FALSE).
+ NULL</literal> yields TRUE), but this is not meant to apply recursively
+ (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</literal> yields FALSE).
The core executor got this right, but certain planner optimizations
treated the test as recursive (thus producing TRUE in both cases),
- and <filename>contrib/postgres_fdw</> could produce remote queries
+ and <filename>contrib/postgres_fdw</filename> could produce remote queries
that misbehaved similarly.
</para>
</listitem>
<listitem>
<para>
- Make the <type>inet</> and <type>cidr</> data types properly reject
+ Make the <type>inet</type> and <type>cidr</type> data types properly reject
IPv6 addresses with too many colon-separated fields (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Prevent crash in <function>close_ps()</>
- (the <type>point</> <literal>##</> <type>lseg</> operator)
+ Prevent crash in <function>close_ps()</function>
+ (the <type>point</type> <literal>##</literal> <type>lseg</type> operator)
for NaN input coordinates (Tom Lane)
</para>
<listitem>
<para>
- Avoid possible crash in <function>pg_get_expr()</> when inconsistent
+ Avoid possible crash in <function>pg_get_expr()</function> when inconsistent
values are passed to it (Michael Paquier, Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix several one-byte buffer over-reads in <function>to_number()</>
+ Fix several one-byte buffer over-reads in <function>to_number()</function>
(Peter Eisentraut)
</para>
<para>
- In several cases the <function>to_number()</> function would read one
+ In several cases the <function>to_number()</function> function would read one
more character than it should from the input string. There is a
small chance of a crash, if the input happens to be adjacent to the
end of memory.
<listitem>
<para>
Do not run the planner on the query contained in <literal>CREATE
- MATERIALIZED VIEW</> or <literal>CREATE TABLE AS</>
- when <literal>WITH NO DATA</> is specified (Michael Paquier,
+ MATERIALIZED VIEW</literal> or <literal>CREATE TABLE AS</literal>
+ when <literal>WITH NO DATA</literal> is specified (Michael Paquier,
Tom Lane)
</para>
<listitem>
<para>
Avoid unsafe intermediate state during expensive paths
- through <function>heap_update()</> (Masahiko Sawada, Andres Freund)
+ through <function>heap_update()</function> (Masahiko Sawada, Andres Freund)
</para>
<para>
<listitem>
<para>
- Avoid unnecessary <quote>could not serialize access</> errors when
- acquiring <literal>FOR KEY SHARE</> row locks in serializable mode
+ Avoid unnecessary <quote>could not serialize access</quote> errors when
+ acquiring <literal>FOR KEY SHARE</literal> row locks in serializable mode
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Avoid crash in <literal>postgres -C</> when the specified variable
+ Avoid crash in <literal>postgres -C</literal> when the specified variable
has a null string value (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Avoid consuming a transaction ID during <command>VACUUM</>
+ Avoid consuming a transaction ID during <command>VACUUM</command>
(Alexander Korotkov)
</para>
<para>
- Some cases in <command>VACUUM</> unnecessarily caused an XID to be
+ Some cases in <command>VACUUM</command> unnecessarily caused an XID to be
assigned to the current transaction. Normally this is negligible,
but if one is up against the XID wraparound limit, consuming more
XIDs during anti-wraparound vacuums is a very bad thing.
<listitem>
<para>
- Avoid canceling hot-standby queries during <command>VACUUM FREEZE</>
+ Avoid canceling hot-standby queries during <command>VACUUM FREEZE</command>
(Simon Riggs, Álvaro Herrera)
</para>
<para>
- <command>VACUUM FREEZE</> on an otherwise-idle master server could
+ <command>VACUUM FREEZE</command> on an otherwise-idle master server could
result in unnecessary cancellations of queries on its standby
servers.
</para>
<para>
The usual symptom of this bug is errors
- like <quote>MultiXactId <replaceable>NNN</> has not been created
+ like <quote>MultiXactId <replaceable>NNN</replaceable> has not been created
yet -- apparent wraparound</quote>.
</para>
</listitem>
<listitem>
<para>
- When a manual <command>ANALYZE</> specifies a column list, don't
- reset the table's <literal>changes_since_analyze</> counter
+ When a manual <command>ANALYZE</command> specifies a column list, don't
+ reset the table's <literal>changes_since_analyze</literal> counter
(Tom Lane)
</para>
<listitem>
<para>
- Fix <command>ANALYZE</>'s overestimation of <literal>n_distinct</>
+ Fix <command>ANALYZE</command>'s overestimation of <literal>n_distinct</literal>
for a unique or nearly-unique column with many null entries (Tom
Lane)
</para>
<listitem>
<para>
- Fix <filename>contrib/btree_gin</> to handle the smallest
- possible <type>bigint</> value correctly (Peter Eisentraut)
+ Fix <filename>contrib/btree_gin</filename> to handle the smallest
+ possible <type>bigint</type> value correctly (Peter Eisentraut)
</para>
</listitem>
<para>
It's planned to switch to two-part instead of three-part server
version numbers for releases after 9.6. Make sure
- that <function>PQserverVersion()</> returns the correct value for
+ that <function>PQserverVersion()</function> returns the correct value for
such cases.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>'s code for <literal>unsigned long long</>
+ Fix <application>ecpg</application>'s code for <literal>unsigned long long</literal>
array elements (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</> with both <option>-c</> and <option>-C</>
- options, avoid emitting an unwanted <literal>CREATE SCHEMA public</>
+ In <application>pg_dump</application> with both <option>-c</option> and <option>-C</option>
+ options, avoid emitting an unwanted <literal>CREATE SCHEMA public</literal>
command (David Johnston, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Improve handling of <systemitem>SIGTERM</>/control-C in
- parallel <application>pg_dump</> and <application>pg_restore</> (Tom
+ Improve handling of <systemitem>SIGTERM</systemitem>/control-C in
+ parallel <application>pg_dump</application> and <application>pg_restore</application> (Tom
Lane)
</para>
<para>
Make sure that the worker processes will exit promptly, and also arrange
to send query-cancel requests to the connected backends, in case they
- are doing something long-running such as a <command>CREATE INDEX</>.
+ are doing something long-running such as a <command>CREATE INDEX</command>.
</para>
</listitem>
<listitem>
<para>
- Fix error reporting in parallel <application>pg_dump</>
- and <application>pg_restore</> (Tom Lane)
+ Fix error reporting in parallel <application>pg_dump</application>
+ and <application>pg_restore</application> (Tom Lane)
</para>
<para>
- Previously, errors reported by <application>pg_dump</>
- or <application>pg_restore</> worker processes might never make it to
+ Previously, errors reported by <application>pg_dump</application>
+ or <application>pg_restore</application> worker processes might never make it to
the user's console, because the messages went through the master
process, and there were various deadlock scenarios that would prevent
the master process from passing on the messages. Instead, just print
- everything to <literal>stderr</>. In some cases this will result in
+ everything to <literal>stderr</literal>. In some cases this will result in
duplicate messages (for instance, if all the workers report a server
shutdown), but that seems better than no message.
</para>
<listitem>
<para>
- Ensure that parallel <application>pg_dump</>
- or <application>pg_restore</> on Windows will shut down properly
+ Ensure that parallel <application>pg_dump</application>
+ or <application>pg_restore</application> on Windows will shut down properly
after an error (Kyotaro Horiguchi)
</para>
<listitem>
<para>
- Make <application>pg_dump</> behave better when built without zlib
+ Make <application>pg_dump</application> behave better when built without zlib
support (Kyotaro Horiguchi)
</para>
<listitem>
<para>
- Make <application>pg_basebackup</> accept <literal>-Z 0</> as
+ Make <application>pg_basebackup</application> accept <literal>-Z 0</literal> as
specifying no compression (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Be more predictable about reporting <quote>statement timeout</>
- versus <quote>lock timeout</> (Tom Lane)
+ Be more predictable about reporting <quote>statement timeout</quote>
+ versus <quote>lock timeout</quote> (Tom Lane)
</para>
<para>
On heavily loaded machines, the regression tests sometimes failed due
- to reporting <quote>lock timeout</> even though the statement timeout
+ to reporting <quote>lock timeout</quote> even though the statement timeout
should have occurred first.
</para>
</listitem>
<listitem>
<para>
Update our copy of the timezone code to match
- IANA's <application>tzcode</> release 2016c (Tom Lane)
+ IANA's <application>tzcode</application> release 2016c (Tom Lane)
</para>
<para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016f
+ Update time zone data files to <application>tzdata</application> release 2016f
for DST law changes in Kemerovo and Novosibirsk, plus historical
corrections for Azerbaijan, Belarus, and Morocco.
</para>
using OpenSSL within a single process and not all the code involved
follows the same rules for when to clear the error queue.
Failures have been reported specifically when a client application
- uses SSL connections in <application>libpq</> concurrently with
+ uses SSL connections in <application>libpq</application> concurrently with
SSL connections using the PHP, Python, or Ruby wrappers for OpenSSL.
It's possible for similar problems to arise within the server as well,
if an extension module establishes an outgoing SSL connection.
<listitem>
<para>
- Fix <quote>failed to build any <replaceable>N</>-way joins</quote>
+ Fix <quote>failed to build any <replaceable>N</replaceable>-way joins</quote>
planner error with a full join enclosed in the right-hand side of a
left join (Tom Lane)
</para>
<para>
Given a three-or-more-way equivalence class of variables, such
- as <literal>X.X = Y.Y = Z.Z</>, it was possible for the planner to omit
+ as <literal>X.X = Y.Y = Z.Z</literal>, it was possible for the planner to omit
some of the tests needed to enforce that all the variables are actually
equal, leading to join rows being output that didn't satisfy
- the <literal>WHERE</> clauses. For various reasons, erroneous plans
+ the <literal>WHERE</literal> clauses. For various reasons, erroneous plans
were seldom selected in practice, so that this bug has gone undetected
for a long time.
</para>
<listitem>
<para>
- Fix possible misbehavior of <literal>TH</>, <literal>th</>,
- and <literal>Y,YYY</> format codes in <function>to_timestamp()</>
+ Fix possible misbehavior of <literal>TH</literal>, <literal>th</literal>,
+ and <literal>Y,YYY</literal> format codes in <function>to_timestamp()</function>
(Tom Lane)
</para>
<listitem>
<para>
- Fix dumping of rules and views in which the <replaceable>array</>
- argument of a <literal><replaceable>value</> <replaceable>operator</>
- ANY (<replaceable>array</>)</literal> construct is a sub-SELECT
+ Fix dumping of rules and views in which the <replaceable>array</replaceable>
+ argument of a <literal><replaceable>value</replaceable> <replaceable>operator</replaceable>
+ ANY (<replaceable>array</replaceable>)</literal> construct is a sub-SELECT
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_regress</> use a startup timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if that's set (Tom Lane)
+ Make <application>pg_regress</application> use a startup timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if that's set (Tom Lane)
</para>
<para>
This is for consistency with a behavior recently added
- to <application>pg_ctl</>; it eases automated testing on slow machines.
+ to <application>pg_ctl</application>; it eases automated testing on slow machines.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to correctly restore extension
+ Fix <application>pg_upgrade</application> to correctly restore extension
membership for operator families containing only one operator class
(Tom Lane)
</para>
<para>
In such a case, the operator family was restored into the new database,
but it was no longer marked as part of the extension. This had no
- immediate ill effects, but would cause later <application>pg_dump</>
+ immediate ill effects, but would cause later <application>pg_dump</application>
runs to emit output that would cause (harmless) errors on restore.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to not fail when new-cluster TOAST rules
+ Fix <application>pg_upgrade</application> to not fail when new-cluster TOAST rules
differ from old (Tom Lane)
</para>
<para>
- <application>pg_upgrade</> had special-case code to handle the
- situation where the new <productname>PostgreSQL</> version thinks that
+ <application>pg_upgrade</application> had special-case code to handle the
+ situation where the new <productname>PostgreSQL</productname> version thinks that
a table should have a TOAST table while the old version did not. That
code was broken, so remove it, and instead do nothing in such cases;
there seems no reason to believe that we can't get along fine without
<listitem>
<para>
Reduce the number of SysV semaphores used by a build configured with
- <option>--disable-spinlocks</> (Tom Lane)
+ <option>--disable-spinlocks</option> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Rename internal function <function>strtoi()</>
- to <function>strtoint()</> to avoid conflict with a NetBSD library
+ Rename internal function <function>strtoi()</function>
+ to <function>strtoint()</function> to avoid conflict with a NetBSD library
function (Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix reporting of errors from <function>bind()</>
- and <function>listen()</> system calls on Windows (Tom Lane)
+ Fix reporting of errors from <function>bind()</function>
+ and <function>listen()</function> system calls on Windows (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>putenv()</> to work properly with Visual Studio 2013
+ Fix <function>putenv()</function> to work properly with Visual Studio 2013
(Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Avoid possibly-unsafe use of Windows' <function>FormatMessage()</>
+ Avoid possibly-unsafe use of Windows' <function>FormatMessage()</function>
function (Christian Ullrich)
</para>
<para>
- Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</> flag where
+ Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</literal> flag where
appropriate. No live bug is known to exist here, but it seems like a
good idea to be careful.
</para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016d
+ Update time zone data files to <application>tzdata</application> release 2016d
for DST law changes in Russia and Venezuela. There are new zone
- names <literal>Europe/Kirov</> and <literal>Asia/Tomsk</> to reflect
+ names <literal>Europe/Kirov</literal> and <literal>Asia/Tomsk</literal> to reflect
the fact that these regions now have different time zone histories from
adjacent regions.
</para>
<listitem>
<para>
Fix incorrect handling of NULL index entries in
- indexed <literal>ROW()</> comparisons (Tom Lane)
+ indexed <literal>ROW()</literal> comparisons (Tom Lane)
</para>
<para>
An index search using a row comparison such as <literal>ROW(a, b) >
- ROW('x', 'y')</> would stop upon reaching a NULL entry in
- the <structfield>b</> column, ignoring the fact that there might be
- non-NULL <structfield>b</> values associated with later values
- of <structfield>a</>.
+ ROW('x', 'y')</literal> would stop upon reaching a NULL entry in
+ the <structfield>b</structfield> column, ignoring the fact that there might be
+ non-NULL <structfield>b</structfield> values associated with later values
+ of <structfield>a</structfield>.
</para>
</listitem>
<listitem>
<para>
Avoid unlikely data-loss scenarios due to renaming files without
- adequate <function>fsync()</> calls before and after (Michael Paquier,
+ adequate <function>fsync()</function> calls before and after (Michael Paquier,
Tomas Vondra, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Correctly handle cases where <literal>pg_subtrans</> is close to XID
+ Correctly handle cases where <literal>pg_subtrans</literal> is close to XID
wraparound during server startup (Jeff Janes)
</para>
</listitem>
<listitem>
<para>
- Fix corner-case crash due to trying to free <function>localeconv()</>
+ Fix corner-case crash due to trying to free <function>localeconv()</function>
output strings more than once (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix parsing of affix files for <literal>ispell</> dictionaries
+ Fix parsing of affix files for <literal>ispell</literal> dictionaries
(Tom Lane)
</para>
<para>
The code could go wrong if the affix file contained any characters
whose byte length changes during case-folding, for
- example <literal>I</> in Turkish UTF8 locales.
+ example <literal>I</literal> in Turkish UTF8 locales.
</para>
</listitem>
<listitem>
<para>
- Avoid use of <function>sscanf()</> to parse <literal>ispell</>
+ Avoid use of <function>sscanf()</function> to parse <literal>ispell</literal>
dictionary files (Artur Zakirov)
</para>
<listitem>
<para>
- Fix <application>psql</>'s tab completion logic to handle multibyte
+ Fix <application>psql</application>'s tab completion logic to handle multibyte
characters properly (Kyotaro Horiguchi, Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for
- <literal>SECURITY LABEL</> (Tom Lane)
+ Fix <application>psql</application>'s tab completion for
+ <literal>SECURITY LABEL</literal> (Tom Lane)
</para>
<para>
- Pressing TAB after <literal>SECURITY LABEL</> might cause a crash
+ Pressing TAB after <literal>SECURITY LABEL</literal> might cause a crash
or offering of inappropriate keywords.
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_ctl</> accept a wait timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if none is specified on
+ Make <application>pg_ctl</application> accept a wait timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if none is specified on
the command line (Noah Misch)
</para>
<listitem>
<para>
Fix incorrect test for Windows service status
- in <application>pg_ctl</> (Manuel Mathar)
+ in <application>pg_ctl</application> (Manuel Mathar)
</para>
<para>
The previous set of minor releases attempted to
- fix <application>pg_ctl</> to properly determine whether to send log
+ fix <application>pg_ctl</application> to properly determine whether to send log
messages to Window's Event Log, but got the test backwards.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pgbench</> to correctly handle the combination
- of <literal>-C</> and <literal>-M prepared</> options (Tom Lane)
+ Fix <application>pgbench</application> to correctly handle the combination
+ of <literal>-C</literal> and <literal>-M prepared</literal> options (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, skip creating a deletion script when
+ In <application>pg_upgrade</application>, skip creating a deletion script when
the new data directory is inside the old data directory (Bruce
Momjian)
</para>
<listitem>
<para>
Fix multiple mistakes in the statistics returned
- by <filename>contrib/pgstattuple</>'s <function>pgstatindex()</>
+ by <filename>contrib/pgstattuple</filename>'s <function>pgstatindex()</function>
function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Remove dependency on <literal>psed</> in MSVC builds, since it's no
+ Remove dependency on <literal>psed</literal> in MSVC builds, since it's no
longer provided by core Perl (Michael Paquier, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016c
+ Update time zone data files to <application>tzdata</application> release 2016c
for DST law changes in Azerbaijan, Chile, Haiti, Palestine, and Russia
(Altai, Astrakhan, Kirov, Sakhalin, Ulyanovsk regions), plus
historical corrections for Lithuania, Moldova, and Russia
<listitem>
<para>
- Perform an immediate shutdown if the <filename>postmaster.pid</> file
+ Perform an immediate shutdown if the <filename>postmaster.pid</filename> file
is removed (Tom Lane)
</para>
<para>
The postmaster now checks every minute or so
- that <filename>postmaster.pid</> is still there and still contains its
+ that <filename>postmaster.pid</filename> is still there and still contains its
own PID. If not, it performs an immediate shutdown, as though it had
- received <systemitem>SIGQUIT</>. The main motivation for this change
+ received <systemitem>SIGQUIT</systemitem>. The main motivation for this change
is to ensure that failed buildfarm runs will get cleaned up without
manual intervention; but it also serves to limit the bad effects if a
- DBA forcibly removes <filename>postmaster.pid</> and then starts a new
+ DBA forcibly removes <filename>postmaster.pid</filename> and then starts a new
postmaster.
</para>
</listitem>
<listitem>
<para>
- In <literal>SERIALIZABLE</> transaction isolation mode, serialization
+ In <literal>SERIALIZABLE</literal> transaction isolation mode, serialization
anomalies could be missed due to race conditions during insertions
(Kevin Grittner, Thomas Munro)
</para>
<listitem>
<para>
Fix failure to emit appropriate WAL records when doing <literal>ALTER
- TABLE ... SET TABLESPACE</> for unlogged relations (Michael Paquier,
+ TABLE ... SET TABLESPACE</literal> for unlogged relations (Michael Paquier,
Andres Freund)
</para>
<listitem>
<para>
- Fix <command>ALTER COLUMN TYPE</> to reconstruct inherited check
+ Fix <command>ALTER COLUMN TYPE</command> to reconstruct inherited check
constraints properly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to change ownership of composite types
+ Fix <command>REASSIGN OWNED</command> to change ownership of composite types
properly (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> and <command>ALTER OWNER</> to correctly
+ Fix <command>REASSIGN OWNED</command> and <command>ALTER OWNER</command> to correctly
update granted-permissions lists when changing owners of data types,
foreign data wrappers, or foreign servers (Bruce Momjian,
Álvaro Herrera)
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to ignore foreign user mappings,
+ Fix <command>REASSIGN OWNED</command> to ignore foreign user mappings,
rather than fail (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix planner's handling of <literal>LATERAL</> references (Tom
+ Fix planner's handling of <literal>LATERAL</literal> references (Tom
Lane)
</para>
<para>
This fixes some corner cases that led to <quote>failed to build any
- N-way joins</> or <quote>could not devise a query plan</> planner
+ N-way joins</quote> or <quote>could not devise a query plan</quote> planner
failures.
</para>
</listitem>
<listitem>
<para>
- Speed up generation of unique table aliases in <command>EXPLAIN</> and
+ Speed up generation of unique table aliases in <command>EXPLAIN</command> and
rule dumping, and ensure that generated aliases do not
- exceed <literal>NAMEDATALEN</> (Tom Lane)
+ exceed <literal>NAMEDATALEN</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of whole-row Vars in <literal>ROW()</>
- and <literal>VALUES()</> lists (Tom Lane)
+ Fix dumping of whole-row Vars in <literal>ROW()</literal>
+ and <literal>VALUES()</literal> lists (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix possible internal overflow in <type>numeric</> division
+ Fix possible internal overflow in <type>numeric</type> division
(Dean Rasheed)
</para>
</listitem>
<para>
This causes the code to emit <quote>regular expression is too
- complex</> errors in some cases that previously used unreasonable
+ complex</quote> errors in some cases that previously used unreasonable
amounts of time and memory.
</para>
</listitem>
<listitem>
<para>
- Make <literal>%h</> and <literal>%r</> escapes
- in <varname>log_line_prefix</> work for messages emitted due
- to <varname>log_connections</> (Tom Lane)
+ Make <literal>%h</literal> and <literal>%r</literal> escapes
+ in <varname>log_line_prefix</varname> work for messages emitted due
+ to <varname>log_connections</varname> (Tom Lane)
</para>
<para>
- Previously, <literal>%h</>/<literal>%r</> started to work just after a
- new session had emitted the <quote>connection received</> log message;
+ Previously, <literal>%h</literal>/<literal>%r</literal> started to work just after a
+ new session had emitted the <quote>connection received</quote> log message;
now they work for that message too.
</para>
</listitem>
<para>
This oversight resulted in failure to recover from crashes
- whenever <varname>logging_collector</> is turned on.
+ whenever <varname>logging_collector</varname> is turned on.
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, ensure that <application>libreadline</>'s idea
+ In <application>psql</application>, ensure that <application>libreadline</application>'s idea
of the screen size is updated when the terminal window size changes
(Merlin Moncure)
</para>
<para>
- Previously, <application>libreadline</> did not notice if the window
+ Previously, <application>libreadline</application> did not notice if the window
was resized during query output, leading to strange behavior during
later input of multiline queries.
</para>
<listitem>
<para>
- Fix <application>psql</>'s <literal>\det</> command to interpret its
- pattern argument the same way as other <literal>\d</> commands with
+ Fix <application>psql</application>'s <literal>\det</literal> command to interpret its
+ pattern argument the same way as other <literal>\d</literal> commands with
potentially schema-qualified patterns do (Reece Hart)
</para>
</listitem>
<listitem>
<para>
- Avoid possible crash in <application>psql</>'s <literal>\c</> command
+ Avoid possible crash in <application>psql</application>'s <literal>\c</literal> command
when previous connection was via Unix socket and command specifies a
new hostname and same username (Tom Lane)
</para>
<listitem>
<para>
- In <literal>pg_ctl start -w</>, test child process status directly
+ In <literal>pg_ctl start -w</literal>, test child process status directly
rather than relying on heuristics (Tom Lane, Michael Paquier)
</para>
<para>
- Previously, <application>pg_ctl</> relied on an assumption that the new
- postmaster would always create <filename>postmaster.pid</> within five
+ Previously, <application>pg_ctl</application> relied on an assumption that the new
+ postmaster would always create <filename>postmaster.pid</filename> within five
seconds. But that can fail on heavily-loaded systems,
- causing <application>pg_ctl</> to report incorrectly that the
+ causing <application>pg_ctl</application> to report incorrectly that the
postmaster failed to start.
</para>
<para>
Except on Windows, this change also means that a <literal>pg_ctl start
- -w</> done immediately after another such command will now reliably
+ -w</literal> done immediately after another such command will now reliably
fail, whereas previously it would report success if done within two
seconds of the first command.
</para>
<listitem>
<para>
- In <literal>pg_ctl start -w</>, don't attempt to use a wildcard listen
+ In <literal>pg_ctl start -w</literal>, don't attempt to use a wildcard listen
address to connect to the postmaster (Kondo Yuta)
</para>
<para>
- On Windows, <application>pg_ctl</> would fail to detect postmaster
- startup if <varname>listen_addresses</> is set to <literal>0.0.0.0</>
- or <literal>::</>, because it would try to use that value verbatim as
+ On Windows, <application>pg_ctl</application> would fail to detect postmaster
+ startup if <varname>listen_addresses</varname> is set to <literal>0.0.0.0</literal>
+ or <literal>::</literal>, because it would try to use that value verbatim as
the address to connect to, which doesn't work. Instead assume
- that <literal>127.0.0.1</> or <literal>::1</>, respectively, is the
+ that <literal>127.0.0.1</literal> or <literal>::1</literal>, respectively, is the
right thing to use.
</para>
</listitem>
<listitem>
<para>
- In <application>pg_ctl</> on Windows, check service status to decide
+ In <application>pg_ctl</application> on Windows, check service status to decide
where to send output, rather than checking if standard output is a
terminal (Michael Paquier)
</para>
<listitem>
<para>
- In <application>pg_dump</> and <application>pg_basebackup</>, adopt
+ In <application>pg_dump</application> and <application>pg_basebackup</application>, adopt
the GNU convention for handling tar-archive members exceeding 8GB
(Tom Lane)
</para>
<para>
- The POSIX standard for <literal>tar</> file format does not allow
+ The POSIX standard for <literal>tar</literal> file format does not allow
archive member files to exceed 8GB, but most modern implementations
- of <application>tar</> support an extension that fixes that. Adopt
- this extension so that <application>pg_dump</> with <option>-Ft</> no
+ of <application>tar</application> support an extension that fixes that. Adopt
+ this extension so that <application>pg_dump</application> with <option>-Ft</option> no
longer fails on tables with more than 8GB of data, and so
- that <application>pg_basebackup</> can handle files larger than 8GB.
+ that <application>pg_basebackup</application> can handle files larger than 8GB.
In addition, fix some portability issues that could cause failures for
members between 4GB and 8GB on some platforms. Potentially these
problems could cause unrecoverable data loss due to unreadable backup
<listitem>
<para>
- Fix assorted corner-case bugs in <application>pg_dump</>'s processing
+ Fix assorted corner-case bugs in <application>pg_dump</application>'s processing
of extension member objects (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> mark a view's triggers as needing to be
+ Make <application>pg_dump</application> mark a view's triggers as needing to be
processed after its rule, to prevent possible failure during
- parallel <application>pg_restore</> (Tom Lane)
+ parallel <application>pg_restore</application> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Ensure that relation option values are properly quoted
- in <application>pg_dump</> (Kouhei Sutou, Tom Lane)
+ in <application>pg_dump</application> (Kouhei Sutou, Tom Lane)
</para>
<para>
A reloption value that isn't a simple identifier or number could lead
to dump/reload failures due to syntax errors in CREATE statements
- issued by <application>pg_dump</>. This is not an issue with any
- reloption currently supported by core <productname>PostgreSQL</>, but
+ issued by <application>pg_dump</application>. This is not an issue with any
+ reloption currently supported by core <productname>PostgreSQL</productname>, but
extensions could allow reloptions that cause the problem.
</para>
</listitem>
<listitem>
<para>
- Avoid repeated password prompts during parallel <application>pg_dump</>
+ Avoid repeated password prompts during parallel <application>pg_dump</application>
(Zeus Kronion)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</>'s file-copying code to handle errors
+ Fix <application>pg_upgrade</application>'s file-copying code to handle errors
properly on Windows (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Install guards in <application>pgbench</> against corner-case overflow
+ Install guards in <application>pgbench</application> against corner-case overflow
conditions during evaluation of script-specified division or modulo
operators (Fabien Coelho, Michael Paquier)
</para>
<listitem>
<para>
Fix failure to localize messages emitted
- by <application>pg_receivexlog</> and <application>pg_recvlogical</>
+ by <application>pg_receivexlog</application> and <application>pg_recvlogical</application>
(Ioseph Kim)
</para>
</listitem>
<listitem>
<para>
- Avoid dump/reload problems when using both <application>plpython2</>
- and <application>plpython3</> (Tom Lane)
+ Avoid dump/reload problems when using both <application>plpython2</application>
+ and <application>plpython3</application> (Tom Lane)
</para>
<para>
- In principle, both versions of <application>PL/Python</> can be used in
+ In principle, both versions of <application>PL/Python</application> can be used in
the same database, though not in the same session (because the two
- versions of <application>libpython</> cannot safely be used concurrently).
- However, <application>pg_restore</> and <application>pg_upgrade</> both
+ versions of <application>libpython</application> cannot safely be used concurrently).
+ However, <application>pg_restore</application> and <application>pg_upgrade</application> both
do things that can fall foul of the same-session restriction. Work
around that by changing the timing of the check.
</para>
<listitem>
<para>
- Fix <application>PL/Python</> regression tests to pass with Python 3.5
+ Fix <application>PL/Python</application> regression tests to pass with Python 3.5
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Fix premature clearing of <application>libpq</>'s input buffer when
+ Fix premature clearing of <application>libpq</application>'s input buffer when
socket EOF is seen (Tom Lane)
</para>
<para>
- This mistake caused <application>libpq</> to sometimes not report the
+ This mistake caused <application>libpq</application> to sometimes not report the
backend's final error message before reporting <quote>server closed the
- connection unexpectedly</>.
+ connection unexpectedly</quote>.
</para>
</listitem>
<listitem>
<para>
- Prevent certain <application>PL/Java</> parameters from being set by
+ Prevent certain <application>PL/Java</application> parameters from being set by
non-superusers (Noah Misch)
</para>
<para>
- This change mitigates a <application>PL/Java</> security bug
- (CVE-2016-0766), which was fixed in <application>PL/Java</> by marking
+ This change mitigates a <application>PL/Java</application> security bug
+ (CVE-2016-0766), which was fixed in <application>PL/Java</application> by marking
these parameters as superuser-only. To fix the security hazard for
- sites that update <productname>PostgreSQL</> more frequently
- than <application>PL/Java</>, make the core code aware of them also.
+ sites that update <productname>PostgreSQL</productname> more frequently
+ than <application>PL/Java</application>, make the core code aware of them also.
</para>
</listitem>
<listitem>
<para>
- Improve <application>libpq</>'s handling of out-of-memory situations
+ Improve <application>libpq</application>'s handling of out-of-memory situations
(Michael Paquier, Amit Kapila, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix order of arguments
- in <application>ecpg</>-generated <literal>typedef</> statements
+ in <application>ecpg</application>-generated <literal>typedef</literal> statements
(Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Use <literal>%g</> not <literal>%f</> format
- in <application>ecpg</>'s <function>PGTYPESnumeric_from_double()</>
+ Use <literal>%g</literal> not <literal>%f</literal> format
+ in <application>ecpg</application>'s <function>PGTYPESnumeric_from_double()</function>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>-supplied header files to not contain comments
+ Fix <application>ecpg</application>-supplied header files to not contain comments
continued from a preprocessor directive line onto the next line
(Michael Meskes)
</para>
<para>
- Such a comment is rejected by <application>ecpg</>. It's not yet clear
- whether <application>ecpg</> itself should be changed.
+ Such a comment is rejected by <application>ecpg</application>. It's not yet clear
+ whether <application>ecpg</application> itself should be changed.
</para>
</listitem>
<listitem>
<para>
- Fix <function>hstore_to_json_loose()</>'s test for whether
- an <type>hstore</> value can be converted to a JSON number (Tom Lane)
+ Fix <function>hstore_to_json_loose()</function>'s test for whether
+ an <type>hstore</type> value can be converted to a JSON number (Tom Lane)
</para>
<para>
<listitem>
<para>
- Ensure that <filename>contrib/pgcrypto</>'s <function>crypt()</>
+ Ensure that <filename>contrib/pgcrypto</filename>'s <function>crypt()</function>
function can be interrupted by query cancel (Andreas Karlsson)
</para>
</listitem>
<listitem>
<para>
- Accept <application>flex</> versions later than 2.5.x
+ Accept <application>flex</application> versions later than 2.5.x
(Tom Lane, Michael Paquier)
</para>
<listitem>
<para>
- Install our <filename>missing</> script where PGXS builds can find it
+ Install our <filename>missing</filename> script where PGXS builds can find it
(Jim Nasby)
</para>
<para>
This allows sane behavior in a PGXS build done on a machine where build
- tools such as <application>bison</> are missing.
+ tools such as <application>bison</application> are missing.
</para>
</listitem>
<listitem>
<para>
- Ensure that <filename>dynloader.h</> is included in the installed
+ Ensure that <filename>dynloader.h</filename> is included in the installed
header files in MSVC builds (Bruce Momjian, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Add variant regression test expected-output file to match behavior of
- current <application>libxml2</> (Tom Lane)
+ current <application>libxml2</application> (Tom Lane)
</para>
<para>
- The fix for <application>libxml2</>'s CVE-2015-7499 causes it not to
+ The fix for <application>libxml2</application>'s CVE-2015-7499 causes it not to
output error context reports in some cases where it used to do so.
This seems to be a bug, but we'll probably have to live with it for
some time, so work around it.
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016a for
+ Update time zone data files to <application>tzdata</application> release 2016a for
DST law changes in Cayman Islands, Metlakatla, and Trans-Baikal
Territory (Zabaykalsky Krai), plus historical corrections for Pakistan.
</para>
<listitem>
<para>
- Guard against stack overflows in <type>json</> parsing
+ Guard against stack overflows in <type>json</type> parsing
(Oskari Saarenmaa)
</para>
<para>
- If an application constructs PostgreSQL <type>json</>
- or <type>jsonb</> values from arbitrary user input, the application's
+ If an application constructs PostgreSQL <type>json</type>
+ or <type>jsonb</type> values from arbitrary user input, the application's
users can reliably crash the PostgreSQL server, causing momentary
denial of service. (CVE-2015-5289)
</para>
<listitem>
<para>
- Fix <filename>contrib/pgcrypto</> to detect and report
- too-short <function>crypt()</> salts (Josh Kupershmidt)
+ Fix <filename>contrib/pgcrypto</filename> to detect and report
+ too-short <function>crypt()</function> salts (Josh Kupershmidt)
</para>
<para>
<listitem>
<para>
- Fix insertion of relations into the relation cache <quote>init file</>
+ Fix insertion of relations into the relation cache <quote>init file</quote>
(Tom Lane)
</para>
<para>
An oversight in a patch in the most recent minor releases
- caused <structname>pg_trigger_tgrelid_tgname_index</> to be omitted
+ caused <structname>pg_trigger_tgrelid_tgname_index</structname> to be omitted
from the init file. Subsequent sessions detected this, then deemed the
init file to be broken and silently ignored it, resulting in a
significant degradation in session startup time. In addition to fixing
<listitem>
<para>
- Improve <command>LISTEN</> startup time when there are many unread
+ Improve <command>LISTEN</command> startup time when there are many unread
notifications (Matt Newell)
</para>
</listitem>
</para>
<para>
- This was seen primarily when restoring <application>pg_dump</> output
+ This was seen primarily when restoring <application>pg_dump</application> output
for databases with many thousands of tables.
</para>
</listitem>
too many bugs in practice, both in the underlying OpenSSL library and
in our usage of it. Renegotiation will be removed entirely in 9.5 and
later. In the older branches, just change the default value
- of <varname>ssl_renegotiation_limit</> to zero (disabled).
+ of <varname>ssl_renegotiation_limit</varname> to zero (disabled).
</para>
</listitem>
<listitem>
<para>
- Lower the minimum values of the <literal>*_freeze_max_age</> parameters
+ Lower the minimum values of the <literal>*_freeze_max_age</literal> parameters
(Andres Freund)
</para>
<listitem>
<para>
- Limit the maximum value of <varname>wal_buffers</> to 2GB to avoid
+ Limit the maximum value of <varname>wal_buffers</varname> to 2GB to avoid
server crashes (Josh Berkus)
</para>
</listitem>
<listitem>
<para>
Avoid logging complaints when a parameter that can only be set at
- server start appears multiple times in <filename>postgresql.conf</>,
- and fix counting of line numbers after an <literal>include_dir</>
+ server start appears multiple times in <filename>postgresql.conf</filename>,
+ and fix counting of line numbers after an <literal>include_dir</literal>
directive (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix rare internal overflow in multiplication of <type>numeric</> values
+ Fix rare internal overflow in multiplication of <type>numeric</type> values
(Dean Rasheed)
</para>
</listitem>
<listitem>
<para>
Guard against hard-to-reach stack overflows involving record types,
- range types, <type>json</>, <type>jsonb</>, <type>tsquery</>,
- <type>ltxtquery</> and <type>query_int</> (Noah Misch)
+ range types, <type>json</type>, <type>jsonb</type>, <type>tsquery</type>,
+ <type>ltxtquery</type> and <type>query_int</type> (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Fix handling of <literal>DOW</> and <literal>DOY</> in datetime input
+ Fix handling of <literal>DOW</literal> and <literal>DOY</literal> in datetime input
(Greg Stark)
</para>
<para>
These tokens aren't meant to be used in datetime values, but previously
they resulted in opaque internal error messages rather
- than <quote>invalid input syntax</>.
+ than <quote>invalid input syntax</quote>.
</para>
</listitem>
<listitem>
<para>
Add recursion depth protections to regular expression, <literal>SIMILAR
- TO</>, and <literal>LIKE</> matching (Tom Lane)
+ TO</literal>, and <literal>LIKE</literal> matching (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <quote>unexpected out-of-memory situation during sort</> errors
- when using tuplestores with small <varname>work_mem</> settings (Tom
+ Fix <quote>unexpected out-of-memory situation during sort</quote> errors
+ when using tuplestores with small <varname>work_mem</varname> settings (Tom
Lane)
</para>
</listitem>
<listitem>
<para>
- Fix very-low-probability stack overrun in <function>qsort</> (Tom Lane)
+ Fix very-low-probability stack overrun in <function>qsort</function> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <quote>invalid memory alloc request size</> failure in hash joins
- with large <varname>work_mem</> settings (Tomas Vondra, Tom Lane)
+ Fix <quote>invalid memory alloc request size</quote> failure in hash joins
+ with large <varname>work_mem</varname> settings (Tomas Vondra, Tom Lane)
</para>
</listitem>
These mistakes could lead to incorrect query plans that would give wrong
answers, or to assertion failures in assert-enabled builds, or to odd
planner errors such as <quote>could not devise a query plan for the
- given query</>, <quote>could not find pathkey item to
- sort</>, <quote>plan should not reference subplan's variable</>,
- or <quote>failed to assign all NestLoopParams to plan nodes</>.
+ given query</quote>, <quote>could not find pathkey item to
+ sort</quote>, <quote>plan should not reference subplan's variable</quote>,
+ or <quote>failed to assign all NestLoopParams to plan nodes</quote>.
Thanks are due to Andreas Seltenreich and Piotr Stefaniak for fuzz
testing that exposed these problems.
</para>
<listitem>
<para>
- Improve planner's performance for <command>UPDATE</>/<command>DELETE</>
+ Improve planner's performance for <command>UPDATE</command>/<command>DELETE</command>
on large inheritance sets (Tom Lane, Dean Rasheed)
</para>
</listitem>
<para>
During postmaster shutdown, ensure that per-socket lock files are
removed and listen sockets are closed before we remove
- the <filename>postmaster.pid</> file (Tom Lane)
+ the <filename>postmaster.pid</filename> file (Tom Lane)
</para>
<para>
This avoids race-condition failures if an external script attempts to
- start a new postmaster as soon as <literal>pg_ctl stop</> returns.
+ start a new postmaster as soon as <literal>pg_ctl stop</literal> returns.
</para>
</listitem>
<listitem>
<para>
- Do not print a <literal>WARNING</> when an autovacuum worker is already
+ Do not print a <literal>WARNING</literal> when an autovacuum worker is already
gone when we attempt to signal it, and reduce log verbosity for such
signals (Tom Lane)
</para>
</para>
<para>
- <command>VACUUM</> attempted to recycle such pages, but did so in a
+ <command>VACUUM</command> attempted to recycle such pages, but did so in a
way that wasn't crash-safe.
</para>
</listitem>
<listitem>
<para>
Fix off-by-one error that led to otherwise-harmless warnings
- about <quote>apparent wraparound</> in subtrans/multixact truncation
+ about <quote>apparent wraparound</quote> in subtrans/multixact truncation
(Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix misreporting of <command>CONTINUE</> and <command>MOVE</> statement
- types in <application>PL/pgSQL</>'s error context messages
+ Fix misreporting of <command>CONTINUE</command> and <command>MOVE</command> statement
+ types in <application>PL/pgSQL</application>'s error context messages
(Pavel Stehule, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>PL/Perl</> to handle non-<acronym>ASCII</> error
+ Fix <application>PL/Perl</application> to handle non-<acronym>ASCII</acronym> error
message texts correctly (Alex Hunsaker)
</para>
</listitem>
<listitem>
<para>
- Fix <application>PL/Python</> crash when returning the string
- representation of a <type>record</> result (Tom Lane)
+ Fix <application>PL/Python</application> crash when returning the string
+ representation of a <type>record</type> result (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix some places in <application>PL/Tcl</> that neglected to check for
- failure of <function>malloc()</> calls (Michael Paquier, Álvaro
+ Fix some places in <application>PL/Tcl</application> that neglected to check for
+ failure of <function>malloc()</function> calls (Michael Paquier, Álvaro
Herrera)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/isn</>, fix output of ISBN-13 numbers that begin
+ In <filename>contrib/isn</filename>, fix output of ISBN-13 numbers that begin
with 979 (Fabien Coelho)
</para>
<listitem>
<para>
- Improve <filename>contrib/postgres_fdw</>'s handling of
+ Improve <filename>contrib/postgres_fdw</filename>'s handling of
collation-related decisions (Tom Lane)
</para>
<para>
The main user-visible effect is expected to be that comparisons
- involving <type>varchar</> columns will be sent to the remote server
+ involving <type>varchar</type> columns will be sent to the remote server
for execution in more cases than before.
</para>
</listitem>
<listitem>
<para>
- Improve <application>libpq</>'s handling of out-of-memory conditions
+ Improve <application>libpq</application>'s handling of out-of-memory conditions
(Michael Paquier, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix memory leaks and missing out-of-memory checks
- in <application>ecpg</> (Michael Paquier)
+ in <application>ecpg</application> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s code for locale-aware formatting of numeric
+ Fix <application>psql</application>'s code for locale-aware formatting of numeric
output (Tom Lane)
</para>
<para>
- The formatting code invoked by <literal>\pset numericlocale on</>
+ The formatting code invoked by <literal>\pset numericlocale on</literal>
did the wrong thing for some uncommon cases such as numbers with an
exponent but no decimal point. It could also mangle already-localized
- output from the <type>money</> data type.
+ output from the <type>money</type> data type.
</para>
</listitem>
<listitem>
<para>
- Prevent crash in <application>psql</>'s <command>\c</> command when
+ Prevent crash in <application>psql</application>'s <command>\c</command> command when
there is no current connection (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> handle inherited <literal>NOT VALID</>
+ Make <application>pg_dump</application> handle inherited <literal>NOT VALID</literal>
check constraints correctly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix selection of default <application>zlib</> compression level
- in <application>pg_dump</>'s directory output format (Andrew Dunstan)
+ Fix selection of default <application>zlib</application> compression level
+ in <application>pg_dump</application>'s directory output format (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Ensure that temporary files created during a <application>pg_dump</>
- run with <acronym>tar</>-format output are not world-readable (Michael
+ Ensure that temporary files created during a <application>pg_dump</application>
+ run with <acronym>tar</acronym>-format output are not world-readable (Michael
Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> and <application>pg_upgrade</> to support
- cases where the <literal>postgres</> or <literal>template1</> database
+ Fix <application>pg_dump</application> and <application>pg_upgrade</application> to support
+ cases where the <literal>postgres</literal> or <literal>template1</literal> database
is in a non-default tablespace (Marti Raudsepp, Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to handle object privileges sanely when
+ Fix <application>pg_dump</application> to handle object privileges sanely when
dumping from a server too old to have a particular privilege type
(Tom Lane)
</para>
<para>
When dumping data types from pre-9.2 servers, and when dumping
functions or procedural languages from pre-7.3
- servers, <application>pg_dump</> would
- produce <command>GRANT</>/<command>REVOKE</> commands that revoked the
+ servers, <application>pg_dump</application> would
+ produce <command>GRANT</command>/<command>REVOKE</command> commands that revoked the
owner's grantable privileges and instead granted all privileges
- to <literal>PUBLIC</>. Since the privileges involved are
- just <literal>USAGE</> and <literal>EXECUTE</>, this isn't a security
+ to <literal>PUBLIC</literal>. Since the privileges involved are
+ just <literal>USAGE</literal> and <literal>EXECUTE</literal>, this isn't a security
problem, but it's certainly a surprising representation of the older
systems' behavior. Fix it to leave the default privilege state alone
in these cases.
<listitem>
<para>
- Fix <application>pg_dump</> to dump shell types (Tom Lane)
+ Fix <application>pg_dump</application> to dump shell types (Tom Lane)
</para>
<para>
Shell types (that is, not-yet-fully-defined types) aren't useful for
- much, but nonetheless <application>pg_dump</> should dump them.
+ much, but nonetheless <application>pg_dump</application> should dump them.
</para>
</listitem>
<listitem>
<para>
- Fix assorted minor memory leaks in <application>pg_dump</> and other
+ Fix assorted minor memory leaks in <application>pg_dump</application> and other
client-side programs (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Fix spinlock assembly code for PPC hardware to be compatible
- with <acronym>AIX</>'s native assembler (Tom Lane)
+ with <acronym>AIX</acronym>'s native assembler (Tom Lane)
</para>
<para>
- Building with <application>gcc</> didn't work if <application>gcc</>
+ Building with <application>gcc</application> didn't work if <application>gcc</application>
had been configured to use the native assembler, which is becoming more
common.
</para>
<listitem>
<para>
- On <acronym>AIX</>, test the <literal>-qlonglong</> compiler option
+ On <acronym>AIX</acronym>, test the <literal>-qlonglong</literal> compiler option
rather than just assuming it's safe to use (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- On <acronym>AIX</>, use <literal>-Wl,-brtllib</> link option to allow
+ On <acronym>AIX</acronym>, use <literal>-Wl,-brtllib</literal> link option to allow
symbols to be resolved at runtime (Noah Misch)
</para>
<listitem>
<para>
Avoid use of inline functions when compiling with
- 32-bit <application>xlc</>, due to compiler bugs (Noah Misch)
+ 32-bit <application>xlc</application>, due to compiler bugs (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Use <filename>librt</> for <function>sched_yield()</> when necessary,
+ Use <filename>librt</filename> for <function>sched_yield()</function> when necessary,
which it is on some Solaris versions (Oskari Saarenmaa)
</para>
</listitem>
<listitem>
<para>
- Fix Windows <filename>install.bat</> script to handle target directory
+ Fix Windows <filename>install.bat</filename> script to handle target directory
names that contain spaces (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Make the numeric form of the <productname>PostgreSQL</> version number
- (e.g., <literal>90405</>) readily available to extension Makefiles,
- as a variable named <varname>VERSION_NUM</> (Michael Paquier)
+ Make the numeric form of the <productname>PostgreSQL</productname> version number
+ (e.g., <literal>90405</literal>) readily available to extension Makefiles,
+ as a variable named <varname>VERSION_NUM</varname> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015g for
+ Update time zone data files to <application>tzdata</application> release 2015g for
DST law changes in Cayman Islands, Fiji, Moldova, Morocco, Norfolk
Island, North Korea, Turkey, and Uruguay. There is a new zone name
- <literal>America/Fort_Nelson</> for the Canadian Northern Rockies.
+ <literal>America/Fort_Nelson</literal> for the Canadian Northern Rockies.
</para>
</listitem>
<para>
However, if you are upgrading an installation that was previously
- upgraded using a <application>pg_upgrade</> version between 9.3.0 and
+ upgraded using a <application>pg_upgrade</application> version between 9.3.0 and
9.3.4 inclusive, see the first changelog entry below.
</para>
</para>
<para>
- Recent <productname>PostgreSQL</> releases introduced mechanisms to
+ Recent <productname>PostgreSQL</productname> releases introduced mechanisms to
protect against multixact wraparound, but some of that code did not
account for the possibility that it would need to run during crash
recovery, when the database may not be in a consistent state. This
could result in failure to restart after a crash, or failure to start
up a secondary server. The lingering effects of a previously-fixed
- bug in <application>pg_upgrade</> could also cause such a failure, in
- installations that had used <application>pg_upgrade</> versions
+ bug in <application>pg_upgrade</application> could also cause such a failure, in
+ installations that had used <application>pg_upgrade</application> versions
between 9.3.0 and 9.3.4.
</para>
<para>
- The <application>pg_upgrade</> bug in question was that it would
- set <literal>oldestMultiXid</> to 1 in <filename>pg_control</> even
+ The <application>pg_upgrade</application> bug in question was that it would
+ set <literal>oldestMultiXid</literal> to 1 in <filename>pg_control</filename> even
if the true value should be higher. With the fixes introduced in
this release, such a situation will result in immediate emergency
- autovacuuming until a correct <literal>oldestMultiXid</> value can be
+ autovacuuming until a correct <literal>oldestMultiXid</literal> value can be
determined. If that would pose a hardship, users can avoid it by
- doing manual vacuuming <emphasis>before</> upgrading to this release.
+ doing manual vacuuming <emphasis>before</emphasis> upgrading to this release.
In detail:
<orderedlist>
<listitem>
<para>
- Check whether <application>pg_controldata</> reports <quote>Latest
- checkpoint's oldestMultiXid</> to be 1. If not, there's nothing
+ Check whether <application>pg_controldata</application> reports <quote>Latest
+ checkpoint's oldestMultiXid</quote> to be 1. If not, there's nothing
to do.
</para>
</listitem>
<listitem>
<para>
- Look in <filename>PGDATA/pg_multixact/offsets</> to see if there's a
- file named <filename>0000</>. If there is, there's nothing to do.
+ Look in <filename>PGDATA/pg_multixact/offsets</filename> to see if there's a
+ file named <filename>0000</filename>. If there is, there's nothing to do.
</para>
</listitem>
<listitem>
<para>
Otherwise, for each table that has
- <structname>pg_class</>.<structfield>relminmxid</> equal to 1,
- <command>VACUUM</> that table with
+ <structname>pg_class</structname>.<structfield>relminmxid</structfield> equal to 1,
+ <command>VACUUM</command> that table with
both <xref linkend="guc-vacuum-multixact-freeze-min-age">
and <xref linkend="guc-vacuum-multixact-freeze-table-age"> set to
zero. (You can use the vacuum cost delay parameters described
in <xref linkend="runtime-config-resource-vacuum-cost"> to reduce
the performance consequences for concurrent sessions.) You must
- use <productname>PostgreSQL</> 9.3.5 or later to perform this step.
+ use <productname>PostgreSQL</productname> 9.3.5 or later to perform this step.
</para>
</listitem>
</orderedlist>
<para>
With just the wrong timing of concurrent activity, a <command>VACUUM
- FULL</> on a system catalog might fail to update the <quote>init file</>
+ FULL</command> on a system catalog might fail to update the <quote>init file</quote>
that's used to avoid cache-loading work for new sessions. This would
result in later sessions being unable to access that catalog at all.
This is a very ancient bug, but it's so hard to trigger that no
<listitem>
<para>
Avoid deadlock between incoming sessions and <literal>CREATE/DROP
- DATABASE</> (Tom Lane)
+ DATABASE</literal> (Tom Lane)
</para>
<para>
A new session starting in a database that is the target of
- a <command>DROP DATABASE</> command, or is the template for
- a <command>CREATE DATABASE</> command, could cause the command to wait
+ a <command>DROP DATABASE</command> command, or is the template for
+ a <command>CREATE DATABASE</command> command, could cause the command to wait
for five seconds and then fail, even if the new session would have
exited before that.
</para>
<listitem>
<para>
- Avoid failures while <function>fsync</>'ing data directory during
+ Avoid failures while <function>fsync</function>'ing data directory during
crash restart (Abhijit Menon-Sen, Tom Lane)
</para>
<para>
- In the previous minor releases we added a patch to <function>fsync</>
+ In the previous minor releases we added a patch to <function>fsync</function>
everything in the data directory after a crash. Unfortunately its
response to any error condition was to fail, thereby preventing the
server from starting up, even when the problem was quite harmless.
</para>
<para>
- Also apply the same rules in <literal>initdb --sync-only</>.
+ Also apply the same rules in <literal>initdb --sync-only</literal>.
This case is less critical but it should act similarly.
</para>
</listitem>
<listitem>
<para>
- Fix <function>pg_get_functiondef()</> to show
- functions' <literal>LEAKPROOF</> property, if set (Jeevan Chalke)
+ Fix <function>pg_get_functiondef()</function> to show
+ functions' <literal>LEAKPROOF</literal> property, if set (Jeevan Chalke)
</para>
</listitem>
<listitem>
<para>
- Remove <application>configure</>'s check prohibiting linking to a
- threaded <application>libpython</>
- on <systemitem class="osname">OpenBSD</> (Tom Lane)
+ Remove <application>configure</application>'s check prohibiting linking to a
+ threaded <application>libpython</application>
+ on <systemitem class="osname">OpenBSD</systemitem> (Tom Lane)
</para>
<para>
The failure this restriction was meant to prevent seems to not be a
- problem anymore on current <systemitem class="osname">OpenBSD</>
+ problem anymore on current <systemitem class="osname">OpenBSD</systemitem>
versions.
</para>
</listitem>
<listitem>
<para>
- Allow <application>libpq</> to use TLS protocol versions beyond v1
+ Allow <application>libpq</application> to use TLS protocol versions beyond v1
(Noah Misch)
</para>
<para>
- For a long time, <application>libpq</> was coded so that the only SSL
+ For a long time, <application>libpq</application> was coded so that the only SSL
protocol it would allow was TLS v1. Now that newer TLS versions are
becoming popular, allow it to negotiate the highest commonly-supported
- TLS version with the server. (<productname>PostgreSQL</> servers were
+ TLS version with the server. (<productname>PostgreSQL</productname> servers were
already capable of such negotiation, so no change is needed on the
server side.) This is a back-patch of a change already released in
9.4.0.
</para>
<para>
- However, if you use <filename>contrib/citext</>'s
- <function>regexp_matches()</> functions, see the changelog entry below
+ However, if you use <filename>contrib/citext</filename>'s
+ <function>regexp_matches()</function> functions, see the changelog entry below
about that.
</para>
</para>
<para>
- Our replacement implementation of <function>snprintf()</> failed to
+ Our replacement implementation of <function>snprintf()</function> failed to
check for errors reported by the underlying system library calls;
the main case that might be missed is out-of-memory situations.
In the worst case this might lead to information exposure, due to our
</para>
<para>
- It remains possible that some calls of the <function>*printf()</>
+ It remains possible that some calls of the <function>*printf()</function>
family of functions are vulnerable to information disclosure if an
out-of-memory error occurs at just the wrong time. We judge the risk
to not be large, but will continue analysis in this area.
<listitem>
<para>
- In <filename>contrib/pgcrypto</>, uniformly report decryption failures
- as <quote>Wrong key or corrupt data</> (Noah Misch)
+ In <filename>contrib/pgcrypto</filename>, uniformly report decryption failures
+ as <quote>Wrong key or corrupt data</quote> (Noah Misch)
</para>
<para>
Previously, some cases of decryption with an incorrect key could report
other error message texts. It has been shown that such variance in
error reports can aid attackers in recovering keys from other systems.
- While it's unknown whether <filename>pgcrypto</>'s specific behaviors
+ While it's unknown whether <filename>pgcrypto</filename>'s specific behaviors
are likewise exploitable, it seems better to avoid the risk by using a
one-size-fits-all message.
(CVE-2015-3167)
<para>
Under certain usage patterns, the existing defenses against this might
- be insufficient, allowing <filename>pg_multixact/members</> files to be
+ be insufficient, allowing <filename>pg_multixact/members</filename> files to be
removed too early, resulting in data loss.
The fix for this includes modifying the server to fail transactions
that would result in overwriting old multixact member ID data, and
<listitem>
<para>
- Fix incorrect declaration of <filename>contrib/citext</>'s
- <function>regexp_matches()</> functions (Tom Lane)
+ Fix incorrect declaration of <filename>contrib/citext</filename>'s
+ <function>regexp_matches()</function> functions (Tom Lane)
</para>
<para>
- These functions should return <type>setof text[]</>, like the core
+ These functions should return <type>setof text[]</type>, like the core
functions they are wrappers for; but they were incorrectly declared as
- returning just <type>text[]</>. This mistake had two results: first,
+ returning just <type>text[]</type>. This mistake had two results: first,
if there was no match you got a scalar null result, whereas what you
- should get is an empty set (zero rows). Second, the <literal>g</> flag
+ should get is an empty set (zero rows). Second, the <literal>g</literal> flag
was effectively ignored, since you would get only one result array even
if there were multiple matches.
</para>
<para>
While the latter behavior is clearly a bug, there might be applications
depending on the former behavior; therefore the function declarations
- will not be changed by default until <productname>PostgreSQL</> 9.5.
+ will not be changed by default until <productname>PostgreSQL</productname> 9.5.
In pre-9.5 branches, the old behavior exists in version 1.0 of
- the <literal>citext</> extension, while we have provided corrected
- declarations in version 1.1 (which is <emphasis>not</> installed by
+ the <literal>citext</literal> extension, while we have provided corrected
+ declarations in version 1.1 (which is <emphasis>not</emphasis> installed by
default). To adopt the fix in pre-9.5 branches, execute
- <literal>ALTER EXTENSION citext UPDATE TO '1.1'</> in each database in
- which <literal>citext</> is installed. (You can also <quote>update</>
+ <literal>ALTER EXTENSION citext UPDATE TO '1.1'</literal> in each database in
+ which <literal>citext</literal> is installed. (You can also <quote>update</quote>
back to 1.0 if you need to undo that.) Be aware that either update
direction will require dropping and recreating any views or rules that
- use <filename>citext</>'s <function>regexp_matches()</> functions.
+ use <filename>citext</filename>'s <function>regexp_matches()</function> functions.
</para>
</listitem>
<para>
This oversight in the planner has been observed to cause <quote>could
- not find RelOptInfo for given relids</> errors, but it seems possible
+ not find RelOptInfo for given relids</quote> errors, but it seems possible
that sometimes an incorrect query plan might get past that consistency
check and result in silently-wrong query output.
</para>
<para>
This oversight has been seen to lead to <quote>failed to join all
- relations together</> errors in queries involving <literal>LATERAL</>,
+ relations together</quote> errors in queries involving <literal>LATERAL</literal>,
and that might happen in other cases as well.
</para>
</listitem>
<listitem>
<para>
Fix possible deadlock at startup
- when <literal>max_prepared_transactions</> is too small
+ when <literal>max_prepared_transactions</literal> is too small
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Recursively <function>fsync()</> the data directory after a crash
+ Recursively <function>fsync()</function> the data directory after a crash
(Abhijit Menon-Sen, Robert Haas)
</para>
<listitem>
<para>
- Cope with unexpected signals in <function>LockBufferForCleanup()</>
+ Cope with unexpected signals in <function>LockBufferForCleanup()</function>
(Andres Freund)
</para>
<para>
This oversight could result in spurious errors about <quote>multiple
- backends attempting to wait for pincount 1</>.
+ backends attempting to wait for pincount 1</quote>.
</para>
</listitem>
<listitem>
<para>
- Fix crash when doing <literal>COPY IN</> to a table with check
+ Fix crash when doing <literal>COPY IN</literal> to a table with check
constraints that contain whole-row references (Tom Lane)
</para>
</para>
<para>
- <command>ANALYZE</> executes index expressions many times; if there are
+ <command>ANALYZE</command> executes index expressions many times; if there are
slow functions in such an expression, it's desirable to be able to
- cancel the <command>ANALYZE</> before that loop finishes.
+ cancel the <command>ANALYZE</command> before that loop finishes.
</para>
</listitem>
<listitem>
<para>
- Ensure <structfield>tableoid</> of a foreign table is reported
- correctly when a <literal>READ COMMITTED</> recheck occurs after
- locking rows in <command>SELECT FOR UPDATE</>, <command>UPDATE</>,
- or <command>DELETE</> (Etsuro Fujita)
+ Ensure <structfield>tableoid</structfield> of a foreign table is reported
+ correctly when a <literal>READ COMMITTED</literal> recheck occurs after
+ locking rows in <command>SELECT FOR UPDATE</command>, <command>UPDATE</command>,
+ or <command>DELETE</command> (Etsuro Fujita)
</para>
</listitem>
<listitem>
<para>
- Recommend setting <literal>include_realm</> to 1 when using
+ Recommend setting <literal>include_realm</literal> to 1 when using
Kerberos/GSSAPI/SSPI authentication (Stephen Frost)
</para>
<para>
Without this, identically-named users from different realms cannot be
distinguished. For the moment this is only a documentation change, but
- it will become the default setting in <productname>PostgreSQL</> 9.5.
+ it will become the default setting in <productname>PostgreSQL</productname> 9.5.
</para>
</listitem>
<listitem>
<para>
- Remove code for matching IPv4 <filename>pg_hba.conf</> entries to
+ Remove code for matching IPv4 <filename>pg_hba.conf</filename> entries to
IPv4-in-IPv6 addresses (Tom Lane)
</para>
crashes on some systems, so let's just remove it rather than fix it.
(Had we chosen to fix it, that would make for a subtle and potentially
security-sensitive change in the effective meaning of
- IPv4 <filename>pg_hba.conf</> entries, which does not seem like a good
+ IPv4 <filename>pg_hba.conf</filename> entries, which does not seem like a good
thing to do in minor releases.)
</para>
</listitem>
<listitem>
<para>
- Report WAL flush, not insert, position in <literal>IDENTIFY_SYSTEM</>
+ Report WAL flush, not insert, position in <literal>IDENTIFY_SYSTEM</literal>
replication command (Heikki Linnakangas)
</para>
<para>
This avoids a possible startup failure
- in <application>pg_receivexlog</>.
+ in <application>pg_receivexlog</application>.
</para>
</listitem>
<para>
While shutting down service on Windows, periodically send status
updates to the Service Control Manager to prevent it from killing the
- service too soon; and ensure that <application>pg_ctl</> will wait for
+ service too soon; and ensure that <application>pg_ctl</application> will wait for
shutdown (Krystian Bigaj)
</para>
</listitem>
<listitem>
<para>
- Reduce risk of network deadlock when using <application>libpq</>'s
+ Reduce risk of network deadlock when using <application>libpq</application>'s
non-blocking mode (Heikki Linnakangas)
</para>
buffer every so often, in case the server has sent enough response data
to cause it to block on output. (A typical scenario is that the server
is sending a stream of NOTICE messages during <literal>COPY FROM
- STDIN</>.) This worked properly in the normal blocking mode, but not
- so much in non-blocking mode. We've modified <application>libpq</>
+ STDIN</literal>.) This worked properly in the normal blocking mode, but not
+ so much in non-blocking mode. We've modified <application>libpq</application>
to opportunistically drain input when it can, but a full defense
against this problem requires application cooperation: the application
should watch for socket read-ready as well as write-ready conditions,
- and be sure to call <function>PQconsumeInput()</> upon read-ready.
+ and be sure to call <function>PQconsumeInput()</function> upon read-ready.
</para>
</listitem>
<listitem>
<para>
- In <application>libpq</>, fix misparsing of empty values in URI
+ In <application>libpq</application>, fix misparsing of empty values in URI
connection strings (Thomas Fanghaenel)
</para>
</listitem>
<listitem>
<para>
- Fix array handling in <application>ecpg</> (Michael Meskes)
+ Fix array handling in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</> to sanely handle URIs and conninfo strings as
- the first parameter to <command>\connect</>
+ Fix <application>psql</application> to sanely handle URIs and conninfo strings as
+ the first parameter to <command>\connect</command>
(David Fetter, Andrew Dunstan, Álvaro Herrera)
</para>
<listitem>
<para>
- Suppress incorrect complaints from <application>psql</> on some
- platforms that it failed to write <filename>~/.psql_history</> at exit
+ Suppress incorrect complaints from <application>psql</application> on some
+ platforms that it failed to write <filename>~/.psql_history</filename> at exit
(Tom Lane)
</para>
<para>
This misbehavior was caused by a workaround for a bug in very old
- (pre-2006) versions of <application>libedit</>. We fixed it by
+ (pre-2006) versions of <application>libedit</application>. We fixed it by
removing the workaround, which will cause a similar failure to appear
- for anyone still using such versions of <application>libedit</>.
- Recommendation: upgrade that library, or use <application>libreadline</>.
+ for anyone still using such versions of <application>libedit</application>.
+ Recommendation: upgrade that library, or use <application>libreadline</application>.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</>'s rule for deciding which casts are
+ Fix <application>pg_dump</application>'s rule for deciding which casts are
system-provided casts that should not be dumped (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, fix failure to honor <literal>-Z</>
- compression level option together with <literal>-Fd</>
+ In <application>pg_dump</application>, fix failure to honor <literal>-Z</literal>
+ compression level option together with <literal>-Fd</literal>
(Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> consider foreign key relationships
+ Make <application>pg_dump</application> consider foreign key relationships
between extension configuration tables while choosing dump order
(Gilles Darold, Michael Paquier, Stephen Frost)
</para>
<listitem>
<para>
- Avoid possible <application>pg_dump</> failure when concurrent sessions
+ Avoid possible <application>pg_dump</application> failure when concurrent sessions
are creating and dropping temporary functions (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of views that are just <literal>VALUES(...)</> but have
+ Fix dumping of views that are just <literal>VALUES(...)</literal> but have
column aliases (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, force timeline 1 in the new cluster
+ In <application>pg_upgrade</application>, force timeline 1 in the new cluster
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, check for improperly non-connectable
+ In <application>pg_upgrade</application>, check for improperly non-connectable
databases before proceeding
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, quote directory paths
- properly in the generated <literal>delete_old_cluster</> script
+ In <application>pg_upgrade</application>, quote directory paths
+ properly in the generated <literal>delete_old_cluster</literal> script
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, preserve database-level freezing info
+ In <application>pg_upgrade</application>, preserve database-level freezing info
properly
(Bruce Momjian)
</para>
<para>
This oversight could cause missing-clog-file errors for tables within
- the <literal>postgres</> and <literal>template1</> databases.
+ the <literal>postgres</literal> and <literal>template1</literal> databases.
</para>
</listitem>
<listitem>
<para>
- Run <application>pg_upgrade</> and <application>pg_resetxlog</> with
+ Run <application>pg_upgrade</application> and <application>pg_resetxlog</application> with
restricted privileges on Windows, so that they don't fail when run by
an administrator (Muhammad Asif Naeem)
</para>
<listitem>
<para>
- Improve handling of <function>readdir()</> failures when scanning
- directories in <application>initdb</> and <application>pg_basebackup</>
+ Improve handling of <function>readdir()</function> failures when scanning
+ directories in <application>initdb</application> and <application>pg_basebackup</application>
(Marco Nenciarini)
</para>
</listitem>
<listitem>
<para>
- Fix slow sorting algorithm in <filename>contrib/intarray</> (Tom Lane)
+ Fix slow sorting algorithm in <filename>contrib/intarray</filename> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015d
+ Update time zone data files to <application>tzdata</application> release 2015d
for DST law changes in Egypt, Mongolia, and Palestine, plus historical
changes in Canada and Chile. Also adopt revised zone abbreviations for
the America/Adak zone (HST/HDT not HAST/HADT).
<para>
However, if you are a Windows user and are using the <quote>Norwegian
- (Bokmål)</> locale, manual action is needed after the upgrade to
- replace any <quote>Norwegian (Bokmål)_Norway</> locale names stored
- in <productname>PostgreSQL</> system catalogs with the plain-ASCII
- alias <quote>Norwegian_Norway</>. For details see
- <ulink url="http://wiki.postgresql.org/wiki/Changes_To_Norwegian_Locale"></>
+ (Bokmål)</quote> locale, manual action is needed after the upgrade to
+ replace any <quote>Norwegian (Bokmål)_Norway</quote> locale names stored
+ in <productname>PostgreSQL</productname> system catalogs with the plain-ASCII
+ alias <quote>Norwegian_Norway</quote>. For details see
+ <ulink url="http://wiki.postgresql.org/wiki/Changes_To_Norwegian_Locale"></ulink>
</para>
<para>
<listitem>
<para>
- Fix buffer overruns in <function>to_char()</>
+ Fix buffer overruns in <function>to_char()</function>
(Bruce Momjian)
</para>
<para>
- When <function>to_char()</> processes a numeric formatting template
- calling for a large number of digits, <productname>PostgreSQL</>
+ When <function>to_char()</function> processes a numeric formatting template
+ calling for a large number of digits, <productname>PostgreSQL</productname>
would read past the end of a buffer. When processing a crafted
- timestamp formatting template, <productname>PostgreSQL</> would write
+ timestamp formatting template, <productname>PostgreSQL</productname> would write
past the end of a buffer. Either case could crash the server.
We have not ruled out the possibility of attacks that lead to
privilege escalation, though they seem unlikely.
<listitem>
<para>
- Fix buffer overrun in replacement <function>*printf()</> functions
+ Fix buffer overrun in replacement <function>*printf()</function> functions
(Tom Lane)
</para>
<para>
- <productname>PostgreSQL</> includes a replacement implementation
- of <function>printf</> and related functions. This code will overrun
+ <productname>PostgreSQL</productname> includes a replacement implementation
+ of <function>printf</function> and related functions. This code will overrun
a stack buffer when formatting a floating point number (conversion
- specifiers <literal>e</>, <literal>E</>, <literal>f</>, <literal>F</>,
- <literal>g</> or <literal>G</>) with requested precision greater than
+ specifiers <literal>e</literal>, <literal>E</literal>, <literal>f</literal>, <literal>F</literal>,
+ <literal>g</literal> or <literal>G</literal>) with requested precision greater than
about 500. This will crash the server, and we have not ruled out the
possibility of attacks that lead to privilege escalation.
A database user can trigger such a buffer overrun through
- the <function>to_char()</> SQL function. While that is the only
- affected core <productname>PostgreSQL</> functionality, extension
+ the <function>to_char()</function> SQL function. While that is the only
+ affected core <productname>PostgreSQL</productname> functionality, extension
modules that use printf-family functions may be at risk as well.
</para>
<para>
- This issue primarily affects <productname>PostgreSQL</> on Windows.
- <productname>PostgreSQL</> uses the system implementation of these
+ This issue primarily affects <productname>PostgreSQL</productname> on Windows.
+ <productname>PostgreSQL</productname> uses the system implementation of these
functions where adequate, which it is on other modern platforms.
(CVE-2015-0242)
</para>
<listitem>
<para>
- Fix buffer overruns in <filename>contrib/pgcrypto</>
+ Fix buffer overruns in <filename>contrib/pgcrypto</filename>
(Marko Tiikkaja, Noah Misch)
</para>
<para>
- Errors in memory size tracking within the <filename>pgcrypto</>
+ Errors in memory size tracking within the <filename>pgcrypto</filename>
module permitted stack buffer overruns and improper dependence on the
contents of uninitialized memory. The buffer overrun cases can
crash the server, and we have not ruled out the possibility of
<para>
Some server error messages show the values of columns that violate
a constraint, such as a unique constraint. If the user does not have
- <literal>SELECT</> privilege on all columns of the table, this could
+ <literal>SELECT</literal> privilege on all columns of the table, this could
mean exposing values that the user should not be able to see. Adjust
the code so that values are displayed only when they came from the SQL
command or could be selected by the user.
<listitem>
<para>
- Cope with the Windows locale named <quote>Norwegian (Bokmål)</>
+ Cope with the Windows locale named <quote>Norwegian (Bokmål)</quote>
(Heikki Linnakangas)
</para>
<para>
Non-ASCII locale names are problematic since it's not clear what
encoding they should be represented in. Map the troublesome locale
- name to a plain-ASCII alias, <quote>Norwegian_Norway</>.
+ name to a plain-ASCII alias, <quote>Norwegian_Norway</quote>.
</para>
</listitem>
<listitem>
<para>
Avoid possible data corruption if <command>ALTER DATABASE SET
- TABLESPACE</> is used to move a database to a new tablespace and then
+ TABLESPACE</command> is used to move a database to a new tablespace and then
shortly later move it back to its original tablespace (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Avoid corrupting tables when <command>ANALYZE</> inside a transaction
+ Avoid corrupting tables when <command>ANALYZE</command> inside a transaction
is rolled back (Andres Freund, Tom Lane, Michael Paquier)
</para>
<para>
If the failing transaction had earlier removed the last index, rule, or
trigger from the table, the table would be left in a corrupted state
- with the relevant <structname>pg_class</> flags not set though they
+ with the relevant <structname>pg_class</structname> flags not set though they
should be.
</para>
</listitem>
<listitem>
<para>
Ensure that unlogged tables are copied correctly
- during <command>CREATE DATABASE</> or <command>ALTER DATABASE SET
- TABLESPACE</> (Pavan Deolasee, Andres Freund)
+ during <command>CREATE DATABASE</command> or <command>ALTER DATABASE SET
+ TABLESPACE</command> (Pavan Deolasee, Andres Freund)
</para>
</listitem>
<listitem>
<para>
Fix incorrect processing
- of <structname>CreateEventTrigStmt</>.<structfield>eventname</> (Petr
+ of <structname>CreateEventTrigStmt</structname>.<structfield>eventname</structfield> (Petr
Jelinek)
</para>
<para>
- This could result in misbehavior if <command>CREATE EVENT TRIGGER</>
+ This could result in misbehavior if <command>CREATE EVENT TRIGGER</command>
were executed as a prepared query, or via extended query protocol.
</para>
</listitem>
<listitem>
<para>
- Fix <command>DROP</>'s dependency searching to correctly handle the
+ Fix <command>DROP</command>'s dependency searching to correctly handle the
case where a table column is recursively visited before its table
(Petr Jelinek, Tom Lane)
</para>
<para>
This case is only known to arise when an extension creates both a
datatype and a table using that datatype. The faulty code might
- refuse a <command>DROP EXTENSION</> unless <literal>CASCADE</> is
+ refuse a <command>DROP EXTENSION</command> unless <literal>CASCADE</literal> is
specified, which should not be required.
</para>
</listitem>
</para>
<para>
- In <literal>READ COMMITTED</> mode, queries that lock or update
+ In <literal>READ COMMITTED</literal> mode, queries that lock or update
recently-updated rows could crash as a result of this bug.
</para>
</listitem>
<listitem>
<para>
Fix failure to wait when a transaction tries to acquire a <literal>FOR
- NO KEY EXCLUSIVE</> tuple lock, while multiple other transactions
- currently hold <literal>FOR SHARE</> locks (Álvaro Herrera)
+ NO KEY EXCLUSIVE</literal> tuple lock, while multiple other transactions
+ currently hold <literal>FOR SHARE</literal> locks (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix planning of <command>SELECT FOR UPDATE</> when using a partial
+ Fix planning of <command>SELECT FOR UPDATE</command> when using a partial
index on a child table (Kyotaro Horiguchi)
</para>
<para>
- In <literal>READ COMMITTED</> mode, <command>SELECT FOR UPDATE</> must
- also recheck the partial index's <literal>WHERE</> condition when
+ In <literal>READ COMMITTED</literal> mode, <command>SELECT FOR UPDATE</command> must
+ also recheck the partial index's <literal>WHERE</literal> condition when
rechecking a recently-updated row to see if it still satisfies the
- query's <literal>WHERE</> condition. This requirement was missed if the
+ query's <literal>WHERE</literal> condition. This requirement was missed if the
index belonged to an inheritance child table, so that it was possible
to incorrectly return rows that no longer satisfy the query condition.
</para>
<listitem>
<para>
- Fix corner case wherein <command>SELECT FOR UPDATE</> could return a row
+ Fix corner case wherein <command>SELECT FOR UPDATE</command> could return a row
twice, and possibly miss returning other rows (Tom Lane)
</para>
<para>
- In <literal>READ COMMITTED</> mode, a <command>SELECT FOR UPDATE</>
+ In <literal>READ COMMITTED</literal> mode, a <command>SELECT FOR UPDATE</command>
that is scanning an inheritance tree could incorrectly return a row
from a prior child table instead of the one it should return from a
later child table.
<listitem>
<para>
- Improve performance of <command>EXPLAIN</> with large range tables
+ Improve performance of <command>EXPLAIN</command> with large range tables
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
Reject duplicate column names in the referenced-columns list of
- a <literal>FOREIGN KEY</> declaration (David Rowley)
+ a <literal>FOREIGN KEY</literal> declaration (David Rowley)
</para>
<para>
<listitem>
<para>
- Re-enable error for <literal>SELECT ... OFFSET -1</> (Tom Lane)
+ Re-enable error for <literal>SELECT ... OFFSET -1</literal> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <function>json_agg()</> to not return extra trailing right
+ Fix <function>json_agg()</function> to not return extra trailing right
brackets in its result (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix bugs in raising a <type>numeric</> value to a large integral power
+ Fix bugs in raising a <type>numeric</type> value to a large integral power
(Tom Lane)
</para>
<listitem>
<para>
- In <function>numeric_recv()</>, truncate away any fractional digits
- that would be hidden according to the value's <literal>dscale</> field
+ In <function>numeric_recv()</function>, truncate away any fractional digits
+ that would be hidden according to the value's <literal>dscale</literal> field
(Tom Lane)
</para>
<para>
- A <type>numeric</> value's display scale (<literal>dscale</>) should
+ A <type>numeric</type> value's display scale (<literal>dscale</literal>) should
never be less than the number of nonzero fractional digits; but
apparently there's at least one broken client application that
- transmits binary <type>numeric</> values in which that's true.
+ transmits binary <type>numeric</type> values in which that's true.
This leads to strange behavior since the extra digits are taken into
account by arithmetic operations even though they aren't printed.
- The least risky fix seems to be to truncate away such <quote>hidden</>
+ The least risky fix seems to be to truncate away such <quote>hidden</quote>
digits on receipt, so that the value is indeed what it prints as.
</para>
</listitem>
<para>
Matching would often fail when the number of allowed iterations is
- limited by a <literal>?</> quantifier or a bound expression.
+ limited by a <literal>?</literal> quantifier or a bound expression.
</para>
</listitem>
<listitem>
<para>
- Fix bugs in <type>tsquery</> <literal>@></> <type>tsquery</>
+ Fix bugs in <type>tsquery</type> <literal>@></literal> <type>tsquery</type>
operator (Heikki Linnakangas)
</para>
<listitem>
<para>
- Fix namespace handling in <function>xpath()</> (Ali Akbar)
+ Fix namespace handling in <function>xpath()</function> (Ali Akbar)
</para>
<para>
- Previously, the <type>xml</> value resulting from
- an <function>xpath()</> call would not have namespace declarations if
+ Previously, the <type>xml</type> value resulting from
+ an <function>xpath()</function> call would not have namespace declarations if
the namespace declarations were attached to an ancestor element in the
- input <type>xml</> value, rather than to the specific element being
+ input <type>xml</type> value, rather than to the specific element being
returned. Propagate the ancestral declaration so that the result is
correct when considered in isolation.
</para>
</para>
<para>
- In some contexts, constructs like <literal>row_to_json(tab.*)</> may
+ In some contexts, constructs like <literal>row_to_json(tab.*)</literal> may
not produce the expected column names. This is fixed properly as of
9.4; in older branches, just ensure that we produce some nonempty
name. (In some cases this will be the underlying table's column name
<listitem>
<para>
Fix mishandling of system columns,
- particularly <structfield>tableoid</>, in FDW queries (Etsuro Fujita)
+ particularly <structfield>tableoid</structfield>, in FDW queries (Etsuro Fujita)
</para>
</listitem>
</para>
<para>
- This patch fixes corner-case <quote>unexpected operator NNNN</> planner
+ This patch fixes corner-case <quote>unexpected operator NNNN</quote> planner
errors, and improves the selectivity estimates for some other cases.
</para>
</listitem>
<listitem>
<para>
- Avoid doing <literal><replaceable>indexed_column</> = ANY
- (<replaceable>array</>)</literal> as an index qualifier if that leads
+ Avoid doing <literal><replaceable>indexed_column</replaceable> = ANY
+ (<replaceable>array</replaceable>)</literal> as an index qualifier if that leads
to an inferior plan (Andrew Gierth)
</para>
<para>
- In some cases, <literal>= ANY</> conditions applied to non-first index
+ In some cases, <literal>= ANY</literal> conditions applied to non-first index
columns would be done as index conditions even though it would be
better to use them as simple filter conditions.
</para>
<listitem>
<para>
- Fix <quote>variable not found in subplan target list</> planner
+ Fix <quote>variable not found in subplan target list</quote> planner
failure when an inline-able SQL function taking a composite argument
- is used in a <literal>LATERAL</> subselect and the composite argument
+ is used in a <literal>LATERAL</literal> subselect and the composite argument
is a lateral reference (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix planner problems with nested append relations, such as inherited
- tables within <literal>UNION ALL</> subqueries (Tom Lane)
+ tables within <literal>UNION ALL</literal> subqueries (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Exempt tables that have per-table <varname>cost_limit</>
- and/or <varname>cost_delay</> settings from autovacuum's global cost
+ Exempt tables that have per-table <varname>cost_limit</varname>
+ and/or <varname>cost_delay</varname> settings from autovacuum's global cost
balancing rules (Álvaro Herrera)
</para>
the target database, if they met the usual thresholds for
autovacuuming. This is at best pretty unexpected; at worst it delays
response to the wraparound threat. Fix it so that if autovacuum is
- turned off, workers <emphasis>only</> do anti-wraparound vacuums and
+ turned off, workers <emphasis>only</emphasis> do anti-wraparound vacuums and
not any other work.
</para>
</listitem>
<listitem>
<para>
Fix several cases where recovery logic improperly ignored WAL records
- for <literal>COMMIT/ABORT PREPARED</> (Heikki Linnakangas)
+ for <literal>COMMIT/ABORT PREPARED</literal> (Heikki Linnakangas)
</para>
<para>
The most notable oversight was
- that <varname>recovery_target_xid</> could not be used to stop at
+ that <varname>recovery_target_xid</varname> could not be used to stop at
a two-phase commit.
</para>
</listitem>
<listitem>
<para>
- Avoid creating unnecessary <filename>.ready</> marker files for
+ Avoid creating unnecessary <filename>.ready</filename> marker files for
timeline history files (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
Fix possible null pointer dereference when an empty prepared statement
- is used and the <varname>log_statement</> setting is <literal>mod</>
- or <literal>ddl</> (Fujii Masao)
+ is used and the <varname>log_statement</varname> setting is <literal>mod</literal>
+ or <literal>ddl</literal> (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Change <quote>pgstat wait timeout</> warning message to be LOG level,
+ Change <quote>pgstat wait timeout</quote> warning message to be LOG level,
and rephrase it to be more understandable (Tom Lane)
</para>
case, but it occurs often enough on our slower buildfarm members to be
a nuisance. Reduce it to LOG level, and expend a bit more effort on
the wording: it now reads <quote>using stale statistics instead of
- current ones because stats collector is not responding</>.
+ current ones because stats collector is not responding</quote>.
</para>
</listitem>
<listitem>
<para>
- Warn if macOS's <function>setlocale()</> starts an unwanted extra
+ Warn if macOS's <function>setlocale()</function> starts an unwanted extra
thread inside the postmaster (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Fix processing of repeated <literal>dbname</> parameters
- in <function>PQconnectdbParams()</> (Alex Shulgin)
+ Fix processing of repeated <literal>dbname</literal> parameters
+ in <function>PQconnectdbParams()</function> (Alex Shulgin)
</para>
<para>
Unexpected behavior ensued if the first occurrence
- of <literal>dbname</> contained a connection string or URI to be
+ of <literal>dbname</literal> contained a connection string or URI to be
expanded.
</para>
</listitem>
<listitem>
<para>
- Ensure that <application>libpq</> reports a suitable error message on
+ Ensure that <application>libpq</application> reports a suitable error message on
unexpected socket EOF (Marko Tiikkaja, Tom Lane)
</para>
<para>
- Depending on kernel behavior, <application>libpq</> might return an
+ Depending on kernel behavior, <application>libpq</application> might return an
empty error string rather than something useful when the server
unexpectedly closed the socket.
</para>
<listitem>
<para>
- Clear any old error message during <function>PQreset()</>
+ Clear any old error message during <function>PQreset()</function>
(Heikki Linnakangas)
</para>
<para>
- If <function>PQreset()</> is called repeatedly, and the connection
+ If <function>PQreset()</function> is called repeatedly, and the connection
cannot be re-established, error messages from the failed connection
- attempts kept accumulating in the <structname>PGconn</>'s error
+ attempts kept accumulating in the <structname>PGconn</structname>'s error
string.
</para>
</listitem>
<listitem>
<para>
Properly handle out-of-memory conditions while parsing connection
- options in <application>libpq</> (Alex Shulgin, Heikki Linnakangas)
+ options in <application>libpq</application> (Alex Shulgin, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Fix array overrun in <application>ecpg</>'s version
- of <function>ParseDateTime()</> (Michael Paquier)
+ Fix array overrun in <application>ecpg</application>'s version
+ of <function>ParseDateTime()</function> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- In <application>initdb</>, give a clearer error message if a password
+ In <application>initdb</application>, give a clearer error message if a password
file is specified but is empty (Mats Erik Andersson)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s <command>\s</> command to work nicely with
+ Fix <application>psql</application>'s <command>\s</command> command to work nicely with
libedit, and add pager support (Stepan Rutz, Tom Lane)
</para>
<para>
- When using libedit rather than readline, <command>\s</> printed the
+ When using libedit rather than readline, <command>\s</command> printed the
command history in a fairly unreadable encoded format, and on recent
libedit versions might fail altogether. Fix that by printing the
history ourselves rather than having the library do it. A pleasant
<para>
This patch also fixes a bug that caused newline encoding to be applied
inconsistently when saving the command history with libedit.
- Multiline history entries written by older <application>psql</>
+ Multiline history entries written by older <application>psql</application>
versions will be read cleanly with this patch, but perhaps not
vice versa, depending on the exact libedit versions involved.
</para>
<listitem>
<para>
- Improve consistency of parsing of <application>psql</>'s special
+ Improve consistency of parsing of <application>psql</application>'s special
variables (Tom Lane)
</para>
<para>
- Allow variant spellings of <literal>on</> and <literal>off</> (such
- as <literal>1</>/<literal>0</>) for <literal>ECHO_HIDDEN</>
- and <literal>ON_ERROR_ROLLBACK</>. Report a warning for unrecognized
- values for <literal>COMP_KEYWORD_CASE</>, <literal>ECHO</>,
- <literal>ECHO_HIDDEN</>, <literal>HISTCONTROL</>,
- <literal>ON_ERROR_ROLLBACK</>, and <literal>VERBOSITY</>. Recognize
+ Allow variant spellings of <literal>on</literal> and <literal>off</literal> (such
+ as <literal>1</literal>/<literal>0</literal>) for <literal>ECHO_HIDDEN</literal>
+ and <literal>ON_ERROR_ROLLBACK</literal>. Report a warning for unrecognized
+ values for <literal>COMP_KEYWORD_CASE</literal>, <literal>ECHO</literal>,
+ <literal>ECHO_HIDDEN</literal>, <literal>HISTCONTROL</literal>,
+ <literal>ON_ERROR_ROLLBACK</literal>, and <literal>VERBOSITY</literal>. Recognize
all values for all these variables case-insensitively; previously
there was a mishmash of case-sensitive and case-insensitive behaviors.
</para>
<listitem>
<para>
- Make <application>psql</>'s <command>\watch</> command display
- nulls as specified by <command>\pset null</> (Fujii Masao)
+ Make <application>psql</application>'s <command>\watch</command> command display
+ nulls as specified by <command>\pset null</command> (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s expanded-mode display to work
- consistently when using <literal>border</> = 3
- and <literal>linestyle</> = <literal>ascii</> or <literal>unicode</>
+ Fix <application>psql</application>'s expanded-mode display to work
+ consistently when using <literal>border</literal> = 3
+ and <literal>linestyle</literal> = <literal>ascii</literal> or <literal>unicode</literal>
(Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to handle comments on event triggers
+ Fix <application>pg_dump</application> to handle comments on event triggers
without failing (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Allow parallel <application>pg_dump</> to
- use <option>--serializable-deferrable</> (Kevin Grittner)
+ Allow parallel <application>pg_dump</application> to
+ use <option>--serializable-deferrable</option> (Kevin Grittner)
</para>
</listitem>
<listitem>
<para>
- Improve performance of <application>pg_dump</> when the database
+ Improve performance of <application>pg_dump</application> when the database
contains many instances of multiple dependency paths between the same
two objects (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_dumpall</> to restore its ability to dump from
+ Fix <application>pg_dumpall</application> to restore its ability to dump from
pre-8.1 servers (Gilles Darold)
</para>
</listitem>
<listitem>
<para>
- Fix core dump in <literal>pg_dump --binary-upgrade</> on zero-column
+ Fix core dump in <literal>pg_dump --binary-upgrade</literal> on zero-column
composite type (Rushabh Lathia)
</para>
</listitem>
<listitem>
<para>
Fix failure to fsync tables in nondefault tablespaces
- during <application>pg_upgrade</> (Abhijit Menon-Sen, Andres Freund)
+ during <application>pg_upgrade</application> (Abhijit Menon-Sen, Andres Freund)
</para>
<para>
<listitem>
<para>
- In <application>pg_upgrade</>, cope with cases where the new cluster
+ In <application>pg_upgrade</application>, cope with cases where the new cluster
creates a TOAST table for a table that didn't previously have one
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, don't try to
- set <literal>autovacuum_multixact_freeze_max_age</> for the old cluster
+ In <application>pg_upgrade</application>, don't try to
+ set <literal>autovacuum_multixact_freeze_max_age</literal> for the old cluster
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, preserve the transaction ID epoch
+ In <application>pg_upgrade</application>, preserve the transaction ID epoch
(Bruce Momjian)
</para>
<para>
- This oversight did not bother <productname>PostgreSQL</> proper,
+ This oversight did not bother <productname>PostgreSQL</productname> proper,
but could confuse some external replication tools.
</para>
</listitem>
<listitem>
<para>
- Prevent WAL files created by <literal>pg_basebackup -x/-X</> from
+ Prevent WAL files created by <literal>pg_basebackup -x/-X</literal> from
being archived again when the standby is promoted (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix memory leak in <application>pg_receivexlog</> (Fujii Masao)
+ Fix memory leak in <application>pg_receivexlog</application> (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Fix unintended suppression of <application>pg_receivexlog</> verbose
+ Fix unintended suppression of <application>pg_receivexlog</application> verbose
messages (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Fix failure of <filename>contrib/auto_explain</> to print per-node
- timing information when doing <command>EXPLAIN ANALYZE</> (Tom Lane)
+ Fix failure of <filename>contrib/auto_explain</filename> to print per-node
+ timing information when doing <command>EXPLAIN ANALYZE</command> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix upgrade-from-unpackaged script for <filename>contrib/citext</>
+ Fix upgrade-from-unpackaged script for <filename>contrib/citext</filename>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
Avoid integer overflow and buffer overrun
- in <filename>contrib/hstore</>'s <function>hstore_to_json()</>
+ in <filename>contrib/hstore</filename>'s <function>hstore_to_json()</function>
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Fix recognition of numbers in <function>hstore_to_json_loose()</>,
+ Fix recognition of numbers in <function>hstore_to_json_loose()</function>,
so that JSON numbers and strings are correctly distinguished
(Andrew Dunstan)
</para>
<listitem>
<para>
Fix block number checking
- in <filename>contrib/pageinspect</>'s <function>get_raw_page()</>
+ in <filename>contrib/pageinspect</filename>'s <function>get_raw_page()</function>
(Tom Lane)
</para>
<listitem>
<para>
- Fix <filename>contrib/pgcrypto</>'s <function>pgp_sym_decrypt()</>
+ Fix <filename>contrib/pgcrypto</filename>'s <function>pgp_sym_decrypt()</function>
to not fail on messages whose length is 6 less than a power of 2
(Marko Tiikkaja)
</para>
<listitem>
<para>
- Fix file descriptor leak in <filename>contrib/pg_test_fsync</>
+ Fix file descriptor leak in <filename>contrib/pg_test_fsync</filename>
(Jeff Janes)
</para>
<listitem>
<para>
Handle unexpected query results, especially NULLs, safely in
- <filename>contrib/tablefunc</>'s <function>connectby()</>
+ <filename>contrib/tablefunc</filename>'s <function>connectby()</function>
(Michael Paquier)
</para>
<para>
- <function>connectby()</> previously crashed if it encountered a NULL
+ <function>connectby()</function> previously crashed if it encountered a NULL
key value. It now prints that row but doesn't recurse further.
</para>
</listitem>
<listitem>
<para>
- Avoid a possible crash in <filename>contrib/xml2</>'s
- <function>xslt_process()</> (Mark Simonetti)
+ Avoid a possible crash in <filename>contrib/xml2</filename>'s
+ <function>xslt_process()</function> (Mark Simonetti)
</para>
<para>
- <application>libxslt</> seems to have an undocumented dependency on
+ <application>libxslt</application> seems to have an undocumented dependency on
the order in which resources are freed; reorder our calls to avoid a
crash.
</para>
<listitem>
<para>
- Mark some <filename>contrib</> I/O functions with correct volatility
+ Mark some <filename>contrib</filename> I/O functions with correct volatility
properties (Tom Lane)
</para>
<para>
With OpenLDAP versions 2.4.24 through 2.4.31,
- inclusive, <productname>PostgreSQL</> backends can crash at exit.
- Raise a warning during <application>configure</> based on the
+ inclusive, <productname>PostgreSQL</productname> backends can crash at exit.
+ Raise a warning during <application>configure</application> based on the
compile-time OpenLDAP version number, and test the crashing scenario
- in the <filename>contrib/dblink</> regression test.
+ in the <filename>contrib/dblink</filename> regression test.
</para>
</listitem>
<listitem>
<para>
- In non-MSVC Windows builds, ensure <filename>libpq.dll</> is installed
+ In non-MSVC Windows builds, ensure <filename>libpq.dll</filename> is installed
with execute permissions (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_regress</> remove any temporary installation it
+ Make <application>pg_regress</application> remove any temporary installation it
created upon successful exit (Tom Lane)
</para>
<para>
This results in a very substantial reduction in disk space usage
- during <literal>make check-world</>, since that sequence involves
+ during <literal>make check-world</literal>, since that sequence involves
creation of numerous temporary installations.
</para>
</listitem>
</para>
<para>
- Previously, <productname>PostgreSQL</> assumed that the UTC offset
- associated with a time zone abbreviation (such as <literal>EST</>)
+ Previously, <productname>PostgreSQL</productname> assumed that the UTC offset
+ associated with a time zone abbreviation (such as <literal>EST</literal>)
never changes in the usage of any particular locale. However this
assumption fails in the real world, so introduce the ability for a
zone abbreviation to represent a UTC offset that sometimes changes.
Update the zone abbreviation definition files to make use of this
feature in timezone locales that have changed the UTC offset of their
abbreviations since 1970 (according to the IANA timezone database).
- In such timezones, <productname>PostgreSQL</> will now associate the
+ In such timezones, <productname>PostgreSQL</productname> will now associate the
correct UTC offset with the abbreviation depending on the given date.
</para>
</listitem>
<para>
Add CST (China Standard Time) to our lists.
- Remove references to ADT as <quote>Arabia Daylight Time</>, an
+ Remove references to ADT as <quote>Arabia Daylight Time</quote>, an
abbreviation that's been out of use since 2007; therefore, claiming
- there is a conflict with <quote>Atlantic Daylight Time</> doesn't seem
+ there is a conflict with <quote>Atlantic Daylight Time</quote> doesn't seem
especially helpful.
Fix entirely incorrect GMT offsets for CKT (Cook Islands), FJT, and FJST
(Fiji); we didn't even have them on the proper side of the date line.
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015a.
+ Update time zone data files to <application>tzdata</application> release 2015a.
</para>
<para>
The IANA timezone database has adopted abbreviations of the form
- <literal>A<replaceable>x</>ST</literal>/<literal>A<replaceable>x</>DT</literal>
+ <literal>A<replaceable>x</replaceable>ST</literal>/<literal>A<replaceable>x</replaceable>DT</literal>
for all Australian time zones, reflecting what they believe to be
current majority practice Down Under. These names do not conflict
with usage elsewhere (other than ACST for Acre Summer Time, which has
been in disuse since 1994). Accordingly, adopt these names into
- our <quote>Default</> timezone abbreviation set.
- The <quote>Australia</> abbreviation set now contains only CST, EAST,
+ our <quote>Default</quote> timezone abbreviation set.
+ The <quote>Australia</quote> abbreviation set now contains only CST, EAST,
EST, SAST, SAT, and WST, all of which are thought to be mostly
historical usage. Note that SAST has also been changed to be South
- Africa Standard Time in the <quote>Default</> abbreviation set.
+ Africa Standard Time in the <quote>Default</quote> abbreviation set.
</para>
<para>
<para>
However, this release corrects a logic error
- in <application>pg_upgrade</>, as well as an index corruption problem in
+ in <application>pg_upgrade</application>, as well as an index corruption problem in
some GiST indexes. See the first two changelog entries below to find out
whether your installation has been affected and what steps you should take
if so.
<listitem>
<para>
- In <application>pg_upgrade</>, remove <filename>pg_multixact</> files
- left behind by <application>initdb</> (Bruce Momjian)
+ In <application>pg_upgrade</application>, remove <filename>pg_multixact</filename> files
+ left behind by <application>initdb</application> (Bruce Momjian)
</para>
<para>
- If you used a pre-9.3.5 version of <application>pg_upgrade</> to
+ If you used a pre-9.3.5 version of <application>pg_upgrade</application> to
upgrade a database cluster to 9.3, it might have left behind a file
- <filename>$PGDATA/pg_multixact/offsets/0000</> that should not be
- there and will eventually cause problems in <command>VACUUM</>.
+ <filename>$PGDATA/pg_multixact/offsets/0000</filename> that should not be
+ there and will eventually cause problems in <command>VACUUM</command>.
<emphasis>However, in common cases this file is actually valid and
must not be removed.</emphasis>
To determine whether your installation has this problem, run this
EXISTS (SELECT * FROM list WHERE file != '0000')
AS file_0000_removal_required;
</programlisting>
- If this query returns <literal>t</>, manually remove the file
- <filename>$PGDATA/pg_multixact/offsets/0000</>.
- Do nothing if the query returns <literal>f</>.
+ If this query returns <literal>t</literal>, manually remove the file
+ <filename>$PGDATA/pg_multixact/offsets/0000</filename>.
+ Do nothing if the query returns <literal>f</literal>.
</para>
</listitem>
<listitem>
<para>
- Correctly initialize padding bytes in <filename>contrib/btree_gist</>
- indexes on <type>bit</> columns (Heikki Linnakangas)
+ Correctly initialize padding bytes in <filename>contrib/btree_gist</filename>
+ indexes on <type>bit</type> columns (Heikki Linnakangas)
</para>
<para>
This error could result in incorrect query results due to values that
should compare equal not being seen as equal.
- Users with GiST indexes on <type>bit</> or <type>bit varying</>
- columns should <command>REINDEX</> those indexes after installing this
+ Users with GiST indexes on <type>bit</type> or <type>bit varying</type>
+ columns should <command>REINDEX</command> those indexes after installing this
update.
</para>
</listitem>
<listitem>
<para>
- Fix wraparound handling for <filename>pg_multixact/members</>
+ Fix wraparound handling for <filename>pg_multixact/members</filename>
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Truncate <structname>pg_multixact</> during checkpoints, not
- during <command>VACUUM</> (Álvaro Herrera)
+ Truncate <structname>pg_multixact</structname> during checkpoints, not
+ during <command>VACUUM</command> (Álvaro Herrera)
</para>
<para>
- This change ensures that <structname>pg_multixact</> segments can't be
+ This change ensures that <structname>pg_multixact</structname> segments can't be
removed if they'd still be needed during WAL replay after a crash.
</para>
</listitem>
<listitem>
<para>
Fix possibly-incorrect cache invalidation during nested calls
- to <function>ReceiveSharedInvalidMessages</> (Andres Freund)
+ to <function>ReceiveSharedInvalidMessages</function> (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix <quote>could not find pathkey item to sort</> planner failures
- with <literal>UNION ALL</> over subqueries reading from tables with
+ Fix <quote>could not find pathkey item to sort</quote> planner failures
+ with <literal>UNION ALL</literal> over subqueries reading from tables with
inheritance children (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve planner to drop constant-NULL inputs
- of <literal>AND</>/<literal>OR</> when possible (Tom Lane)
+ of <literal>AND</literal>/<literal>OR</literal> when possible (Tom Lane)
</para>
<para>
<listitem>
<para>
- Ensure that the planner sees equivalent <literal>VARIADIC</> and
- non-<literal>VARIADIC</> function calls as equivalent (Tom Lane)
+ Ensure that the planner sees equivalent <literal>VARIADIC</literal> and
+ non-<literal>VARIADIC</literal> function calls as equivalent (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix handling of nested <type>JSON</> objects
- in <function>json_populate_recordset()</> and friends
+ Fix handling of nested <type>JSON</type> objects
+ in <function>json_populate_recordset()</function> and friends
(Michael Paquier, Tom Lane)
</para>
<para>
- A nested <type>JSON</> object could result in previous fields of the
+ A nested <type>JSON</type> object could result in previous fields of the
parent object not being shown in the output.
</para>
</listitem>
<listitem>
<para>
- Fix identification of input type category in <function>to_json()</>
+ Fix identification of input type category in <function>to_json()</function>
and friends (Tom Lane)
</para>
<para>
- This is known to have led to inadequate quoting of <type>money</>
- fields in the <type>JSON</> result, and there may have been wrong
+ This is known to have led to inadequate quoting of <type>money</type>
+ fields in the <type>JSON</type> result, and there may have been wrong
results for other data types as well.
</para>
</listitem>
This corrects cases where TOAST pointers could be copied into other
tables without being dereferenced. If the original data is later
deleted, it would lead to errors like <quote>missing chunk number 0
- for toast value ...</> when the now-dangling pointer is used.
+ for toast value ...</quote> when the now-dangling pointer is used.
</para>
</listitem>
<listitem>
<para>
- Fix <quote>record type has not been registered</> failures with
+ Fix <quote>record type has not been registered</quote> failures with
whole-row references to the output of Append plan nodes (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix query-lifespan memory leak while evaluating the arguments for a
- function in <literal>FROM</> (Tom Lane)
+ function in <literal>FROM</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix data encoding error in <filename>hungarian.stop</> (Tom Lane)
+ Fix data encoding error in <filename>hungarian.stop</filename> (Tom Lane)
</para>
</listitem>
<para>
This could cause problems (at least spurious warnings, and at worst an
- infinite loop) if <command>CREATE INDEX</> or <command>CLUSTER</> were
+ infinite loop) if <command>CREATE INDEX</command> or <command>CLUSTER</command> were
done later in the same transaction.
</para>
</listitem>
<listitem>
<para>
- Clear <structname>pg_stat_activity</>.<structfield>xact_start</>
- during <command>PREPARE TRANSACTION</> (Andres Freund)
+ Clear <structname>pg_stat_activity</structname>.<structfield>xact_start</structfield>
+ during <command>PREPARE TRANSACTION</command> (Andres Freund)
</para>
<para>
- After the <command>PREPARE</>, the originating session is no longer in
+ After the <command>PREPARE</command>, the originating session is no longer in
a transaction, so it should not continue to display a transaction
start time.
</para>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to not fail for text search objects
+ Fix <command>REASSIGN OWNED</command> to not fail for text search objects
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Prevent <structname>pg_class</>.<structfield>relminmxid</> values from
- going backwards during <command>VACUUM FULL</> (Álvaro Herrera)
+ Prevent <structname>pg_class</structname>.<structfield>relminmxid</structfield> values from
+ going backwards during <command>VACUUM FULL</command> (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Fix dumping of rules/views when subsequent addition of a column has
- resulted in multiple input columns matching a <literal>USING</>
+ resulted in multiple input columns matching a <literal>USING</literal>
specification (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Repair view printing for some cases involving functions
- in <literal>FROM</> that return a composite type containing dropped
+ in <literal>FROM</literal> that return a composite type containing dropped
columns (Tom Lane)
</para>
</listitem>
<para>
This ensures that the postmaster will properly clean up after itself
- if, for example, it receives <systemitem>SIGINT</> while still
+ if, for example, it receives <systemitem>SIGINT</systemitem> while still
starting up.
</para>
</listitem>
<listitem>
<para>
- Fix client host name lookup when processing <filename>pg_hba.conf</>
+ Fix client host name lookup when processing <filename>pg_hba.conf</filename>
entries that specify host names instead of IP addresses (Tom Lane)
</para>
<listitem>
<para>
- Allow the root user to use <literal>postgres -C variable</> and
- <literal>postgres --describe-config</> (MauMau)
+ Allow the root user to use <literal>postgres -C variable</literal> and
+ <literal>postgres --describe-config</literal> (MauMau)
</para>
<para>
The prohibition on starting the server as root does not need to extend
to these operations, and relaxing it prevents failure
- of <application>pg_ctl</> in some scenarios.
+ of <application>pg_ctl</application> in some scenarios.
</para>
</listitem>
<listitem>
<para>
Secure Unix-domain sockets of temporary postmasters started during
- <literal>make check</> (Noah Misch)
+ <literal>make check</literal> (Noah Misch)
</para>
<para>
the operating-system user running the test, as we previously noted in
CVE-2014-0067. This change defends against that risk by placing the
server's socket in a temporary, mode 0700 subdirectory
- of <filename>/tmp</>. The hazard remains however on platforms where
+ of <filename>/tmp</filename>. The hazard remains however on platforms where
Unix sockets are not supported, notably Windows, because then the
temporary postmaster must accept local TCP connections.
</para>
<para>
A useful side effect of this change is to simplify
- <literal>make check</> testing in builds that
- override <literal>DEFAULT_PGSOCKET_DIR</>. Popular non-default values
- like <filename>/var/run/postgresql</> are often not writable by the
+ <literal>make check</literal> testing in builds that
+ override <literal>DEFAULT_PGSOCKET_DIR</literal>. Popular non-default values
+ like <filename>/var/run/postgresql</filename> are often not writable by the
build user, requiring workarounds that will no longer be necessary.
</para>
</listitem>
</para>
<para>
- This oversight could cause <application>initdb</>
- and <application>pg_upgrade</> to fail on Windows, if the installation
- path contained both spaces and <literal>@</> signs.
+ This oversight could cause <application>initdb</application>
+ and <application>pg_upgrade</application> to fail on Windows, if the installation
+ path contained both spaces and <literal>@</literal> signs.
</para>
</listitem>
<listitem>
<para>
- Fix linking of <application>libpython</> on macOS (Tom Lane)
+ Fix linking of <application>libpython</application> on macOS (Tom Lane)
</para>
<para>
<listitem>
<para>
- Avoid buffer bloat in <application>libpq</> when the server
+ Avoid buffer bloat in <application>libpq</application> when the server
consistently sends data faster than the client can absorb it
(Shin-ichi Morita, Tom Lane)
</para>
<para>
- <application>libpq</> could be coerced into enlarging its input buffer
+ <application>libpq</application> could be coerced into enlarging its input buffer
until it runs out of memory (which would be reported misleadingly
- as <quote>lost synchronization with server</>). Under ordinary
+ as <quote>lost synchronization with server</quote>). Under ordinary
circumstances it's quite far-fetched that data could be continuously
- transmitted more quickly than the <function>recv()</> loop can
+ transmitted more quickly than the <function>recv()</function> loop can
absorb it, but this has been observed when the client is artificially
slowed by scheduler constraints.
</para>
<listitem>
<para>
- Ensure that LDAP lookup attempts in <application>libpq</> time out as
+ Ensure that LDAP lookup attempts in <application>libpq</application> time out as
intended (Laurenz Albe)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</> to do the right thing when an array
- of <type>char *</> is the target for a FETCH statement returning more
+ Fix <application>ecpg</application> to do the right thing when an array
+ of <type>char *</type> is the target for a FETCH statement returning more
than one row, as well as some other array-handling fixes
(Ashutosh Bapat)
</para>
<listitem>
<para>
- Fix <application>pg_dump</> to cope with a materialized view that
+ Fix <application>pg_dump</application> to cope with a materialized view that
depends on a table's primary key (Tom Lane)
</para>
<para>
This occurs if the view's query relies on functional dependency to
- abbreviate a <literal>GROUP BY</> list. <application>pg_dump</> got
+ abbreviate a <literal>GROUP BY</literal> list. <application>pg_dump</application> got
sufficiently confused that it dumped the materialized view as a
regular view.
</para>
<listitem>
<para>
- Fix parsing of <application>pg_dumpall</>'s <option>-i</> switch
+ Fix parsing of <application>pg_dumpall</application>'s <option>-i</option> switch
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_restore</>'s processing of old-style large object
+ Fix <application>pg_restore</application>'s processing of old-style large object
comments (Tom Lane)
</para>
<para>
A direct-to-database restore from an archive file generated by a
- pre-9.0 version of <application>pg_dump</> would usually fail if the
+ pre-9.0 version of <application>pg_dump</application> would usually fail if the
archive contained more than a few comments for large objects.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> for cases where the new server creates
+ Fix <application>pg_upgrade</application> for cases where the new server creates
a TOAST table but the old version did not (Bruce Momjian)
</para>
<para>
- This rare situation would manifest as <quote>relation OID mismatch</>
+ This rare situation would manifest as <quote>relation OID mismatch</quote>
errors.
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>,
- preserve <structname>pg_database</>.<structfield>datminmxid</>
- and <structname>pg_class</>.<structfield>relminmxid</> values from the
+ In <application>pg_upgrade</application>,
+ preserve <structname>pg_database</structname>.<structfield>datminmxid</structfield>
+ and <structname>pg_class</structname>.<structfield>relminmxid</structfield> values from the
old cluster, or insert reasonable values when upgrading from pre-9.3;
also defend against unreasonable values in the core server
(Bruce Momjian, Álvaro Herrera, Tom Lane)
<listitem>
<para>
- Prevent <filename>contrib/auto_explain</> from changing the output of
- a user's <command>EXPLAIN</> (Tom Lane)
+ Prevent <filename>contrib/auto_explain</filename> from changing the output of
+ a user's <command>EXPLAIN</command> (Tom Lane)
</para>
<para>
- If <filename>auto_explain</> is active, it could cause
- an <literal>EXPLAIN (ANALYZE, TIMING OFF)</> command to nonetheless
+ If <filename>auto_explain</filename> is active, it could cause
+ an <literal>EXPLAIN (ANALYZE, TIMING OFF)</literal> command to nonetheless
print timing information.
</para>
</listitem>
<listitem>
<para>
- Fix query-lifespan memory leak in <filename>contrib/dblink</>
+ Fix query-lifespan memory leak in <filename>contrib/dblink</filename>
(MauMau, Joe Conway)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/pgcrypto</> functions, ensure sensitive
+ In <filename>contrib/pgcrypto</filename> functions, ensure sensitive
information is cleared from stack variables before returning
(Marko Kreen)
</para>
<listitem>
<para>
Prevent use of already-freed memory in
- <filename>contrib/pgstattuple</>'s <function>pgstat_heap()</>
+ <filename>contrib/pgstattuple</filename>'s <function>pgstat_heap()</function>
(Noah Misch)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/uuid-ossp</>, cache the state of the OSSP UUID
+ In <filename>contrib/uuid-ossp</filename>, cache the state of the OSSP UUID
library across calls (Tom Lane)
</para>
<para>
This improves the efficiency of UUID generation and reduces the amount
- of entropy drawn from <filename>/dev/urandom</>, on platforms that
+ of entropy drawn from <filename>/dev/urandom</filename>, on platforms that
have that.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2014e
+ Update time zone data files to <application>tzdata</application> release 2014e
for DST law changes in Crimea, Egypt, and Morocco.
</para>
</listitem>
<listitem>
<para>
Avoid race condition in checking transaction commit status during
- receipt of a <command>NOTIFY</> message (Marko Tiikkaja)
+ receipt of a <command>NOTIFY</command> message (Marko Tiikkaja)
</para>
<para>
<listitem>
<para>
- Allow materialized views to be referenced in <command>UPDATE</>
- and <command>DELETE</> commands (Michael Paquier)
+ Allow materialized views to be referenced in <command>UPDATE</command>
+ and <command>DELETE</command> commands (Michael Paquier)
</para>
<para>
<listitem>
<para>
- Remove incorrect code that tried to allow <literal>OVERLAPS</> with
+ Remove incorrect code that tried to allow <literal>OVERLAPS</literal> with
single-element row arguments (Joshua Yanovski)
</para>
<listitem>
<para>
- Avoid getting more than <literal>AccessShareLock</> when de-parsing a
+ Avoid getting more than <literal>AccessShareLock</literal> when de-parsing a
rule or view (Dean Rasheed)
</para>
<para>
- This oversight resulted in <application>pg_dump</> unexpectedly
- acquiring <literal>RowExclusiveLock</> locks on tables mentioned as
- the targets of <literal>INSERT</>/<literal>UPDATE</>/<literal>DELETE</>
+ This oversight resulted in <application>pg_dump</application> unexpectedly
+ acquiring <literal>RowExclusiveLock</literal> locks on tables mentioned as
+ the targets of <literal>INSERT</literal>/<literal>UPDATE</literal>/<literal>DELETE</literal>
commands in rules. While usually harmless, that could interfere with
concurrent transactions that tried to acquire, for example,
- <literal>ShareLock</> on those tables.
+ <literal>ShareLock</literal> on those tables.
</para>
</listitem>
<listitem>
<para>
Use non-default selectivity estimates for
- <literal><replaceable>value</> IN (<replaceable>list</>)</literal> and
- <literal><replaceable>value</> <replaceable>operator</> ANY
- (<replaceable>array</>)</literal>
+ <literal><replaceable>value</replaceable> IN (<replaceable>list</replaceable>)</literal> and
+ <literal><replaceable>value</replaceable> <replaceable>operator</replaceable> ANY
+ (<replaceable>array</replaceable>)</literal>
expressions when the righthand side is a stable expression (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Remove the correct per-database statistics file during <command>DROP
- DATABASE</> (Tomas Vondra)
+ DATABASE</command> (Tomas Vondra)
</para>
<para>
This fix prevents a permanent leak of statistics file space.
- Users who have done many <command>DROP DATABASE</> commands since
- upgrading to <productname>PostgreSQL</> 9.3 may wish to check their
+ Users who have done many <command>DROP DATABASE</command> commands since
+ upgrading to <productname>PostgreSQL</productname> 9.3 may wish to check their
statistics directory and delete statistics files that do not
correspond to any existing database. Please note
- that <filename>db_0.stat</> should not be removed.
+ that <filename>db_0.stat</filename> should not be removed.
</para>
</listitem>
<listitem>
<para>
- Fix <application>walsender</> ping logic to avoid inappropriate
+ Fix <application>walsender</application> ping logic to avoid inappropriate
disconnects under continuous load (Andres Freund, Heikki Linnakangas)
</para>
<para>
- <application>walsender</> failed to send ping messages to the client
+ <application>walsender</application> failed to send ping messages to the client
if it was constantly busy sending WAL data; but it expected to see
ping responses despite that, and would therefore disconnect
once <xref linkend="guc-wal-sender-timeout"> elapsed.
<listitem>
<para>
- Fix <application>walsender</>'s failure to shut down cleanly when client
- is <application>pg_receivexlog</> (Fujii Masao)
+ Fix <application>walsender</application>'s failure to shut down cleanly when client
+ is <application>pg_receivexlog</application> (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Prevent interrupts while reporting non-<literal>ERROR</> messages
+ Prevent interrupts while reporting non-<literal>ERROR</literal> messages
(Tom Lane)
</para>
<para>
This guards against rare server-process freezeups due to recursive
- entry to <function>syslog()</>, and perhaps other related problems.
+ entry to <function>syslog()</function>, and perhaps other related problems.
</para>
</listitem>
<listitem>
<para>
- Fix tracking of <application>psql</> script line numbers
- during <literal>\copy</> from out-of-line data
+ Fix tracking of <application>psql</application> script line numbers
+ during <literal>\copy</literal> from out-of-line data
(Kumar Rajeev Rastogi, Amit Khandekar)
</para>
<para>
- <literal>\copy ... from</> incremented the script file line number
+ <literal>\copy ... from</literal> incremented the script file line number
for each data line, even if the data was not coming from the script
file. This mistake resulted in wrong line numbers being reported for
any errors occurring later in the same script file.
<listitem>
<para>
- Fix <application>contrib/postgres_fdw</> to handle multiple join
+ Fix <application>contrib/postgres_fdw</application> to handle multiple join
conditions properly (Tom Lane)
</para>
<para>
- This oversight could result in sending <literal>WHERE</> clauses to
+ This oversight could result in sending <literal>WHERE</literal> clauses to
the remote server for execution even though the clauses are not known
to have the same semantics on the remote server (for example, clauses
that use non-built-in operators). The query might succeed anyway,
<listitem>
<para>
- Prevent intermittent <quote>could not reserve shared memory region</>
+ Prevent intermittent <quote>could not reserve shared memory region</quote>
failures on recent Windows versions (MauMau)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2014a
+ Update time zone data files to <application>tzdata</application> release 2014a
for DST law changes in Fiji and Turkey, plus historical changes in
Israel and Ukraine.
</para>
<listitem>
<para>
- Shore up <literal>GRANT ... WITH ADMIN OPTION</> restrictions
+ Shore up <literal>GRANT ... WITH ADMIN OPTION</literal> restrictions
(Noah Misch)
</para>
<para>
- Granting a role without <literal>ADMIN OPTION</> is supposed to
+ Granting a role without <literal>ADMIN OPTION</literal> is supposed to
prevent the grantee from adding or removing members from the granted
role, but this restriction was easily bypassed by doing <literal>SET
- ROLE</> first. The security impact is mostly that a role member can
+ ROLE</literal> first. The security impact is mostly that a role member can
revoke the access of others, contrary to the wishes of his grantor.
Unapproved role member additions are a lesser concern, since an
uncooperative role member could provide most of his rights to others
- anyway by creating views or <literal>SECURITY DEFINER</> functions.
+ anyway by creating views or <literal>SECURITY DEFINER</literal> functions.
(CVE-2014-0060)
</para>
</listitem>
<para>
The primary role of PL validator functions is to be called implicitly
- during <command>CREATE FUNCTION</>, but they are also normal SQL
+ during <command>CREATE FUNCTION</command>, but they are also normal SQL
functions that a user can call explicitly. Calling a validator on
a function actually written in some other language was not checked
for and could be exploited for privilege-escalation purposes.
<para>
If the name lookups come to different conclusions due to concurrent
activity, we might perform some parts of the DDL on a different table
- than other parts. At least in the case of <command>CREATE INDEX</>,
+ than other parts. At least in the case of <command>CREATE INDEX</command>,
this can be used to cause the permissions checks to be performed
against a different table than the index creation, allowing for a
privilege escalation attack.
</para>
<para>
- The <literal>MAXDATELEN</> constant was too small for the longest
- possible value of type <type>interval</>, allowing a buffer overrun
- in <function>interval_out()</>. Although the datetime input
+ The <literal>MAXDATELEN</literal> constant was too small for the longest
+ possible value of type <type>interval</type>, allowing a buffer overrun
+ in <function>interval_out()</function>. Although the datetime input
functions were more careful about avoiding buffer overrun, the limit
was short enough to cause them to reject some valid inputs, such as
- input containing a very long timezone name. The <application>ecpg</>
+ input containing a very long timezone name. The <application>ecpg</application>
library contained these vulnerabilities along with some of its own.
(CVE-2014-0063)
</para>
</para>
<para>
- Use <function>strlcpy()</> and related functions to provide a clear
+ Use <function>strlcpy()</function> and related functions to provide a clear
guarantee that fixed-size buffers are not overrun. Unlike the
preceding items, it is unclear whether these cases really represent
live issues, since in most cases there appear to be previous
<listitem>
<para>
- Avoid crashing if <function>crypt()</> returns NULL (Honza Horak,
+ Avoid crashing if <function>crypt()</function> returns NULL (Honza Horak,
Bruce Momjian)
</para>
<para>
- There are relatively few scenarios in which <function>crypt()</>
- could return NULL, but <filename>contrib/chkpass</> would crash
+ There are relatively few scenarios in which <function>crypt()</function>
+ could return NULL, but <filename>contrib/chkpass</filename> would crash
if it did. One practical case in which this could be an issue is
- if <application>libc</> is configured to refuse to execute unapproved
- hashing algorithms (e.g., <quote>FIPS mode</>).
+ if <application>libc</application> is configured to refuse to execute unapproved
+ hashing algorithms (e.g., <quote>FIPS mode</quote>).
(CVE-2014-0066)
</para>
</listitem>
<listitem>
<para>
- Document risks of <literal>make check</> in the regression testing
+ Document risks of <literal>make check</literal> in the regression testing
instructions (Noah Misch, Tom Lane)
</para>
<para>
- Since the temporary server started by <literal>make check</>
- uses <quote>trust</> authentication, another user on the same machine
+ Since the temporary server started by <literal>make check</literal>
+ uses <quote>trust</quote> authentication, another user on the same machine
could connect to it as database superuser, and then potentially
exploit the privileges of the operating-system user who started the
tests. A future release will probably incorporate changes in the
testing procedure to prevent this risk, but some public discussion is
needed first. So for the moment, just warn people against using
- <literal>make check</> when there are untrusted users on the
+ <literal>make check</literal> when there are untrusted users on the
same machine.
(CVE-2014-0067)
</para>
<para>
The logic for tuple freezing was unable to handle some cases involving
freezing of
- <link linkend="vacuum-for-multixact-wraparound"><firstterm>multixact</>
+ <link linkend="vacuum-for-multixact-wraparound"><firstterm>multixact</firstterm>
IDs</link>, with the practical effect that shared row-level locks
might be forgotten once old enough.
</para>
Fixing this required changing the WAL record format for tuple
freezing. While this is no issue for standalone servers, when using
replication it means that <emphasis>standby servers must be upgraded
- to 9.3.3 or later before their masters are</>. An older standby will
+ to 9.3.3 or later before their masters are</emphasis>. An older standby will
be unable to interpret freeze records generated by a newer master, and
will fail with a PANIC message. (In such a case, upgrading the
standby should be sufficient to let it resume execution.)
<para>
This oversight could allow referential integrity checks to give false
positives (for instance, allow deletes that should have been rejected).
- Applications using the new commands <literal>SELECT FOR KEY SHARE</>
- and <literal>SELECT FOR NO KEY UPDATE</> might also have suffered
+ Applications using the new commands <literal>SELECT FOR KEY SHARE</literal>
+ and <literal>SELECT FOR NO KEY UPDATE</literal> might also have suffered
locking failures of this kind.
</para>
</listitem>
<listitem>
<para>
- Prevent <quote>forgetting</> valid row locks when one of several
+ Prevent <quote>forgetting</quote> valid row locks when one of several
holders of a row lock aborts (Álvaro Herrera)
</para>
<para>
This mistake could result in spurious <quote>could not serialize access
- due to concurrent update</> errors in <literal>REPEATABLE READ</>
- and <literal>SERIALIZABLE</> transaction isolation modes.
+ due to concurrent update</quote> errors in <literal>REPEATABLE READ</literal>
+ and <literal>SERIALIZABLE</literal> transaction isolation modes.
</para>
</listitem>
<listitem>
<para>
Handle wraparound correctly during extension or truncation
- of <filename>pg_multixact/members</>
+ of <filename>pg_multixact/members</filename>
(Andres Freund, Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix handling of 5-digit filenames in <filename>pg_multixact/members</>
+ Fix handling of 5-digit filenames in <filename>pg_multixact/members</filename>
(Álvaro Herrera)
</para>
<para>
This fixes a performance regression from pre-9.3 versions when doing
- <literal>SELECT FOR UPDATE</> followed by <literal>UPDATE/DELETE</>.
+ <literal>SELECT FOR UPDATE</literal> followed by <literal>UPDATE/DELETE</literal>.
</para>
</listitem>
<para>
During archive recovery, prefer highest timeline number when WAL
segments with the same ID are present in both the archive
- and <filename>pg_xlog/</> (Kyotaro Horiguchi)
+ and <filename>pg_xlog/</filename> (Kyotaro Horiguchi)
</para>
<para>
<para>
The WAL update could be applied to the wrong page, potentially many
pages past where it should have been. Aside from corrupting data,
- this error has been observed to result in significant <quote>bloat</>
+ this error has been observed to result in significant <quote>bloat</quote>
of standby servers compared to their masters, due to updates being
applied far beyond where the end-of-file should have been. This
failure mode does not appear to be a significant risk during crash
was already consistent at the start of replay, thus possibly allowing
hot-standby queries before the database was really consistent. Other
symptoms such as <quote>PANIC: WAL contains references to invalid
- pages</> were also possible.
+ pages</quote> were also possible.
</para>
</listitem>
<listitem>
<para>
Fix improper locking of btree index pages while replaying
- a <literal>VACUUM</> operation in hot-standby mode (Andres Freund,
+ a <literal>VACUUM</literal> operation in hot-standby mode (Andres Freund,
Heikki Linnakangas, Tom Lane)
</para>
<para>
This error could result in <quote>PANIC: WAL contains references to
- invalid pages</> failures.
+ invalid pages</quote> failures.
</para>
</listitem>
<listitem>
<para>
- When <literal>pause_at_recovery_target</>
- and <literal>recovery_target_inclusive</> are both set, ensure the
+ When <literal>pause_at_recovery_target</literal>
+ and <literal>recovery_target_inclusive</literal> are both set, ensure the
target record is applied before pausing, not after (Heikki
Linnakangas)
</para>
<listitem>
<para>
Prevent timeout interrupts from taking control away from mainline
- code unless <varname>ImmediateInterruptOK</> is set
+ code unless <varname>ImmediateInterruptOK</varname> is set
(Andres Freund, Tom Lane)
</para>
<para>
This is a serious issue for any application making use of statement
timeouts, as it could cause all manner of strange failures after a
- timeout occurred. We have seen reports of <quote>stuck</> spinlocks,
+ timeout occurred. We have seen reports of <quote>stuck</quote> spinlocks,
ERRORs being unexpectedly promoted to PANICs, unkillable backends,
and other misbehaviors.
</para>
<para>
Ensure that signal handlers don't attempt to use the
- process's <varname>MyProc</> pointer after it's no longer valid.
+ process's <varname>MyProc</varname> pointer after it's no longer valid.
</para>
</listitem>
<listitem>
<para>
- Fix unsafe references to <varname>errno</> within error reporting
+ Fix unsafe references to <varname>errno</varname> within error reporting
logic (Christian Kruse)
</para>
<para>
This would typically lead to odd behaviors such as missing or
- inappropriate <literal>HINT</> fields.
+ inappropriate <literal>HINT</literal> fields.
</para>
</listitem>
<listitem>
<para>
- Fix possible crashes from using <function>ereport()</> too early
+ Fix possible crashes from using <function>ereport()</function> too early
during server startup (Tom Lane)
</para>
<listitem>
<para>
- Fix length checking for Unicode identifiers (<literal>U&"..."</>
+ Fix length checking for Unicode identifiers (<literal>U&"..."</literal>
syntax) containing escapes (Tom Lane)
</para>
<para>
A previous patch allowed such keywords to be used without quoting
in places such as role identifiers; but it missed cases where a
- list of role identifiers was permitted, such as <literal>DROP ROLE</>.
+ list of role identifiers was permitted, such as <literal>DROP ROLE</literal>.
</para>
</listitem>
<listitem>
<para>
Fix possible crash due to invalid plan for nested sub-selects, such
- as <literal>WHERE (... x IN (SELECT ...) ...) IN (SELECT ...)</>
+ as <literal>WHERE (... x IN (SELECT ...) ...) IN (SELECT ...)</literal>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix mishandling of <literal>WHERE</> conditions pulled up from
- a <literal>LATERAL</> subquery (Tom Lane)
+ Fix mishandling of <literal>WHERE</literal> conditions pulled up from
+ a <literal>LATERAL</literal> subquery (Tom Lane)
</para>
<para>
The typical symptom of this bug was a <quote>JOIN qualification
- cannot refer to other relations</> error, though subtle logic
+ cannot refer to other relations</quote> error, though subtle logic
errors in created plans seem possible as well.
</para>
</listitem>
<listitem>
<para>
- Disallow <literal>LATERAL</> references to the target table of
- an <literal>UPDATE/DELETE</> (Tom Lane)
+ Disallow <literal>LATERAL</literal> references to the target table of
+ an <literal>UPDATE/DELETE</literal> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <literal>UPDATE/DELETE</> of an inherited target table
- that has <literal>UNION ALL</> subqueries (Tom Lane)
+ Fix <literal>UPDATE/DELETE</literal> of an inherited target table
+ that has <literal>UNION ALL</literal> subqueries (Tom Lane)
</para>
<para>
- Without this fix, <literal>UNION ALL</> subqueries aren't correctly
+ Without this fix, <literal>UNION ALL</literal> subqueries aren't correctly
inserted into the update plans for inheritance child tables after the
first one, typically resulting in no update happening for those child
table(s).
<listitem>
<para>
- Fix <command>ANALYZE</> to not fail on a column that's a domain over
+ Fix <command>ANALYZE</command> to not fail on a column that's a domain over
a range type (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Ensure that <command>ANALYZE</> creates statistics for a table column
- even when all the values in it are <quote>too wide</> (Tom Lane)
+ Ensure that <command>ANALYZE</command> creates statistics for a table column
+ even when all the values in it are <quote>too wide</quote> (Tom Lane)
</para>
<para>
- <command>ANALYZE</> intentionally omits very wide values from its
+ <command>ANALYZE</command> intentionally omits very wide values from its
histogram and most-common-values calculations, but it neglected to do
something sane in the case that all the sampled entries are too wide.
</para>
<listitem>
<para>
- In <literal>ALTER TABLE ... SET TABLESPACE</>, allow the database's
+ In <literal>ALTER TABLE ... SET TABLESPACE</literal>, allow the database's
default tablespace to be used without a permissions check
(Stephen Frost)
</para>
<para>
- <literal>CREATE TABLE</> has always allowed such usage,
- but <literal>ALTER TABLE</> didn't get the memo.
+ <literal>CREATE TABLE</literal> has always allowed such usage,
+ but <literal>ALTER TABLE</literal> didn't get the memo.
</para>
</listitem>
<listitem>
<para>
- Fix <quote>cannot accept a set</> error when some arms of
- a <literal>CASE</> return a set and others don't (Tom Lane)
+ Fix <quote>cannot accept a set</quote> error when some arms of
+ a <literal>CASE</literal> return a set and others don't (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix possible misbehavior in <function>plainto_tsquery()</>
+ Fix possible misbehavior in <function>plainto_tsquery()</function>
(Heikki Linnakangas)
</para>
<para>
- Use <function>memmove()</> not <function>memcpy()</> for copying
+ Use <function>memmove()</function> not <function>memcpy()</function> for copying
overlapping memory regions. There have been no field reports of
this actually causing trouble, but it's certainly risky.
</para>
<listitem>
<para>
- Fix placement of permissions checks in <function>pg_start_backup()</>
- and <function>pg_stop_backup()</> (Andres Freund, Magnus Hagander)
+ Fix placement of permissions checks in <function>pg_start_backup()</function>
+ and <function>pg_stop_backup()</function> (Andres Freund, Magnus Hagander)
</para>
<para>
<listitem>
<para>
- Accept <literal>SHIFT_JIS</> as an encoding name for locale checking
+ Accept <literal>SHIFT_JIS</literal> as an encoding name for locale checking
purposes (Tatsuo Ishii)
</para>
</listitem>
<listitem>
<para>
- Fix <literal>*</>-qualification of named parameters in SQL-language
+ Fix <literal>*</literal>-qualification of named parameters in SQL-language
functions (Tom Lane)
</para>
<para>
Given a composite-type parameter
- named <literal>foo</>, <literal>$1.*</> worked fine,
- but <literal>foo.*</> not so much.
+ named <literal>foo</literal>, <literal>$1.*</literal> worked fine,
+ but <literal>foo.*</literal> not so much.
</para>
</listitem>
<listitem>
<para>
- Fix misbehavior of <function>PQhost()</> on Windows (Fujii Masao)
+ Fix misbehavior of <function>PQhost()</function> on Windows (Fujii Masao)
</para>
<para>
- It should return <literal>localhost</> if no host has been specified.
+ It should return <literal>localhost</literal> if no host has been specified.
</para>
</listitem>
<listitem>
<para>
- Improve error handling in <application>libpq</> and <application>psql</>
- for failures during <literal>COPY TO STDOUT/FROM STDIN</> (Tom Lane)
+ Improve error handling in <application>libpq</application> and <application>psql</application>
+ for failures during <literal>COPY TO STDOUT/FROM STDIN</literal> (Tom Lane)
</para>
<para>
In particular this fixes an infinite loop that could occur in 9.2 and
up if the server connection was lost during <literal>COPY FROM
- STDIN</>. Variants of that scenario might be possible in older
+ STDIN</literal>. Variants of that scenario might be possible in older
versions, or with other client applications.
</para>
</listitem>
<listitem>
<para>
Fix incorrect translation handling in
- some <application>psql</> <literal>\d</> commands
+ some <application>psql</application> <literal>\d</literal> commands
(Peter Eisentraut, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Ensure <application>pg_basebackup</>'s background process is killed
+ Ensure <application>pg_basebackup</application>'s background process is killed
when exiting its foreground process (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
Fix possible incorrect printing of filenames
- in <application>pg_basebackup</>'s verbose mode (Magnus Hagander)
+ in <application>pg_basebackup</application>'s verbose mode (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
- Fix misaligned descriptors in <application>ecpg</> (MauMau)
+ Fix misaligned descriptors in <application>ecpg</application> (MauMau)
</para>
</listitem>
<listitem>
<para>
- In <application>ecpg</>, handle lack of a hostname in the connection
+ In <application>ecpg</application>, handle lack of a hostname in the connection
parameters properly (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Fix performance regression in <filename>contrib/dblink</> connection
+ Fix performance regression in <filename>contrib/dblink</filename> connection
startup (Joe Conway)
</para>
<listitem>
<para>
- In <filename>contrib/isn</>, fix incorrect calculation of the check
+ In <filename>contrib/isn</filename>, fix incorrect calculation of the check
digit for ISMN values (Fabien Coelho)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/pgbench</>'s progress logging to avoid overflow
+ Fix <filename>contrib/pgbench</filename>'s progress logging to avoid overflow
when the scale factor is large (Tatsuo Ishii)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/pg_stat_statement</>'s handling
- of <literal>CURRENT_DATE</> and related constructs (Kyotaro
+ Fix <filename>contrib/pg_stat_statement</filename>'s handling
+ of <literal>CURRENT_DATE</literal> and related constructs (Kyotaro
Horiguchi)
</para>
</listitem>
<listitem>
<para>
Improve lost-connection error handling
- in <filename>contrib/postgres_fdw</> (Tom Lane)
+ in <filename>contrib/postgres_fdw</filename> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In Mingw and Cygwin builds, install the <application>libpq</> DLL
- in the <filename>bin</> directory (Andrew Dunstan)
+ In Mingw and Cygwin builds, install the <application>libpq</application> DLL
+ in the <filename>bin</filename> directory (Andrew Dunstan)
</para>
<para>
This duplicates what the MSVC build has long done. It should fix
- problems with programs like <application>psql</> failing to start
+ problems with programs like <application>psql</application> failing to start
because they can't find the DLL.
</para>
</listitem>
<listitem>
<para>
- Avoid using the deprecated <literal>dllwrap</> tool in Cygwin builds
+ Avoid using the deprecated <literal>dllwrap</literal> tool in Cygwin builds
(Marco Atzeri)
</para>
</listitem>
<listitem>
<para>
- Don't generate plain-text <filename>HISTORY</>
- and <filename>src/test/regress/README</> files anymore (Tom Lane)
+ Don't generate plain-text <filename>HISTORY</filename>
+ and <filename>src/test/regress/README</filename> files anymore (Tom Lane)
</para>
<para>
the likely audience for plain-text format. Distribution tarballs
will still contain files by these names, but they'll just be stubs
directing the reader to consult the main documentation.
- The plain-text <filename>INSTALL</> file will still be maintained, as
+ The plain-text <filename>INSTALL</filename> file will still be maintained, as
there is arguably a use-case for that.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2013i
+ Update time zone data files to <application>tzdata</application> release 2013i
for DST law changes in Jordan and historical changes in Cuba.
</para>
<para>
- In addition, the zones <literal>Asia/Riyadh87</>,
- <literal>Asia/Riyadh88</>, and <literal>Asia/Riyadh89</> have been
+ In addition, the zones <literal>Asia/Riyadh87</literal>,
+ <literal>Asia/Riyadh88</literal>, and <literal>Asia/Riyadh89</literal> have been
removed, as they are no longer maintained by IANA, and never
represented actual civil timekeeping practice.
</para>
<listitem>
<para>
- Fix <command>VACUUM</>'s tests to see whether it can
- update <structfield>relfrozenxid</> (Andres Freund)
+ Fix <command>VACUUM</command>'s tests to see whether it can
+ update <structfield>relfrozenxid</structfield> (Andres Freund)
</para>
<para>
- In some cases <command>VACUUM</> (either manual or autovacuum) could
- incorrectly advance a table's <structfield>relfrozenxid</> value,
+ In some cases <command>VACUUM</command> (either manual or autovacuum) could
+ incorrectly advance a table's <structfield>relfrozenxid</structfield> value,
allowing tuples to escape freezing, causing those rows to become
invisible once 2^31 transactions have elapsed. The probability of
data loss is fairly low since multiple incorrect advancements would
need to happen before actual loss occurs, but it's not zero. In 9.2.0
and later, the probability of loss is higher, and it's also possible
- to get <quote>could not access status of transaction</> errors as a
+ to get <quote>could not access status of transaction</quote> errors as a
consequence of this bug. Users upgrading from releases 9.0.4 or 8.4.8
or earlier are not affected, but all later versions contain the bug.
</para>
<para>
The issue can be ameliorated by, after upgrading, vacuuming all tables
in all databases while having <link
- linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</></link>
+ linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</varname></link>
set to zero. This will fix any latent corruption but will not be able
to fix all pre-existing data errors. However, an installation can be
presumed safe after performing this vacuuming if it has executed fewer
than 2^31 update transactions in its lifetime (check this with
- <literal>SELECT txid_current() < 2^31</>).
+ <literal>SELECT txid_current() < 2^31</literal>).
</para>
</listitem>
<para>
These bugs could lead to <quote>could not access status of
- transaction</> errors, or to duplicate or vanishing rows.
+ transaction</quote> errors, or to duplicate or vanishing rows.
Users upgrading from releases prior to 9.3.0 are not affected.
</para>
<para>
The issue can be ameliorated by, after upgrading, vacuuming all tables
in all databases while having <link
- linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</></link>
+ linkend="guc-vacuum-freeze-table-age"><varname>vacuum_freeze_table_age</varname></link>
set to zero. This will fix latent corruption but will not be able to
fix all pre-existing data errors.
</para>
<listitem>
<para>
- Fix initialization of <filename>pg_clog</> and <filename>pg_subtrans</>
+ Fix initialization of <filename>pg_clog</filename> and <filename>pg_subtrans</filename>
during hot standby startup (Andres Freund, Heikki Linnakangas)
</para>
<para>
These bugs could result in incorrect behavior, such as locking or even
updating the wrong row, in the presence of concurrent updates.
- Spurious <quote>unable to fetch updated version of tuple</> errors
+ Spurious <quote>unable to fetch updated version of tuple</quote> errors
were also possible.
</para>
</listitem>
<para>
This could lead to corruption of the lock data structures in shared
- memory, causing <quote>lock already held</> and other odd errors.
+ memory, causing <quote>lock already held</quote> and other odd errors.
</para>
</listitem>
<listitem>
<para>
- Truncate <filename>pg_multixact</> contents during WAL replay
+ Truncate <filename>pg_multixact</filename> contents during WAL replay
(Andres Freund)
</para>
<listitem>
<para>
- Ensure an anti-wraparound <command>VACUUM</> counts a page as scanned
+ Ensure an anti-wraparound <command>VACUUM</command> counts a page as scanned
when it's only verified that no tuples need freezing (Sergey
Burladyan, Jeff Janes)
</para>
<para>
This bug could result in failing to
- advance <structfield>relfrozenxid</>, so that the table would still be
+ advance <structfield>relfrozenxid</structfield>, so that the table would still be
thought to need another anti-wraparound vacuum. In the worst case the
database might even shut down to prevent wraparound.
</para>
<listitem>
<para>
- Fix <quote>unexpected spgdoinsert() failure</> error during SP-GiST
+ Fix <quote>unexpected spgdoinsert() failure</quote> error during SP-GiST
index creation (Teodor Sigaev)
</para>
</listitem>
</para>
<para>
- Historically <productname>PostgreSQL</> has accepted queries like
+ Historically <productname>PostgreSQL</productname> has accepted queries like
<programlisting>
SELECT ... FROM tab1 x CROSS JOIN (tab2 x CROSS JOIN tab3 y) z
</programlisting>
although a strict reading of the SQL standard would forbid the
- duplicate usage of table alias <literal>x</>. A misguided change in
+ duplicate usage of table alias <literal>x</literal>. A misguided change in
9.3.0 caused it to reject some such cases that were formerly accepted.
Restore the previous behavior.
</para>
<listitem>
<para>
- Avoid flattening a subquery whose <literal>SELECT</> list contains a
- volatile function wrapped inside a sub-<literal>SELECT</> (Tom Lane)
+ Avoid flattening a subquery whose <literal>SELECT</literal> list contains a
+ volatile function wrapped inside a sub-<literal>SELECT</literal> (Tom Lane)
</para>
<para>
<para>
This error could lead to incorrect plans for queries involving
- multiple levels of subqueries within <literal>JOIN</> syntax.
+ multiple levels of subqueries within <literal>JOIN</literal> syntax.
</para>
</listitem>
<listitem>
<para>
Fix incorrect planning in cases where the same non-strict expression
- appears in multiple <literal>WHERE</> and outer <literal>JOIN</>
+ appears in multiple <literal>WHERE</literal> and outer <literal>JOIN</literal>
equality clauses (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix array slicing of <type>int2vector</> and <type>oidvector</> values
+ Fix array slicing of <type>int2vector</type> and <type>oidvector</type> values
(Tom Lane)
</para>
<para>
Expressions of this kind are now implicitly promoted to
- regular <type>int2</> or <type>oid</> arrays.
+ regular <type>int2</type> or <type>oid</type> arrays.
</para>
</listitem>
<listitem>
<para>
- Return a valid JSON value when converting an empty <type>hstore</> value
- to <type>json</>
+ Return a valid JSON value when converting an empty <type>hstore</type> value
+ to <type>json</type>
(Oskari Saarenmaa)
</para>
</listitem>
In some cases, the system would use the simple GMT offset value when
it should have used the regular timezone setting that had prevailed
before the simple offset was selected. This change also causes
- the <function>timeofday</> function to honor the simple GMT offset
+ the <function>timeofday</function> function to honor the simple GMT offset
zone.
</para>
</listitem>
<listitem>
<para>
- Properly quote generated command lines in <application>pg_ctl</>
+ Properly quote generated command lines in <application>pg_ctl</application>
(Naoya Anzai and Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_dumpall</> to work when a source database
+ Fix <application>pg_dumpall</application> to work when a source database
sets <link
- linkend="guc-default-transaction-read-only"><varname>default_transaction_read_only</></link>
- via <command>ALTER DATABASE SET</> (Kevin Grittner)
+ linkend="guc-default-transaction-read-only"><varname>default_transaction_read_only</varname></link>
+ via <command>ALTER DATABASE SET</command> (Kevin Grittner)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_isready</> to handle its <option>-d</> option
+ Fix <application>pg_isready</application> to handle its <option>-d</option> option
properly (Fabrízio de Royes Mello and Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Fix parsing of WAL file names in <application>pg_receivexlog</>
+ Fix parsing of WAL file names in <application>pg_receivexlog</application>
(Heikki Linnakangas)
</para>
<para>
- This error made <application>pg_receivexlog</> unable to restart
+ This error made <application>pg_receivexlog</application> unable to restart
streaming after stopping, once at least 4 GB of WAL had been written.
</para>
</listitem>
<listitem>
<para>
Report out-of-disk-space failures properly
- in <application>pg_upgrade</> (Peter Eisentraut)
+ in <application>pg_upgrade</application> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Make <application>ecpg</> search for quoted cursor names
+ Make <application>ecpg</application> search for quoted cursor names
case-sensitively (Zoltán Böszörményi)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>'s processing of lists of variables
- declared <type>varchar</> (Zoltán Böszörményi)
+ Fix <application>ecpg</application>'s processing of lists of variables
+ declared <type>varchar</type> (Zoltán Böszörményi)
</para>
</listitem>
<listitem>
<para>
- Make <filename>contrib/lo</> defend against incorrect trigger definitions
+ Make <filename>contrib/lo</filename> defend against incorrect trigger definitions
(Marc Cousin)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2013h
+ Update time zone data files to <application>tzdata</application> release 2013h
for DST law changes in Argentina, Brazil, Jordan, Libya,
Liechtenstein, Morocco, and Palestine. Also, new timezone
abbreviations WIB, WIT, WITA for Indonesia.
</para>
<para>
- However, if you use the <literal>hstore</> extension, see the
+ However, if you use the <literal>hstore</literal> extension, see the
first changelog entry.
</para>
<listitem>
<para>
- Ensure new-in-9.3 JSON functionality is added to the <literal>hstore</>
+ Ensure new-in-9.3 JSON functionality is added to the <literal>hstore</literal>
extension during an update (Andrew Dunstan)
</para>
<para>
- Users who upgraded a pre-9.3 database containing <literal>hstore</>
+ Users who upgraded a pre-9.3 database containing <literal>hstore</literal>
should execute
<programlisting>
ALTER EXTENSION hstore UPDATE;
</programlisting>
after installing 9.3.1, to add two new JSON functions and a cast.
- (If <literal>hstore</> is already up to date, this command does
+ (If <literal>hstore</literal> is already up to date, this command does
nothing.)
</para>
</listitem>
<listitem>
<para>
- Fix timeline handling bugs in <application>pg_receivexlog</>
+ Fix timeline handling bugs in <application>pg_receivexlog</application>
(Heikki Linnakangas, Andrew Gierth)
</para>
</listitem>
<listitem>
<para>
- Prevent <command>CREATE FUNCTION</> from checking <command>SET</>
+ Prevent <command>CREATE FUNCTION</command> from checking <command>SET</command>
variables unless function body checking is enabled (Tom Lane)
</para>
</listitem>
<title>Overview</title>
<para>
- Major enhancements in <productname>PostgreSQL</> 9.3 include:
+ Major enhancements in <productname>PostgreSQL</productname> 9.3 include:
</para>
<!-- This list duplicates items below, but without authors or details-->
<listitem>
<para>
- Add <link linkend="SQL-CREATEMATERIALIZEDVIEW">materialized
+ Add <link linkend="sql-creatematerializedview">materialized
views</link>
</para>
</listitem>
<listitem>
<para>
Make simple views <link
- linkend="SQL-CREATEVIEW-updatable-views">auto-updatable</link>
+ linkend="sql-createview-updatable-views">auto-updatable</link>
</para>
</listitem>
<listitem>
<para>
- Add many features for the <type>JSON</> data type,
+ Add many features for the <type>JSON</type> data type,
including <link linkend="functions-json">operators and functions</link>
- to extract elements from <type>JSON</> values
+ to extract elements from <type>JSON</type> values
</para>
</listitem>
<listitem>
<para>
- Implement <acronym>SQL</>-standard <link
- linkend="queries-lateral"><literal>LATERAL</></link> option for
- <literal>FROM</>-clause subqueries and function calls
+ Implement <acronym>SQL</acronym>-standard <link
+ linkend="queries-lateral"><literal>LATERAL</literal></link> option for
+ <literal>FROM</literal>-clause subqueries and function calls
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="SQL-CREATEFOREIGNDATAWRAPPER">foreign data
+ Allow <link linkend="sql-createforeigndatawrapper">foreign data
wrappers</link> to support writes (inserts/updates/deletes) on foreign
tables
</para>
<listitem>
<para>
- Add a <link linkend="postgres-fdw"><productname>Postgres</> foreign
+ Add a <link linkend="postgres-fdw"><productname>Postgres</productname> foreign
data wrapper</link> to allow access to
- other <productname>Postgres</> servers
+ other <productname>Postgres</productname> servers
</para>
</listitem>
<para>
A dump/restore using <link
- linkend="APP-PG-DUMPALL"><application>pg_dumpall</></link>, or use
- of <link linkend="pgupgrade"><application>pg_upgrade</></link>, is
+ linkend="app-pg-dumpall"><application>pg_dumpall</application></link>, or use
+ of <link linkend="pgupgrade"><application>pg_upgrade</application></link>, is
required for those wishing to migrate data from any previous release.
</para>
<listitem>
<para>
- Rename <varname>replication_timeout</> to <link
- linkend="guc-wal-sender-timeout"><varname>wal_sender_timeout</></link>
+ Rename <varname>replication_timeout</varname> to <link
+ linkend="guc-wal-sender-timeout"><varname>wal_sender_timeout</varname></link>
(Amit Kapila)
</para>
<para>
This setting controls the <link
- linkend="wal"><acronym>WAL</></link> sender timeout.
+ linkend="wal"><acronym>WAL</acronym></link> sender timeout.
</para>
</listitem>
<listitem>
<para>
Require superuser privileges to set <link
- linkend="guc-commit-delay"><varname>commit_delay</></link>
+ linkend="guc-commit-delay"><varname>commit_delay</varname></link>
because it can now potentially delay other sessions (Simon Riggs)
</para>
</listitem>
<para>
Users who have set <link
- linkend="guc-work-mem"><varname>work_mem</></link> based on the
+ linkend="guc-work-mem"><varname>work_mem</varname></link> based on the
previous behavior may need to revisit that setting.
</para>
</listitem>
<listitem>
<para>
Throw an error if a tuple to be updated or deleted has already been
- updated or deleted by a <literal>BEFORE</> trigger (Kevin Grittner)
+ updated or deleted by a <literal>BEFORE</literal> trigger (Kevin Grittner)
</para>
<para>
Now an error is thrown to prevent the inconsistent results from being
committed. If this change affects your application, the best solution
is usually to move the data-propagation actions to
- an <literal>AFTER</> trigger.
+ an <literal>AFTER</literal> trigger.
</para>
<para>
<listitem>
<para>
- Change multicolumn <link linkend="SQL-CREATETABLE"><literal>ON UPDATE
- SET NULL/SET DEFAULT</></link> foreign key actions to affect
+ Change multicolumn <link linkend="sql-createtable"><literal>ON UPDATE
+ SET NULL/SET DEFAULT</literal></link> foreign key actions to affect
all columns of the constraint, not just those changed in the
- <command>UPDATE</> (Tom Lane)
+ <command>UPDATE</command> (Tom Lane)
</para>
<para>
Previously, we would set only those referencing columns that
correspond to referenced columns that were changed by
- the <command>UPDATE</>. This was what was required by SQL-92,
+ the <command>UPDATE</command>. This was what was required by SQL-92,
but more recent editions of the SQL standard specify the new behavior.
</para>
</listitem>
<listitem>
<para>
Force cached plans to be replanned if the <link
- linkend="guc-search-path"><varname>search_path</></link> changes
+ linkend="guc-search-path"><varname>search_path</varname></link> changes
(Tom Lane)
</para>
<para>
Previously, cached plans already generated in the current session were
not redone if the query was re-executed with a
- new <varname>search_path</> setting, resulting in surprising behavior.
+ new <varname>search_path</varname> setting, resulting in surprising behavior.
</para>
</listitem>
<listitem>
<para>
Fix <link
- linkend="functions-formatting-table"><function>to_number()</></link>
+ linkend="functions-formatting-table"><function>to_number()</function></link>
to properly handle a period used as a thousands separator (Tom Lane)
</para>
<para>
Previously, a period was considered to be a decimal point even when
- the locale says it isn't and the <literal>D</> format code is used to
+ the locale says it isn't and the <literal>D</literal> format code is used to
specify use of the locale-specific decimal point. This resulted in
- wrong answers if <literal>FM</> format was also used.
+ wrong answers if <literal>FM</literal> format was also used.
</para>
</listitem>
<listitem>
<para>
- Fix <literal>STRICT</> non-set-returning functions that have
+ Fix <literal>STRICT</literal> non-set-returning functions that have
set-returning functions in their arguments to properly return null
rows (Tom Lane)
</para>
<listitem>
<para>
- Store <link linkend="wal"><acronym>WAL</></link> in a continuous
+ Store <link linkend="wal"><acronym>WAL</acronym></link> in a continuous
stream, rather than skipping the last 16MB segment every 4GB
(Heikki Linnakangas)
</para>
<para>
- Previously, <acronym>WAL</> files with names ending in <literal>FF</>
- were not used because of this skipping. If you have <acronym>WAL</>
+ Previously, <acronym>WAL</acronym> files with names ending in <literal>FF</literal>
+ were not used because of this skipping. If you have <acronym>WAL</acronym>
backup or restore scripts that took this behavior into account, they
will need to be adjusted.
</para>
<listitem>
<para>
In <link
- linkend="catalog-pg-constraint"><structname>pg_constraint.confmatchtype</></link>,
- store the default foreign key match type (non-<literal>FULL</>,
- non-<literal>PARTIAL</>) as <literal>s</> for <quote>simple</>
+ linkend="catalog-pg-constraint"><structname>pg_constraint.confmatchtype</structname></link>,
+ store the default foreign key match type (non-<literal>FULL</literal>,
+ non-<literal>PARTIAL</literal>) as <literal>s</literal> for <quote>simple</quote>
(Tom Lane)
</para>
<para>
- Previously this case was represented by <literal>u</>
- for <quote>unspecified</>.
+ Previously this case was represented by <literal>u</literal>
+ for <quote>unspecified</quote>.
</para>
</listitem>
<para>
This change improves concurrency and reduces the probability of
deadlocks when updating tables involved in a foreign-key constraint.
- <command>UPDATE</>s that do not change any columns referenced in a
- foreign key now take the new <literal>NO KEY UPDATE</> lock mode on
- the row, while foreign key checks use the new <literal>KEY SHARE</>
- lock mode, which does not conflict with <literal>NO KEY UPDATE</>.
+ <command>UPDATE</command>s that do not change any columns referenced in a
+ foreign key now take the new <literal>NO KEY UPDATE</literal> lock mode on
+ the row, while foreign key checks use the new <literal>KEY SHARE</literal>
+ lock mode, which does not conflict with <literal>NO KEY UPDATE</literal>.
So there is no blocking unless a foreign-key column is changed.
</para>
</listitem>
<listitem>
<para>
Add configuration variable <link
- linkend="guc-lock-timeout"><varname>lock_timeout</></link> to
+ linkend="guc-lock-timeout"><varname>lock_timeout</varname></link> to
allow limiting how long a session will wait to acquire any one lock
(Zoltán Böszörményi)
</para>
<listitem>
<para>
- Add <link linkend="rangetypes-indexing"><acronym>SP-GiST</></link>
+ Add <link linkend="rangetypes-indexing"><acronym>SP-GiST</acronym></link>
support for range data types (Alexander Korotkov)
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="GiST"><acronym>GiST</></link> indexes to be
+ Allow <link linkend="gist"><acronym>GiST</acronym></link> indexes to be
unlogged (Jeevan Chalke)
</para>
</listitem>
<listitem>
<para>
- Improve performance of <acronym>GiST</> index insertion by randomizing
+ Improve performance of <acronym>GiST</acronym> index insertion by randomizing
the choice of which page to descend to when there are multiple equally
good alternatives (Heikki Linnakangas)
</para>
<listitem>
<para>
Improve optimizer's hash table size estimate for
- doing <literal>DISTINCT</> via hash aggregation (Tom Lane)
+ doing <literal>DISTINCT</literal> via hash aggregation (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="SQL-COPY"><command>COPY FREEZE</></link>
+ Add <link linkend="sql-copy"><command>COPY FREEZE</command></link>
option to avoid the overhead of marking tuples as frozen later
(Simon Riggs, Jeff Davis)
</para>
<listitem>
<para>
Improve performance of <link
- linkend="datatype-numeric"><type>NUMERIC</></link> calculations
+ linkend="datatype-numeric"><type>NUMERIC</type></link> calculations
(Kyotaro Horiguchi)
</para>
</listitem>
<listitem>
<para>
Improve synchronization of sessions waiting for <link
- linkend="guc-commit-delay"><varname>commit_delay</></link>
+ linkend="guc-commit-delay"><varname>commit_delay</varname></link>
(Peter Geoghegan)
</para>
<para>
- This greatly improves the usefulness of <varname>commit_delay</>.
+ This greatly improves the usefulness of <varname>commit_delay</varname>.
</para>
</listitem>
<listitem>
<para>
Improve performance of the <link
- linkend="SQL-CREATETABLE"><command>CREATE TEMPORARY TABLE ... ON
- COMMIT DELETE ROWS</></link> option by not truncating such temporary
+ linkend="sql-createtable"><command>CREATE TEMPORARY TABLE ... ON
+ COMMIT DELETE ROWS</command></link> option by not truncating such temporary
tables in transactions that haven't touched any temporary tables
(Heikki Linnakangas)
</para>
<para>
This speeds up lock bookkeeping at statement completion in
multi-statement transactions that hold many locks; it is particularly
- useful for <application>pg_dump</>.
+ useful for <application>pg_dump</application>.
</para>
</listitem>
<para>
This speeds up sessions that create many tables in successive
- small transactions, such as a <application>pg_restore</> run.
+ small transactions, such as a <application>pg_restore</application> run.
</para>
</listitem>
<para>
The checksum option can be set during <link
- linkend="APP-INITDB">initdb</link>.
+ linkend="app-initdb">initdb</link>.
</para>
</listitem>
<listitem>
<para>
When an authentication failure occurs, log the relevant
- <link linkend="auth-pg-hba-conf"><filename>pg_hba.conf</></link>
+ <link linkend="auth-pg-hba-conf"><filename>pg_hba.conf</filename></link>
line, to ease debugging of unintended failures
(Magnus Hagander)
</para>
<listitem>
<para>
- Improve <link linkend="auth-ldap"><acronym>LDAP</></link> error
+ Improve <link linkend="auth-ldap"><acronym>LDAP</acronym></link> error
reporting and documentation (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add support for specifying <acronym>LDAP</> authentication parameters
- in <acronym>URL</> format, per RFC 4516 (Peter Eisentraut)
+ Add support for specifying <acronym>LDAP</acronym> authentication parameters
+ in <acronym>URL</acronym> format, per RFC 4516 (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Change the <link
- linkend="guc-ssl-ciphers"><varname>ssl_ciphers</></link> parameter
- to start with <literal>DEFAULT</>, rather than <literal>ALL</>,
+ linkend="guc-ssl-ciphers"><varname>ssl_ciphers</varname></link> parameter
+ to start with <literal>DEFAULT</literal>, rather than <literal>ALL</literal>,
then remove insecure ciphers (Magnus Hagander)
</para>
<listitem>
<para>
Parse and load <link
- linkend="auth-username-maps"><filename>pg_ident.conf</></link>
+ linkend="auth-username-maps"><filename>pg_ident.conf</filename></link>
once, not during each connection (Amit Kapila)
</para>
<para>
- This is similar to how <filename>pg_hba.conf</> is processed.
+ This is similar to how <filename>pg_hba.conf</filename> is processed.
</para>
</listitem>
</para>
<para>
- On Unix-like systems, <function>mmap()</> is now used for most
- of <productname>PostgreSQL</>'s shared memory. For most users, this
+ On Unix-like systems, <function>mmap()</function> is now used for most
+ of <productname>PostgreSQL</productname>'s shared memory. For most users, this
will eliminate any need to adjust kernel parameters for shared memory.
</para>
</listitem>
<para>
The configuration parameter
- <varname>unix_socket_directory</> is replaced by <link
- linkend="guc-unix-socket-directories"><varname>unix_socket_directories</></link>,
+ <varname>unix_socket_directory</varname> is replaced by <link
+ linkend="guc-unix-socket-directories"><varname>unix_socket_directories</varname></link>,
which accepts a list of directories.
</para>
</listitem>
<para>
Such a directory is specified with <link
- linkend="config-includes"><varname>include_dir</></link> in the server
+ linkend="config-includes"><varname>include_dir</varname></link> in the server
configuration file.
</para>
</listitem>
<listitem>
<para>
Increase the maximum <link
- linkend="APP-INITDB">initdb</link>-configured value for <link
- linkend="guc-shared-buffers"><varname>shared_buffers</></link>
+ linkend="app-initdb">initdb</link>-configured value for <link
+ linkend="guc-shared-buffers"><varname>shared_buffers</varname></link>
to 128MB (Robert Haas)
</para>
<para>
This is the maximum value that initdb will attempt to set in <link
- linkend="config-setting-configuration-file"><filename>postgresql.conf</></link>;
+ linkend="config-setting-configuration-file"><filename>postgresql.conf</filename></link>;
the previous maximum was 32MB.
</para>
</listitem>
<listitem>
<para>
Remove the <link linkend="guc-external-pid-file">external
- <acronym>PID</> file</link>, if any, on postmaster exit
+ <acronym>PID</acronym> file</link>, if any, on postmaster exit
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add <acronym>SQL</> functions <link
- linkend="functions-admin-backup"><function>pg_is_in_backup()</></link>
+ Add <acronym>SQL</acronym> functions <link
+ linkend="functions-admin-backup"><function>pg_is_in_backup()</function></link>
and <link
- linkend="functions-admin-backup"><function>pg_backup_start_time()</></link>
+ linkend="functions-admin-backup"><function>pg_backup_start_time()</function></link>
(Gilles Darold)
</para>
<listitem>
<para>
Improve performance of streaming log shipping with <link
- linkend="guc-synchronous-commit"><varname>synchronous_commit</></link>
+ linkend="guc-synchronous-commit"><varname>synchronous_commit</varname></link>
disabled (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Add the last checkpoint's redo location to <link
- linkend="APP-PGCONTROLDATA"><application>pg_controldata</></link>'s
+ linkend="app-pgcontroldata"><application>pg_controldata</application></link>'s
output (Fujii Masao)
</para>
<para>
- This information is useful for determining which <acronym>WAL</>
+ This information is useful for determining which <acronym>WAL</acronym>
files are needed for restore.
</para>
</listitem>
<listitem>
<para>
Allow tools like <link
- linkend="app-pgreceivewal"><application>pg_receivexlog</></link>
+ linkend="app-pgreceivewal"><application>pg_receivexlog</application></link>
to run on computers with different architectures (Heikki
Linnakangas)
</para>
<listitem>
<para>
Make <link
- linkend="app-pgbasebackup"><application>pg_basebackup</></link>
- <option>--write-recovery-conf</> output a
- minimal <filename>recovery.conf</> file (Zoltán
+ linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
+ <option>--write-recovery-conf</option> output a
+ minimal <filename>recovery.conf</filename> file (Zoltán
Böszörményi, Magnus Hagander)
</para>
<listitem>
<para>
Allow <link
- linkend="app-pgreceivewal"><application>pg_receivexlog</></link>
+ linkend="app-pgreceivewal"><application>pg_receivexlog</application></link>
and <link
- linkend="app-pgbasebackup"><application>pg_basebackup</></link>
- <option>--xlog-method</> to handle streaming timeline switches
+ linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
+ <option>--xlog-method</option> to handle streaming timeline switches
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Add <link
- linkend="guc-wal-receiver-timeout"><varname>wal_receiver_timeout</></link>
- parameter to control the <acronym>WAL</> receiver's timeout
+ linkend="guc-wal-receiver-timeout"><varname>wal_receiver_timeout</varname></link>
+ parameter to control the <acronym>WAL</acronym> receiver's timeout
(Amit Kapila)
</para>
<listitem>
<para>
- Change the <link linkend="wal"><acronym>WAL</></link> record format to
+ Change the <link linkend="wal"><acronym>WAL</acronym></link> record format to
allow splitting the record header across pages (Heikki Linnakangas)
</para>
<listitem>
<para>
- Implement <acronym>SQL</>-standard <link
- linkend="queries-lateral"><literal>LATERAL</></link> option for
- <literal>FROM</>-clause subqueries and function calls (Tom Lane)
+ Implement <acronym>SQL</acronym>-standard <link
+ linkend="queries-lateral"><literal>LATERAL</literal></link> option for
+ <literal>FROM</literal>-clause subqueries and function calls (Tom Lane)
</para>
<para>
- This feature allows subqueries and functions in <literal>FROM</> to
- reference columns from other tables in the <literal>FROM</>
- clause. The <literal>LATERAL</> keyword is optional for functions.
+ This feature allows subqueries and functions in <literal>FROM</literal> to
+ reference columns from other tables in the <literal>FROM</literal>
+ clause. The <literal>LATERAL</literal> keyword is optional for functions.
</para>
</listitem>
<listitem>
<para>
Add support for piping <link
- linkend="SQL-COPY"><command>COPY</></link> and <link
- linkend="APP-PSQL"><application>psql</></link> <command>\copy</>
+ linkend="sql-copy"><command>COPY</command></link> and <link
+ linkend="app-psql"><application>psql</application></link> <command>\copy</command>
data to/from an external program (Etsuro Fujita)
</para>
</listitem>
<listitem>
<para>
Allow a multirow <link
- linkend="SQL-VALUES"><literal>VALUES</></link> clause in a rule
- to reference <literal>OLD</>/<literal>NEW</> (Tom Lane)
+ linkend="sql-values"><literal>VALUES</literal></link> clause in a rule
+ to reference <literal>OLD</literal>/<literal>NEW</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="SQL-CREATEFOREIGNDATAWRAPPER">foreign data
+ Allow <link linkend="sql-createforeigndatawrapper">foreign data
wrappers</link> to support writes (inserts/updates/deletes) on foreign
tables (KaiGai Kohei)
</para>
<listitem>
<para>
- Add <link linkend="SQL-CREATESCHEMA"><command>CREATE SCHEMA ... IF
- NOT EXISTS</></link> clause (Fabrízio de Royes Mello)
+ Add <link linkend="sql-createschema"><command>CREATE SCHEMA ... IF
+ NOT EXISTS</command></link> clause (Fabrízio de Royes Mello)
</para>
</listitem>
<listitem>
<para>
- Make <link linkend="SQL-REASSIGN-OWNED"><command>REASSIGN
- OWNED</></link> also change ownership of shared objects
+ Make <link linkend="sql-reassign-owned"><command>REASSIGN
+ OWNED</command></link> also change ownership of shared objects
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Make <link linkend="sql-createaggregate"><command>CREATE
- AGGREGATE</></link> complain if the given initial value string is not
+ AGGREGATE</command></link> complain if the given initial value string is not
valid input for the transition datatype (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Suppress <link linkend="SQL-CREATETABLE"><command>CREATE
- TABLE</></link>'s messages about implicit index and sequence creation
+ Suppress <link linkend="sql-createtable"><command>CREATE
+ TABLE</command></link>'s messages about implicit index and sequence creation
(Robert Haas)
</para>
<para>
- These messages now appear at <literal>DEBUG1</> verbosity, so that
+ These messages now appear at <literal>DEBUG1</literal> verbosity, so that
they will not be shown by default.
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="SQL-DROPTABLE"><command>DROP TABLE IF
- EXISTS</></link> to succeed when a non-existent schema is specified
+ Allow <link linkend="sql-droptable"><command>DROP TABLE IF
+ EXISTS</command></link> to succeed when a non-existent schema is specified
in the table name (Bruce Momjian)
</para>
</itemizedlist>
<sect4>
- <title><command>ALTER</></title>
+ <title><command>ALTER</command></title>
<itemizedlist>
<listitem>
<para>
- Support <literal>IF NOT EXISTS</> option in <link
- linkend="SQL-ALTERTYPE"><command>ALTER TYPE ... ADD VALUE</></link>
+ Support <literal>IF NOT EXISTS</literal> option in <link
+ linkend="sql-altertype"><command>ALTER TYPE ... ADD VALUE</command></link>
(Andrew Dunstan)
</para>
<listitem>
<para>
- Add <link linkend="SQL-ALTERROLE"><command>ALTER ROLE ALL
- SET</></link> to establish settings for all users (Peter Eisentraut)
+ Add <link linkend="sql-alterrole"><command>ALTER ROLE ALL
+ SET</command></link> to establish settings for all users (Peter Eisentraut)
</para>
<para>
This allows settings to apply to all users in all databases. <link
- linkend="SQL-ALTERDATABASE"><command>ALTER DATABASE SET</></link>
+ linkend="sql-alterdatabase"><command>ALTER DATABASE SET</command></link>
already allowed addition of settings for all users in a single
- database. <filename>postgresql.conf</> has a similar effect.
+ database. <filename>postgresql.conf</filename> has a similar effect.
</para>
</listitem>
<listitem>
<para>
- Add support for <link linkend="SQL-ALTERRULE"><command>ALTER RULE
- ... RENAME</></link> (Ali Dar)
+ Add support for <link linkend="sql-alterrule"><command>ALTER RULE
+ ... RENAME</command></link> (Ali Dar)
</para>
</listitem>
</sect4>
<sect4>
- <title><link linkend="rules-views"><command>VIEWs</></link></title>
+ <title><link linkend="rules-views"><command>VIEWs</command></link></title>
<itemizedlist>
<listitem>
<para>
- Add <link linkend="SQL-CREATEMATERIALIZEDVIEW">materialized
+ Add <link linkend="sql-creatematerializedview">materialized
views</link> (Kevin Grittner)
</para>
<listitem>
<para>
Make simple views <link
- linkend="SQL-CREATEVIEW-updatable-views">auto-updatable</link>
+ linkend="sql-createview-updatable-views">auto-updatable</link>
(Dean Rasheed)
</para>
Simple views that reference some or all columns from a
single base table are now updatable by default. More
complex views can be made updatable using <link
- linkend="SQL-CREATETRIGGER"><literal>INSTEAD OF</></link> triggers
- or <link linkend="SQL-CREATERULE"><literal>INSTEAD</></link> rules.
+ linkend="sql-createtrigger"><literal>INSTEAD OF</literal></link> triggers
+ or <link linkend="sql-createrule"><literal>INSTEAD</literal></link> rules.
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="SQL-CREATEVIEW"><command>CREATE RECURSIVE
- VIEW</></link> syntax (Peter Eisentraut)
+ Add <link linkend="sql-createview"><command>CREATE RECURSIVE
+ VIEW</command></link> syntax (Peter Eisentraut)
</para>
<para>
Internally this is translated into <command>CREATE VIEW ... WITH
- RECURSIVE ...</>.
+ RECURSIVE ...</command>.
</para>
</listitem>
<listitem>
<para>
- Increase the maximum size of <link linkend="largeObjects">large
+ Increase the maximum size of <link linkend="largeobjects">large
objects</link> from 2GB to 4TB (Nozomi Anzai, Yugo Nagata)
</para>
<listitem>
<para>
Allow text <link linkend="datatype-timezones">timezone
- designations</link>, e.g. <quote>America/Chicago</>, in the
- <quote>T</> field of <acronym>ISO</>-format <type>timestamptz</type>
+ designations</link>, e.g. <quote>America/Chicago</quote>, in the
+ <quote>T</quote> field of <acronym>ISO</acronym>-format <type>timestamptz</type>
input (Bruce Momjian)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><link linkend="datatype-json"><type>JSON</></link></title>
+ <title><link linkend="datatype-json"><type>JSON</type></link></title>
<itemizedlist>
<listitem>
<para>
Add <link linkend="functions-json">operators and functions</link>
- to extract elements from <type>JSON</> values (Andrew Dunstan)
+ to extract elements from <type>JSON</type> values (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Allow <type>JSON</> values to be <link
+ Allow <type>JSON</type> values to be <link
linkend="functions-json">converted into records</link>
(Andrew Dunstan)
</para>
<listitem>
<para>
Add <link linkend="functions-json">functions</link> to convert
- scalars, records, and <type>hstore</> values to <type>JSON</> (Andrew
+ scalars, records, and <type>hstore</type> values to <type>JSON</type> (Andrew
Dunstan)
</para>
</listitem>
<listitem>
<para>
Add <link
- linkend="array-functions-table"><function>array_remove()</></link>
+ linkend="array-functions-table"><function>array_remove()</function></link>
and <link
- linkend="array-functions-table"><function>array_replace()</></link>
+ linkend="array-functions-table"><function>array_replace()</function></link>
functions (Marco Nenciarini, Gabriele Bartolini)
</para>
</listitem>
<listitem>
<para>
Allow <link
- linkend="functions-string-other"><function>concat()</></link>
+ linkend="functions-string-other"><function>concat()</function></link>
and <link
- linkend="functions-string-format"><function>format()</></link>
- to properly expand <literal>VARIADIC</>-labeled arguments
+ linkend="functions-string-format"><function>format()</function></link>
+ to properly expand <literal>VARIADIC</literal>-labeled arguments
(Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Improve <link
- linkend="functions-string-format"><function>format()</></link>
+ linkend="functions-string-format"><function>format()</function></link>
to provide field width and left/right alignment options (Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Make <link
- linkend="functions-formatting-table"><function>to_char()</></link>,
+ linkend="functions-formatting-table"><function>to_char()</function></link>,
<link
- linkend="functions-formatting-table"><function>to_date()</></link>,
+ linkend="functions-formatting-table"><function>to_date()</function></link>,
and <link
- linkend="functions-formatting-table"><function>to_timestamp()</></link>
+ linkend="functions-formatting-table"><function>to_timestamp()</function></link>
handle negative (BC) century values properly
(Bruce Momjian)
</para>
<para>
Previously the behavior was either wrong or inconsistent
- with positive/<acronym>AD</> handling, e.g. with the format mask
- <quote>IYYY-IW-DY</>.
+ with positive/<acronym>AD</acronym> handling, e.g. with the format mask
+ <quote>IYYY-IW-DY</quote>.
</para>
</listitem>
<listitem>
<para>
Make <link
- linkend="functions-formatting-table"><function>to_date()</></link>
+ linkend="functions-formatting-table"><function>to_date()</function></link>
and <link
- linkend="functions-formatting-table"><function>to_timestamp()</></link>
- return proper results when mixing <acronym>ISO</> and Gregorian
+ linkend="functions-formatting-table"><function>to_timestamp()</function></link>
+ return proper results when mixing <acronym>ISO</acronym> and Gregorian
week/day designations (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Cause <link
- linkend="functions-info-catalog-table"><function>pg_get_viewdef()</></link>
- to start a new line by default after each <literal>SELECT</> target
- list entry and <literal>FROM</> entry (Marko Tiikkaja)
+ linkend="functions-info-catalog-table"><function>pg_get_viewdef()</function></link>
+ to start a new line by default after each <literal>SELECT</literal> target
+ list entry and <literal>FROM</literal> entry (Marko Tiikkaja)
</para>
<para>
This reduces line length in view printing, for instance in <link
- linkend="APP-PGDUMP"><application>pg_dump</></link> output.
+ linkend="app-pgdump"><application>pg_dump</application></link> output.
</para>
</listitem>
<listitem>
<para>
- Fix <function>map_sql_value_to_xml_value()</> to print values of
+ Fix <function>map_sql_value_to_xml_value()</function> to print values of
domain types the same way their base type would be printed
(Pavel Stehule)
</para>
<para>
There are special formatting rules for certain built-in types such as
- <type>boolean</>; these rules now also apply to domains over these
+ <type>boolean</type>; these rules now also apply to domains over these
types.
</para>
</listitem>
<listitem>
<para>
- Allow PL/pgSQL to use <literal>RETURN</> with a composite-type
+ Allow PL/pgSQL to use <literal>RETURN</literal> with a composite-type
expression (Asif Rehman)
</para>
<para>
Previously, in a function returning a composite type,
- <literal>RETURN</> could only reference a variable of that type.
+ <literal>RETURN</literal> could only reference a variable of that type.
</para>
</listitem>
<listitem>
<para>
Allow PL/pgSQL to access the number of rows processed by
- <link linkend="SQL-COPY"><command>COPY</></link> (Pavel Stehule)
+ <link linkend="sql-copy"><command>COPY</command></link> (Pavel Stehule)
</para>
<para>
- A <command>COPY</> executed in a PL/pgSQL function now updates the
+ A <command>COPY</command> executed in a PL/pgSQL function now updates the
value retrieved by <link
linkend="plpgsql-statements-diagnostics"><command>GET DIAGNOSTICS
- x = ROW_COUNT</></link>.
+ x = ROW_COUNT</command></link>.
</para>
</listitem>
<listitem>
<para>
- Handle <link linkend="spi"><acronym>SPI</></link> errors raised
- explicitly (with PL/Python's <literal>RAISE</>) the same as
- internal <acronym>SPI</> errors (Oskari Saarenmaa and Jan Urbanski)
+ Handle <link linkend="spi"><acronym>SPI</acronym></link> errors raised
+ explicitly (with PL/Python's <literal>RAISE</literal>) the same as
+ internal <acronym>SPI</acronym> errors (Oskari Saarenmaa and Jan Urbanski)
</para>
</listitem>
<listitem>
<para>
- Prevent leakage of <acronym>SPI</> tuple tables during subtransaction
+ Prevent leakage of <acronym>SPI</acronym> tuple tables during subtransaction
abort (Tom Lane)
</para>
of such tuple tables and release them manually in error-recovery code.
Failure to do so caused a number of transaction-lifespan memory leakage
issues in PL/pgSQL and perhaps other SPI clients. <link
- linkend="spi-spi-freetupletable"><function>SPI_freetuptable()</></link>
+ linkend="spi-spi-freetupletable"><function>SPI_freetuptable()</function></link>
now protects itself against multiple freeing requests, so any existing
code that did take care to clean up shouldn't be broken by this change.
</para>
<listitem>
<para>
- Allow <acronym>SPI</> functions to access the number of rows processed
- by <link linkend="SQL-COPY"><command>COPY</></link> (Pavel Stehule)
+ Allow <acronym>SPI</acronym> functions to access the number of rows processed
+ by <link linkend="sql-copy"><command>COPY</command></link> (Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Add command-line utility <link
- linkend="app-pg-isready"><application>pg_isready</></link> to
+ linkend="app-pg-isready"><application>pg_isready</application></link> to
check if the server is ready to accept connections (Phil Sorber)
</para>
</listitem>
<listitem>
<para>
- Support multiple <option>--table</> arguments for <link
- linkend="APP-PGRESTORE"><application>pg_restore</></link>,
- <link linkend="APP-CLUSTERDB"><application>clusterdb</></link>,
- <link linkend="APP-REINDEXDB"><application>reindexdb</></link>,
- and <link linkend="APP-VACUUMDB"><application>vacuumdb</></link>
+ Support multiple <option>--table</option> arguments for <link
+ linkend="app-pgrestore"><application>pg_restore</application></link>,
+ <link linkend="app-clusterdb"><application>clusterdb</application></link>,
+ <link linkend="app-reindexdb"><application>reindexdb</application></link>,
+ and <link linkend="app-vacuumdb"><application>vacuumdb</application></link>
(Josh Kupershmidt)
</para>
<para>
This is similar to the way <link
- linkend="APP-PGDUMP"><application>pg_dump</></link>'s
- <option>--table</> option works.
+ linkend="app-pgdump"><application>pg_dump</application></link>'s
+ <option>--table</option> option works.
</para>
</listitem>
<listitem>
<para>
- Add <option>--dbname</> option to <link
- linkend="APP-PG-DUMPALL"><application>pg_dumpall</></link>, <link
- linkend="app-pgbasebackup"><application>pg_basebackup</></link>, and
+ Add <option>--dbname</option> option to <link
+ linkend="app-pg-dumpall"><application>pg_dumpall</application></link>, <link
+ linkend="app-pgbasebackup"><application>pg_basebackup</application></link>, and
<link
- linkend="app-pgreceivewal"><application>pg_receivexlog</></link>
+ linkend="app-pgreceivewal"><application>pg_receivexlog</application></link>
to allow specifying a connection string (Amit Kapila)
</para>
</listitem>
<listitem>
<para>
Add libpq function <link
- linkend="libpq-pqconninfo"><function>PQconninfo()</></link>
+ linkend="libpq-pqconninfo"><function>PQconninfo()</function></link>
to return connection information (Zoltán
Böszörményi, Magnus Hagander)
</para>
</itemizedlist>
<sect4>
- <title><link linkend="APP-PSQL"><application>psql</></link></title>
+ <title><link linkend="app-psql"><application>psql</application></link></title>
<itemizedlist>
<listitem>
<para>
- Adjust function cost settings so <application>psql</> tab
+ Adjust function cost settings so <application>psql</application> tab
completion and pattern searching are more efficient (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Improve <application>psql</>'s tab completion coverage (Jeff Janes,
+ Improve <application>psql</application>'s tab completion coverage (Jeff Janes,
Dean Rasheed, Peter Eisentraut, Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
- Allow the <application>psql</> <option>--single-transaction</>
+ Allow the <application>psql</application> <option>--single-transaction</option>
mode to work when reading from standard input (Fabien Coelho,
Robert Haas)
</para>
<listitem>
<para>
- Remove <application>psql</> warning when connecting to an older
+ Remove <application>psql</application> warning when connecting to an older
server (Peter Eisentraut)
</para>
<para>
A warning is still issued when connecting to a server of a newer major
- version than <application>psql</>'s.
+ version than <application>psql</application>'s.
</para>
</listitem>
</itemizedlist>
<sect5>
- <title><link linkend="APP-PSQL-meta-commands">Backslash Commands</link></title>
+ <title><link linkend="app-psql-meta-commands">Backslash Commands</link></title>
<itemizedlist>
<listitem>
<para>
- Add <application>psql</> command <command>\watch</> to repeatedly
+ Add <application>psql</application> command <command>\watch</command> to repeatedly
execute a SQL command (Will Leinweber)
</para>
</listitem>
<listitem>
<para>
- Add <application>psql</> command <command>\gset</> to store query
- results in <application>psql</> variables (Pavel Stehule)
+ Add <application>psql</application> command <command>\gset</command> to store query
+ results in <application>psql</application> variables (Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
- Add <acronym>SSL</> information to <application>psql</>'s
- <command>\conninfo</> command (Alastair Turner)
+ Add <acronym>SSL</acronym> information to <application>psql</application>'s
+ <command>\conninfo</command> command (Alastair Turner)
</para>
</listitem>
<listitem>
<para>
- Add <quote>Security</> column to <application>psql</>'s
- <command>\df+</> output (Jon Erdman)
+ Add <quote>Security</quote> column to <application>psql</application>'s
+ <command>\df+</command> output (Jon Erdman)
</para>
</listitem>
<listitem>
<para>
- Allow <application>psql</> command <command>\l</> to accept a database
+ Allow <application>psql</application> command <command>\l</command> to accept a database
name pattern (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, do not allow <command>\connect</> to
+ In <application>psql</application>, do not allow <command>\connect</command> to
use defaults if there is no active connection (Bruce Momjian)
</para>
<listitem>
<para>
Properly reset state after failure of a SQL command executed with
- <application>psql</>'s <literal>\g</> <replaceable>file</>
+ <application>psql</application>'s <literal>\g</literal> <replaceable>file</replaceable>
(Tom Lane)
</para>
<listitem>
<para>
- Add a <literal>latex-longtable</> output format to
- <application>psql</> (Bruce Momjian)
+ Add a <literal>latex-longtable</literal> output format to
+ <application>psql</application> (Bruce Momjian)
</para>
<para>
<listitem>
<para>
- Add a <literal>border=3</> output mode to the <application>psql</>
- <literal>latex</> format (Bruce Momjian)
+ Add a <literal>border=3</literal> output mode to the <application>psql</application>
+ <literal>latex</literal> format (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>'s tuples-only and expanded output modes, no
- longer emit <quote>(No rows)</> for zero rows (Peter Eisentraut)
+ In <application>psql</application>'s tuples-only and expanded output modes, no
+ longer emit <quote>(No rows)</quote> for zero rows (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>'s unaligned, expanded output mode, no longer
+ In <application>psql</application>'s unaligned, expanded output mode, no longer
print an empty line for zero rows (Peter Eisentraut)
</para>
</listitem>
</sect4>
<sect4>
- <title><link linkend="APP-PGDUMP"><application>pg_dump</></link></title>
+ <title><link linkend="app-pgdump"><application>pg_dump</application></link></title>
<itemizedlist>
<listitem>
<para>
- Add <application>pg_dump</> <option>--jobs</> option to dump tables in
+ Add <application>pg_dump</application> <option>--jobs</option> option to dump tables in
parallel (Joachim Wieland)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> output functions in a more predictable
+ Make <application>pg_dump</application> output functions in a more predictable
order (Joel Jacobson)
</para>
</listitem>
<listitem>
<para>
- Fix tar files emitted by <application>pg_dump</>
- to be <acronym>POSIX</> conformant (Brian Weaver, Tom Lane)
+ Fix tar files emitted by <application>pg_dump</application>
+ to be <acronym>POSIX</acronym> conformant (Brian Weaver, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Add <option>--dbname</> option to <application>pg_dump</>, for
+ Add <option>--dbname</option> option to <application>pg_dump</application>, for
consistency with other client commands (Heikki Linnakangas)
</para>
</sect4>
<sect4>
- <title><link linkend="APP-INITDB"><application>initdb</></link></title>
+ <title><link linkend="app-initdb"><application>initdb</application></link></title>
<itemizedlist>
<para>
This insures data integrity in event of a system crash shortly after
- initdb. This can be disabled by using <option>--nosync</>.
+ initdb. This can be disabled by using <option>--nosync</option>.
</para>
</listitem>
<listitem>
<para>
- Add initdb <option>--sync-only</> option to sync the data directory to durable
+ Add initdb <option>--sync-only</option> option to sync the data directory to durable
storage (Bruce Momjian)
</para>
<para>
This is used by <link
- linkend="pgupgrade"><application>pg_upgrade</></link>.
+ linkend="pgupgrade"><application>pg_upgrade</application></link>.
</para>
</listitem>
<listitem>
<para>
- Create a centralized timeout <acronym>API</> (Zoltán
+ Create a centralized timeout <acronym>API</acronym> (Zoltán
Böszörményi)
</para>
</listitem>
<listitem>
<para>
- Create libpgcommon and move <function>pg_malloc()</> and other
+ Create libpgcommon and move <function>pg_malloc()</function> and other
functions there (Álvaro Herrera, Andres Freund)
</para>
<listitem>
<para>
- Use <literal>SA_RESTART</> for all signals,
- including <literal>SIGALRM</> (Tom Lane)
+ Use <literal>SA_RESTART</literal> for all signals,
+ including <literal>SIGALRM</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Ensure that the correct text domain is used when
- translating <function>errcontext()</> messages
+ translating <function>errcontext()</function> messages
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Provide support for <quote>static assertions</> that will fail at
+ Provide support for <quote>static assertions</quote> that will fail at
compile time if some compile-time-constant condition is not met
(Andres Freund, Tom Lane)
</para>
<listitem>
<para>
- Support <function>Assert()</> in client-side code (Andrew Dunstan)
+ Support <function>Assert()</function> in client-side code (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Add decoration to inform the C compiler that some <function>ereport()</>
- and <function>elog()</> calls do not return (Peter Eisentraut,
+ Add decoration to inform the C compiler that some <function>ereport()</function>
+ and <function>elog()</function> calls do not return (Peter Eisentraut,
Andres Freund, Tom Lane, Heikki Linnakangas)
</para>
</listitem>
<para>
Allow options to be passed to the regression
test output comparison utility via <link
- linkend="regress-evaluation"><envar>PG_REGRESS_DIFF_OPTS</></link>
+ linkend="regress-evaluation"><envar>PG_REGRESS_DIFF_OPTS</envar></link>
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Add isolation tests for <link
- linkend="SQL-CREATEINDEX"><command>CREATE INDEX
- CONCURRENTLY</></link> (Abhijit Menon-Sen)
+ linkend="sql-createindex"><command>CREATE INDEX
+ CONCURRENTLY</command></link> (Abhijit Menon-Sen)
</para>
</listitem>
<listitem>
<para>
- Remove typedefs for <type>int2</>/<type>int4</> as they are better
- represented as <type>int16</>/<type>int32</> (Peter Eisentraut)
+ Remove typedefs for <type>int2</type>/<type>int4</type> as they are better
+ represented as <type>int16</type>/<type>int32</type> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Fix <link linkend="install">install-strip</link> on Mac <productname>OS
- X</> (Peter Eisentraut)
+ X</productname> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Remove <link linkend="configure">configure</link> flag
- <option>--disable-shared</>, as it is no longer supported
+ <option>--disable-shared</option>, as it is no longer supported
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Rewrite pgindent in <application>Perl</> (Andrew Dunstan)
+ Rewrite pgindent in <application>Perl</application> (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Provide Emacs macro to set Perl formatting to
- match <productname>PostgreSQL</>'s perltidy settings (Peter Eisentraut)
+ match <productname>PostgreSQL</productname>'s perltidy settings (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Change the way <literal>UESCAPE</> is lexed, to significantly reduce
+ Change the way <literal>UESCAPE</literal> is lexed, to significantly reduce
the size of the lexer tables (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Centralize <application>flex</> and <application>bison</>
- <application>make</> rules (Peter Eisentraut)
+ Centralize <application>flex</application> and <application>bison</application>
+ <application>make</application> rules (Peter Eisentraut)
</para>
<para>
- This is useful for <application>pgxs</> authors.
+ This is useful for <application>pgxs</application> authors.
</para>
</listitem>
<listitem>
<para>
- Change many internal backend functions to return object <type>OID</>s
+ Change many internal backend functions to return object <type>OID</type>s
rather than void (Dimitri Fontaine)
</para>
<listitem>
<para>
Add function <link
- linkend="functions-info-catalog-table"><function>pg_identify_object()</></link>
+ linkend="functions-info-catalog-table"><function>pg_identify_object()</function></link>
to produce a machine-readable description of a database object
(Álvaro Herrera)
</para>
<listitem>
<para>
- Add post-<command>ALTER</>-object server hooks (KaiGai Kohei)
+ Add post-<command>ALTER</command>-object server hooks (KaiGai Kohei)
</para>
</listitem>
<listitem>
<para>
Provide a tool to help detect timezone abbreviation changes when
- updating the <filename>src/timezone/data</> files
+ updating the <filename>src/timezone/data</filename> files
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Add <application>pkg-config</> support for <application>libpq</>
- and <application>ecpg</> libraries (Peter Eisentraut)
+ Add <application>pkg-config</application> support for <application>libpq</application>
+ and <application>ecpg</application> libraries (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Remove <filename>src/tools/backend</>, now that the content is on
- the <productname>PostgreSQL</> wiki (Bruce Momjian)
+ Remove <filename>src/tools/backend</filename>, now that the content is on
+ the <productname>PostgreSQL</productname> wiki (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Split out <link linkend="wal"><acronym>WAL</></link> reading as
+ Split out <link linkend="wal"><acronym>WAL</acronym></link> reading as
an independent facility (Heikki Linnakangas, Andres Freund)
</para>
</listitem>
<listitem>
<para>
Use a 64-bit integer to represent <link
- linkend="wal"><acronym>WAL</></link> positions
- (<structname>XLogRecPtr</>) instead of two 32-bit integers
+ linkend="wal"><acronym>WAL</acronym></link> positions
+ (<structname>XLogRecPtr</structname>) instead of two 32-bit integers
(Heikki Linnakangas)
</para>
<para>
- Generally, tools that need to read the <acronym>WAL</> format
+ Generally, tools that need to read the <acronym>WAL</acronym> format
will need to be adjusted.
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="plpython">PL/Python</link> on <productname>OS
- X</> to build against custom versions of <application>Python</>
+ X</productname> to build against custom versions of <application>Python</application>
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add a <link linkend="postgres-fdw"><productname>Postgres</> foreign
+ Add a <link linkend="postgres-fdw"><productname>Postgres</productname> foreign
data wrapper</link> contrib module to allow access to
- other <productname>Postgres</> servers (Shigeru Hanada)
+ other <productname>Postgres</productname> servers (Shigeru Hanada)
</para>
<para>
<listitem>
<para>
- Add <link linkend="pgwaldump"><application>pg_xlogdump</></link>
+ Add <link linkend="pgwaldump"><application>pg_xlogdump</application></link>
contrib program (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Add support for indexing of regular-expression searches in
- <link linkend="pgtrgm"><productname>pg_trgm</></link>
+ <link linkend="pgtrgm"><productname>pg_trgm</productname></link>
(Alexander Korotkov)
</para>
</listitem>
<listitem>
<para>
- Improve <link linkend="pgtrgm"><productname>pg_trgm</></link>'s
+ Improve <link linkend="pgtrgm"><productname>pg_trgm</productname></link>'s
handling of multibyte characters (Tom Lane)
</para>
<para>
On a platform that does not have the wcstombs() or towlower() library
functions, this could result in an incompatible change in the contents
- of <productname>pg_trgm</> indexes for non-ASCII data. In such cases,
- <command>REINDEX</> those indexes to ensure correct search results.
+ of <productname>pg_trgm</productname> indexes for non-ASCII data. In such cases,
+ <command>REINDEX</command> those indexes to ensure correct search results.
</para>
</listitem>
<listitem>
<para>
Add a <link linkend="pgstattuple">pgstattuple</link> function to report
- the size of the pending-insertions list of a <acronym>GIN</> index
+ the size of the pending-insertions list of a <acronym>GIN</acronym> index
(Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Make <link linkend="oid2name"><application>oid2name</></link>,
- <link linkend="pgbench"><application>pgbench</></link>, and
- <link linkend="vacuumlo"><application>vacuumlo</></link> set
- <varname>fallback_application_name</> (Amit Kapila)
+ Make <link linkend="oid2name"><application>oid2name</application></link>,
+ <link linkend="pgbench"><application>pgbench</application></link>, and
+ <link linkend="vacuumlo"><application>vacuumlo</application></link> set
+ <varname>fallback_application_name</varname> (Amit Kapila)
</para>
</listitem>
<listitem>
<para>
Improve output of <link
- linkend="pgtesttiming"><application>pg_test_timing</></link>
+ linkend="pgtesttiming"><application>pg_test_timing</application></link>
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Improve output of <link
- linkend="pgtestfsync"><application>pg_test_fsync</></link>
+ linkend="pgtestfsync"><application>pg_test_fsync</application></link>
(Peter Geoghegan)
</para>
</listitem>
</para>
<para>
- When using this FDW to define the target of a <application>dblink</>
+ When using this FDW to define the target of a <application>dblink</application>
connection, instead of using a hard-wired list of connection options,
- the underlying <application>libpq</> library is consulted to see what
+ the underlying <application>libpq</application> library is consulted to see what
connection options it supports.
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><link linkend="pgupgrade"><application>pg_upgrade</></link></title>
+ <title><link linkend="pgupgrade"><application>pg_upgrade</application></link></title>
<itemizedlist>
<listitem>
<para>
- Allow <application>pg_upgrade</> to do dumps and restores in
+ Allow <application>pg_upgrade</application> to do dumps and restores in
parallel (Bruce Momjian, Andrew Dunstan)
</para>
<para>
This allows parallel schema dump/restore of databases, as well as
parallel copy/link of data files per tablespace. Use the
- <option>--jobs</> option to specify the level of parallelism.
+ <option>--jobs</option> option to specify the level of parallelism.
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_upgrade</> create Unix-domain sockets in
+ Make <application>pg_upgrade</application> create Unix-domain sockets in
the current directory (Bruce Momjian, Tom Lane)
</para>
<listitem>
<para>
- Make <application>pg_upgrade</> <option>--check</> mode properly
+ Make <application>pg_upgrade</application> <option>--check</option> mode properly
detect the location of non-default socket directories (Bruce
Momjian, Tom Lane)
</para>
<listitem>
<para>
- Improve performance of <application>pg_upgrade</> for databases
+ Improve performance of <application>pg_upgrade</application> for databases
with many tables (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Improve <application>pg_upgrade</>'s logs by showing
+ Improve <application>pg_upgrade</application>'s logs by showing
executed commands (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Improve <application>pg_upgrade</>'s status display during
+ Improve <application>pg_upgrade</application>'s status display during
copy/link (Bruce Momjian)
</para>
</listitem>
</sect4>
<sect4>
- <title><link linkend="pgbench"><application>pgbench</></link></title>
+ <title><link linkend="pgbench"><application>pgbench</application></link></title>
<itemizedlist>
<listitem>
<para>
- Add <option>--foreign-keys</> option to <application>pgbench</>
+ Add <option>--foreign-keys</option> option to <application>pgbench</application>
(Jeff Janes)
</para>
<para>
This adds foreign key constraints to the standard tables created by
- <application>pgbench</>, for use in foreign key performance testing.
+ <application>pgbench</application>, for use in foreign key performance testing.
</para>
</listitem>
<listitem>
<para>
- Allow <application>pgbench</> to aggregate performance statistics
- and produce output every <option>--aggregate-interval</>
+ Allow <application>pgbench</application> to aggregate performance statistics
+ and produce output every <option>--aggregate-interval</option>
seconds (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
- Add <application>pgbench</> <option>--sampling-rate</> option
+ Add <application>pgbench</application> <option>--sampling-rate</option> option
to control the percentage of transactions logged (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
Reduce and improve the status message output of
- <application>pgbench</>'s initialization mode (Robert Haas,
+ <application>pgbench</application>'s initialization mode (Robert Haas,
Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add <application>pgbench</> <option>-q</> mode to print one output
+ Add <application>pgbench</application> <option>-q</option> mode to print one output
line every five seconds (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
- Output <application>pgbench</> elapsed and estimated remaining
+ Output <application>pgbench</application> elapsed and estimated remaining
time during initialization (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
- Allow <application>pgbench</> to use much larger scale factors,
- by changing relevant columns from <type>integer</> to <type>bigint</>
+ Allow <application>pgbench</application> to use much larger scale factors,
+ by changing relevant columns from <type>integer</type> to <type>bigint</type>
when the requested scale factor exceeds 20000
(Greg Smith)
</para>
<listitem>
<para>
- Allow <productname>EPUB</>-format documentation to be created
+ Allow <productname>EPUB</productname>-format documentation to be created
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Update <productname>FreeBSD</> kernel configuration documentation
+ Update <productname>FreeBSD</productname> kernel configuration documentation
(Brad Davis)
</para>
</listitem>
<listitem>
<para>
- Improve <link linkend="tutorial-window"><literal>WINDOW</>
+ Improve <link linkend="tutorial-window"><literal>WINDOW</literal>
function</link> documentation (Bruce Momjian, Florian Pflug)
</para>
</listitem>
<listitem>
<para>
Add <link linkend="docguide-toolsets">instructions</link> for setting
- up the documentation tool chain on <productname>macOS</>
+ up the documentation tool chain on <productname>macOS</productname>
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Improve <link
- linkend="guc-commit-delay"><varname>commit_delay</></link>
+ linkend="guc-commit-delay"><varname>commit_delay</varname></link>
documentation (Peter Geoghegan)
</para>
</listitem>
<!-- doc/src/sgml/release-9.4.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+ <sect1 id="release-9-4-15">
+ <title>Release 9.4.15</title>
+
+ <formalpara>
+ <title>Release date:</title>
+ <para>2017-11-09</para>
+ </formalpara>
+
+ <para>
+ This release contains a variety of fixes from 9.4.14.
+ For information about new features in the 9.4 major release, see
+ <xref linkend="release-9-4">.
+ </para>
+
+ <sect2>
+ <title>Migration to Version 9.4.15</title>
+
+ <para>
+ A dump/restore is not required for those running 9.4.X.
+ </para>
+
+ <para>
+ However, if you are upgrading from a version earlier than 9.4.13,
+ see <xref linkend="release-9-4-13">.
+ </para>
+ </sect2>
+
+ <sect2>
+ <title>Changes</title>
+
+ <itemizedlist>
+
+ <listitem>
+ <para>
+ Fix crash when logical decoding is invoked from a SPI-using function,
+ in particular any function written in a PL language
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <function>json_build_array()</function>,
+ <function>json_build_object()</function>, and their <type>jsonb</type>
+ equivalents to handle explicit <literal>VARIADIC</literal> arguments
+ correctly (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Properly reject attempts to convert infinite float values to
+ type <type>numeric</type> (Tom Lane, KaiGai Kohei)
+ </para>
+
+ <para>
+ Previously the behavior was platform-dependent.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix corner-case crashes when columns have been added to the end of a
+ view (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Record proper dependencies when a view or rule
+ contains <structname>FieldSelect</structname>
+ or <structname>FieldStore</structname> expression nodes (Tom Lane)
+ </para>
+
+ <para>
+ Lack of these dependencies could allow a column or data
+ type <command>DROP</command> to go through when it ought to fail,
+ thereby causing later uses of the view or rule to get errors.
+ This patch does not do anything to protect existing views/rules,
+ only ones created in the future.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly detect hashability of range data types (Tom Lane)
+ </para>
+
+ <para>
+ The planner mistakenly assumed that any range type could be hashed
+ for use in hash joins or hash aggregation, but actually it must check
+ whether the range's subtype has hash support. This does not affect any
+ of the built-in range types, since they're all hashable anyway.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix low-probability loss of <command>NOTIFY</command> messages due to
+ XID wraparound (Marko Tiikkaja, Tom Lane)
+ </para>
+
+ <para>
+ If a session executed no queries, but merely listened for
+ notifications, for more than 2 billion transactions, it started to miss
+ some notifications from concurrently-committing transactions.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Avoid <systemitem>SIGBUS</systemitem> crash on Linux when a DSM memory
+ request exceeds the space available in <systemitem>tmpfs</systemitem>
+ (Thomas Munro)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Prevent low-probability crash in processing of nested trigger firings
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Allow <command>COPY</command>'s <literal>FREEZE</literal> option to
+ work when the transaction isolation level is <literal>REPEATABLE
+ READ</literal> or higher (Noah Misch)
+ </para>
+
+ <para>
+ This case was unintentionally broken by a previous bug fix.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly restore the umask setting when file creation fails
+ in <command>COPY</command> or <function>lo_export()</function>
+ (Peter Eisentraut)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Give a better error message for duplicate column names
+ in <command>ANALYZE</command> (Nathan Bossart)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix mis-parsing of the last line in a
+ non-newline-terminated <filename>pg_hba.conf</filename> file
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to not require user's home
+ directory to exist (Tom Lane)
+ </para>
+
+ <para>
+ In v10, failure to find the home directory while trying to
+ read <filename>~/.pgpass</filename> was treated as a hard error,
+ but it should just cause that file to not be found. Both v10 and
+ previous release branches made the same mistake when
+ reading <filename>~/.pg_service.conf</filename>, though this was less
+ obvious since that file is not sought unless a service name is
+ specified.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to guard against integer
+ overflow in the row count of a <structname>PGresult</structname>
+ (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>ecpg</application>'s handling of out-of-scope cursor
+ declarations with pointer or array variables (Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ In ecpglib, correctly handle backslashes in string literals depending
+ on whether <varname>standard_conforming_strings</varname> is set
+ (Tsunakawa Takayuki)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Make ecpglib's Informix-compatibility mode ignore fractional digits in
+ integer input strings, as expected (Gao Zengqi, Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Sync our copy of the timezone library with IANA release tzcode2017c
+ (Tom Lane)
+ </para>
+
+ <para>
+ This fixes various issues; the only one likely to be user-visible
+ is that the default DST rules for a POSIX-style zone name, if
+ no <filename>posixrules</filename> file exists in the timezone data
+ directory, now match current US law rather than what it was a dozen
+ years ago.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Update time zone data files to <application>tzdata</application>
+ release 2017c for DST law changes in Fiji, Namibia, Northern Cyprus,
+ Sudan, Tonga, and Turks & Caicos Islands, plus historical
+ corrections for Alaska, Apia, Burma, Calcutta, Detroit, Ireland,
+ Namibia, and Pago Pago.
+ </para>
+ </listitem>
+
+ </itemizedlist>
+
+ </sect2>
+ </sect1>
+
<sect1 id="release-9-4-14">
<title>Release 9.4.14</title>
<listitem>
<para>
Show foreign tables
- in <structname>information_schema</>.<structname>table_privileges</>
+ in <structname>information_schema</structname>.<structname>table_privileges</structname>
view (Peter Eisentraut)
</para>
<para>
- All other relevant <structname>information_schema</> views include
+ All other relevant <structname>information_schema</structname> views include
foreign tables, but this one ignored them.
</para>
<para>
- Since this view definition is installed by <application>initdb</>,
+ Since this view definition is installed by <application>initdb</application>,
merely upgrading will not fix the problem. If you need to fix this
in an existing installation, you can, as a superuser, do this
- in <application>psql</>:
+ in <application>psql</application>:
<programlisting>
SET search_path TO information_schema;
CREATE OR REPLACE VIEW table_privileges AS
OR grantee.rolname = 'PUBLIC');
</programlisting>
This must be repeated in each database to be fixed,
- including <literal>template0</>.
+ including <literal>template0</literal>.
</para>
</listitem>
<listitem>
<para>
Clean up handling of a fatal exit (e.g., due to receipt
- of <systemitem>SIGTERM</>) that occurs while trying to execute
- a <command>ROLLBACK</> of a failed transaction (Tom Lane)
+ of <systemitem>SIGTERM</systemitem>) that occurs while trying to execute
+ a <command>ROLLBACK</command> of a failed transaction (Tom Lane)
</para>
<para>
This situation could result in an assertion failure. In production
builds, the exit would still occur, but it would log an unexpected
- message about <quote>cannot drop active portal</>.
+ message about <quote>cannot drop active portal</quote>.
</para>
</listitem>
</para>
<para>
- Certain <command>ALTER</> commands that change the definition of a
+ Certain <command>ALTER</command> commands that change the definition of a
composite type or domain type are supposed to fail if there are any
stored values of that type in the database, because they lack the
infrastructure needed to update or check such values. Previously,
<listitem>
<para>
- Fix crash in <application>pg_restore</> when using parallel mode and
+ Fix crash in <application>pg_restore</application> when using parallel mode and
using a list file to select a subset of items to restore
(Fabrízio de Royes Mello)
</para>
<listitem>
<para>
- Change <application>ecpg</>'s parser to allow <literal>RETURNING</>
+ Change <application>ecpg</application>'s parser to allow <literal>RETURNING</literal>
clauses without attached C variables (Michael Meskes)
</para>
<para>
- This allows <application>ecpg</> programs to contain SQL constructs
- that use <literal>RETURNING</> internally (for example, inside a CTE)
+ This allows <application>ecpg</application> programs to contain SQL constructs
+ that use <literal>RETURNING</literal> internally (for example, inside a CTE)
rather than using it to define values to be returned to the client.
</para>
</listitem>
<para>
This fix avoids possible crashes of PL/Perl due to inconsistent
- assumptions about the width of <type>time_t</> values.
+ assumptions about the width of <type>time_t</type> values.
A side-effect that may be visible to extension developers is
- that <literal>_USE_32BIT_TIME_T</> is no longer defined globally
- in <productname>PostgreSQL</> Windows builds. This is not expected
- to cause problems, because type <type>time_t</> is not used
- in any <productname>PostgreSQL</> API definitions.
+ that <literal>_USE_32BIT_TIME_T</literal> is no longer defined globally
+ in <productname>PostgreSQL</productname> Windows builds. This is not expected
+ to cause problems, because type <type>time_t</type> is not used
+ in any <productname>PostgreSQL</productname> API definitions.
</para>
</listitem>
<listitem>
<para>
Further restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Noah Misch)
</para>
<para>
The fix for CVE-2017-7486 was incorrect: it allowed a user
to see the options in her own user mapping, even if she did not
- have <literal>USAGE</> permission on the associated foreign server.
+ have <literal>USAGE</literal> permission on the associated foreign server.
Such options might include a password that had been provided by the
server owner rather than the user herself.
- Since <structname>information_schema.user_mapping_options</> does not
- show the options in such cases, <structname>pg_user_mappings</>
+ Since <structname>information_schema.user_mapping_options</structname> does not
+ show the options in such cases, <structname>pg_user_mappings</structname>
should not either.
(CVE-2017-7547)
</para>
<step>
<para>
Restart the postmaster after adding <literal>allow_system_table_mods
- = true</> to <filename>postgresql.conf</>. (In versions
- supporting <command>ALTER SYSTEM</>, you can use that to make the
+ = true</literal> to <filename>postgresql.conf</filename>. (In versions
+ supporting <command>ALTER SYSTEM</command>, you can use that to make the
configuration change, but you'll still need a restart.)
</para>
</step>
<step>
<para>
- In <emphasis>each</> database of the cluster,
+ In <emphasis>each</emphasis> database of the cluster,
run the following commands as superuser:
<programlisting>
SET search_path = pg_catalog;
<step>
<para>
- Do not forget to include the <literal>template0</>
- and <literal>template1</> databases, or the vulnerability will still
- exist in databases you create later. To fix <literal>template0</>,
+ Do not forget to include the <literal>template0</literal>
+ and <literal>template1</literal> databases, or the vulnerability will still
+ exist in databases you create later. To fix <literal>template0</literal>,
you'll need to temporarily make it accept connections.
- In <productname>PostgreSQL</> 9.5 and later, you can use
+ In <productname>PostgreSQL</productname> 9.5 and later, you can use
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS true;
</programlisting>
- and then after fixing <literal>template0</>, undo that with
+ and then after fixing <literal>template0</literal>, undo that with
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS false;
</programlisting>
<step>
<para>
- Finally, remove the <literal>allow_system_table_mods</> configuration
+ Finally, remove the <literal>allow_system_table_mods</literal> configuration
setting, and again restart the postmaster.
</para>
</step>
</para>
<para>
- <application>libpq</> ignores empty password specifications, and does
+ <application>libpq</application> ignores empty password specifications, and does
not transmit them to the server. So, if a user's password has been
set to the empty string, it's impossible to log in with that password
- via <application>psql</> or other <application>libpq</>-based
+ via <application>psql</application> or other <application>libpq</application>-based
clients. An administrator might therefore believe that setting the
password to empty is equivalent to disabling password login.
- However, with a modified or non-<application>libpq</>-based client,
+ However, with a modified or non-<application>libpq</application>-based client,
logging in could be possible, depending on which authentication
method is configured. In particular the most common
- method, <literal>md5</>, accepted empty passwords.
+ method, <literal>md5</literal>, accepted empty passwords.
Change the server to reject empty passwords in all cases.
(CVE-2017-7546)
</para>
<listitem>
<para>
- Make <function>lo_put()</> check for <literal>UPDATE</> privilege on
+ Make <function>lo_put()</function> check for <literal>UPDATE</literal> privilege on
the target large object (Tom Lane, Michael Paquier)
</para>
<para>
- <function>lo_put()</> should surely require the same permissions
- as <function>lowrite()</>, but the check was missing, allowing any
+ <function>lo_put()</function> should surely require the same permissions
+ as <function>lowrite()</function>, but the check was missing, allowing any
user to change the data in a large object.
(CVE-2017-7548)
</para>
<listitem>
<para>
Fix possible creation of an invalid WAL segment when a standby is
- promoted just after it processes an <literal>XLOG_SWITCH</> WAL
+ promoted just after it processes an <literal>XLOG_SWITCH</literal> WAL
record (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix <application>walsender</> to exit promptly when client requests
+ Fix <application>walsender</application> to exit promptly when client requests
shutdown (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <systemitem>SIGHUP</> and <systemitem>SIGUSR1</> handling in
+ Fix <systemitem>SIGHUP</systemitem> and <systemitem>SIGUSR1</systemitem> handling in
walsender processes (Petr Jelinek, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix unnecessarily slow restarts of <application>walreceiver</>
+ Fix unnecessarily slow restarts of <application>walreceiver</application>
processes due to race condition in postmaster (Tom Lane)
</para>
</listitem>
<para>
Logical decoding crashed on tuples that are wider than 64KB (after
compression, but with all data in-line). The case arises only
- when <literal>REPLICA IDENTITY FULL</> is enabled for a table
+ when <literal>REPLICA IDENTITY FULL</literal> is enabled for a table
containing such tuples.
</para>
</listitem>
<listitem>
<para>
- Fix cases where an <command>INSERT</> or <command>UPDATE</> assigns
+ Fix cases where an <command>INSERT</command> or <command>UPDATE</command> assigns
to more than one element of a column that is of domain-over-array
type (Tom Lane)
</para>
<listitem>
<para>
- Allow window functions to be used in sub-<literal>SELECT</>s that
+ Allow window functions to be used in sub-<literal>SELECT</literal>s that
are within the arguments of an aggregate function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Move autogenerated array types out of the way during
- <command>ALTER ... RENAME</> (Vik Fearing)
+ <command>ALTER ... RENAME</command> (Vik Fearing)
</para>
<para>
Previously, we would rename a conflicting autogenerated array type
- out of the way during <command>CREATE</>; this fix extends that
+ out of the way during <command>CREATE</command>; this fix extends that
behavior to renaming operations.
</para>
</listitem>
<listitem>
<para>
- Ensure that <command>ALTER USER ... SET</> accepts all the syntax
- variants that <command>ALTER ROLE ... SET</> does (Peter Eisentraut)
+ Ensure that <command>ALTER USER ... SET</command> accepts all the syntax
+ variants that <command>ALTER ROLE ... SET</command> does (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Properly update dependency info when changing a datatype I/O
- function's argument or return type from <type>opaque</> to the
+ function's argument or return type from <type>opaque</type> to the
correct type (Heikki Linnakangas)
</para>
<para>
- <command>CREATE TYPE</> updates I/O functions declared in this
+ <command>CREATE TYPE</command> updates I/O functions declared in this
long-obsolete style, but it forgot to record a dependency on the
- type, allowing a subsequent <command>DROP TYPE</> to leave broken
+ type, allowing a subsequent <command>DROP TYPE</command> to leave broken
function definitions behind.
</para>
</listitem>
<listitem>
<para>
- Reduce memory usage when <command>ANALYZE</> processes
- a <type>tsvector</> column (Heikki Linnakangas)
+ Reduce memory usage when <command>ANALYZE</command> processes
+ a <type>tsvector</type> column (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix unnecessary precision loss and sloppy rounding when multiplying
- or dividing <type>money</> values by integers or floats (Tom Lane)
+ or dividing <type>money</type> values by integers or floats (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Tighten checks for whitespace in functions that parse identifiers,
- such as <function>regprocedurein()</> (Tom Lane)
+ such as <function>regprocedurein()</function> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Use relevant <literal>#define</> symbols from Perl while
- compiling <application>PL/Perl</> (Ashutosh Sharma, Tom Lane)
+ Use relevant <literal>#define</literal> symbols from Perl while
+ compiling <application>PL/Perl</application> (Ashutosh Sharma, Tom Lane)
</para>
<para>
This avoids portability problems, typically manifesting as
- a <quote>handshake</> mismatch during library load, when working with
+ a <quote>handshake</quote> mismatch during library load, when working with
recent Perl versions.
</para>
</listitem>
<listitem>
<para>
- In <application>libpq</>, reset GSS/SASL and SSPI authentication
+ In <application>libpq</application>, reset GSS/SASL and SSPI authentication
state properly after a failed connection attempt (Michael Paquier)
</para>
<listitem>
<para>
- In <application>psql</>, fix failure when <command>COPY FROM STDIN</>
+ In <application>psql</application>, fix failure when <command>COPY FROM STDIN</command>
is ended with a keyboard EOF signal and then another <command>COPY
- FROM STDIN</> is attempted (Thomas Munro)
+ FROM STDIN</command> is attempted (Thomas Munro)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_dump</> and <application>pg_restore</> to
- emit <command>REFRESH MATERIALIZED VIEW</> commands last (Tom Lane)
+ Fix <application>pg_dump</application> and <application>pg_restore</application> to
+ emit <command>REFRESH MATERIALIZED VIEW</command> commands last (Tom Lane)
</para>
<para>
<listitem>
<para>
- Improve <application>pg_dump</>/<application>pg_restore</>'s
- reporting of error conditions originating in <application>zlib</>
+ Improve <application>pg_dump</application>/<application>pg_restore</application>'s
+ reporting of error conditions originating in <application>zlib</application>
(Vladimir Kunschikov, Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> with the <option>--clean</> option to
+ Fix <application>pg_dump</application> with the <option>--clean</option> option to
drop event triggers as expected (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_dump</> to not emit invalid SQL for an empty
+ Fix <application>pg_dump</application> to not emit invalid SQL for an empty
operator class (Daniel Gustafsson)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> output to stdout on Windows (Kuntal Ghosh)
+ Fix <application>pg_dump</application> output to stdout on Windows (Kuntal Ghosh)
</para>
<para>
<listitem>
<para>
- Fix <function>pg_get_ruledef()</> to print correct output for
- the <literal>ON SELECT</> rule of a view whose columns have been
+ Fix <function>pg_get_ruledef()</function> to print correct output for
+ the <literal>ON SELECT</literal> rule of a view whose columns have been
renamed (Tom Lane)
</para>
<para>
- In some corner cases, <application>pg_dump</> relies
- on <function>pg_get_ruledef()</> to dump views, so that this error
+ In some corner cases, <application>pg_dump</application> relies
+ on <function>pg_get_ruledef()</function> to dump views, so that this error
could result in dump/reload failures.
</para>
</listitem>
<listitem>
<para>
Fix dumping of outer joins with empty constraints, such as the result
- of a <literal>NATURAL LEFT JOIN</> with no common columns (Tom Lane)
+ of a <literal>NATURAL LEFT JOIN</literal> with no common columns (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of function expressions in the <literal>FROM</> clause in
+ Fix dumping of function expressions in the <literal>FROM</literal> clause in
cases where the expression does not deparse into something that looks
like a function call (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_basebackup</> output to stdout on Windows
+ Fix <application>pg_basebackup</application> output to stdout on Windows
(Haribabu Kommi)
</para>
<listitem>
<para>
- Fix <application>pg_upgrade</> to ensure that the ending WAL record
- does not have <xref linkend="guc-wal-level"> = <literal>minimum</>
+ Fix <application>pg_upgrade</application> to ensure that the ending WAL record
+ does not have <xref linkend="guc-wal-level"> = <literal>minimum</literal>
(Bruce Momjian)
</para>
<listitem>
<para>
- In <filename>postgres_fdw</>, re-establish connections to remote
- servers after <command>ALTER SERVER</> or <command>ALTER USER
- MAPPING</> commands (Kyotaro Horiguchi)
+ In <filename>postgres_fdw</filename>, re-establish connections to remote
+ servers after <command>ALTER SERVER</command> or <command>ALTER USER
+ MAPPING</command> commands (Kyotaro Horiguchi)
</para>
<para>
<listitem>
<para>
- In <filename>postgres_fdw</>, allow cancellation of remote
+ In <filename>postgres_fdw</filename>, allow cancellation of remote
transaction control commands (Robert Haas, Rafia Sabih)
</para>
<listitem>
<para>
- Increase <literal>MAX_SYSCACHE_CALLBACKS</> to provide more room for
+ Increase <literal>MAX_SYSCACHE_CALLBACKS</literal> to provide more room for
extensions (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Always use <option>-fPIC</>, not <option>-fpic</>, when building
+ Always use <option>-fPIC</option>, not <option>-fpic</option>, when building
shared libraries with gcc (Tom Lane)
</para>
<listitem>
<para>
- In MSVC builds, handle the case where the <application>openssl</>
- library is not within a <filename>VC</> subdirectory (Andrew Dunstan)
+ In MSVC builds, handle the case where the <application>openssl</application>
+ library is not within a <filename>VC</filename> subdirectory (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- In MSVC builds, add proper include path for <application>libxml2</>
+ In MSVC builds, add proper include path for <application>libxml2</application>
header files (Andrew Dunstan)
</para>
<para>
This fixes a former need to move things around in standard Windows
- installations of <application>libxml2</>.
+ installations of <application>libxml2</application>.
</para>
</listitem>
<listitem>
<para>
In MSVC builds, recognize a Tcl library that is
- named <filename>tcl86.lib</> (Noah Misch)
+ named <filename>tcl86.lib</filename> (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- In MSVC builds, honor <literal>PROVE_FLAGS</> settings
- on <filename>vcregress.pl</>'s command line (Andrew Dunstan)
+ In MSVC builds, honor <literal>PROVE_FLAGS</literal> settings
+ on <filename>vcregress.pl</filename>'s command line (Andrew Dunstan)
</para>
</listitem>
<para>
Also, if you are using third-party replication tools that depend
- on <quote>logical decoding</>, see the fourth changelog entry below.
+ on <quote>logical decoding</quote>, see the fourth changelog entry below.
</para>
<para>
<listitem>
<para>
Restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Michael Paquier, Feike Steenbergen)
</para>
<para>
The previous coding allowed the owner of a foreign server object,
- or anyone he has granted server <literal>USAGE</> permission to,
+ or anyone he has granted server <literal>USAGE</literal> permission to,
to see the options for all user mappings associated with that server.
This might well include passwords for other users.
Adjust the view definition to match the behavior of
- <structname>information_schema.user_mapping_options</>, namely that
+ <structname>information_schema.user_mapping_options</structname>, namely that
these options are visible to the user being mapped, or if the mapping
is for <literal>PUBLIC</literal> and the current user is the server
owner, or if the current user is a superuser.
<para>
Some selectivity estimation functions in the planner will apply
user-defined operators to values obtained
- from <structname>pg_statistic</>, such as most common values and
+ from <structname>pg_statistic</structname>, such as most common values and
histogram entries. This occurs before table permissions are checked,
so a nefarious user could exploit the behavior to obtain these values
for table columns he does not have permission to read. To fix,
<listitem>
<para>
- Restore <application>libpq</>'s recognition of
- the <envar>PGREQUIRESSL</> environment variable (Daniel Gustafsson)
+ Restore <application>libpq</application>'s recognition of
+ the <envar>PGREQUIRESSL</envar> environment variable (Daniel Gustafsson)
</para>
<para>
Processing of this environment variable was unintentionally dropped
- in <productname>PostgreSQL</> 9.3, but its documentation remained.
+ in <productname>PostgreSQL</productname> 9.3, but its documentation remained.
This creates a security hazard, since users might be relying on the
environment variable to force SSL-encrypted connections, but that
would no longer be guaranteed. Restore handling of the variable,
- but give it lower priority than <envar>PGSSLMODE</>, to avoid
+ but give it lower priority than <envar>PGSSLMODE</envar>, to avoid
breaking configurations that work correctly with post-9.3 code.
(CVE-2017-7485)
</para>
<listitem>
<para>
- Fix possible corruption of <quote>init forks</> of unlogged indexes
+ Fix possible corruption of <quote>init forks</quote> of unlogged indexes
(Robert Haas, Michael Paquier)
</para>
<listitem>
<para>
- Fix incorrect reconstruction of <structname>pg_subtrans</> entries
+ Fix incorrect reconstruction of <structname>pg_subtrans</structname> entries
when a standby server replays a prepared but uncommitted two-phase
transaction (Tom Lane)
</para>
<para>
In most cases this turned out to have no visible ill effects, but in
corner cases it could result in circular references
- in <structname>pg_subtrans</>, potentially causing infinite loops
+ in <structname>pg_subtrans</structname>, potentially causing infinite loops
in queries that examine rows modified by the two-phase transaction.
</para>
</listitem>
<listitem>
<para>
- Avoid possible crash in <application>walsender</> due to failure
+ Avoid possible crash in <application>walsender</application> due to failure
to initialize a string buffer (Stas Kelvich, Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Fix postmaster's handling of <function>fork()</> failure for a
+ Fix postmaster's handling of <function>fork()</function> failure for a
background worker process (Tom Lane)
</para>
Due to lack of a cache flush step between commands in an extension
script file, non-utility queries might not see the effects of an
immediately preceding catalog change, such as <command>ALTER TABLE
- ... RENAME</>.
+ ... RENAME</command>.
</para>
</listitem>
<listitem>
<para>
Skip tablespace privilege checks when <command>ALTER TABLE ... ALTER
- COLUMN TYPE</> rebuilds an existing index (Noah Misch)
+ COLUMN TYPE</command> rebuilds an existing index (Noah Misch)
</para>
<para>
The command failed if the calling user did not currently have
- <literal>CREATE</> privilege for the tablespace containing the index.
+ <literal>CREATE</literal> privilege for the tablespace containing the index.
That behavior seems unhelpful, so skip the check, allowing the
index to be rebuilt where it is.
</para>
<listitem>
<para>
- Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</> to not recurse
- to child tables when the constraint is marked <literal>NO INHERIT</>
+ Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</command> to not recurse
+ to child tables when the constraint is marked <literal>NO INHERIT</literal>
(Amit Langote)
</para>
<para>
- This fix prevents unwanted <quote>constraint does not exist</> failures
+ This fix prevents unwanted <quote>constraint does not exist</quote> failures
when no matching constraint is present in the child tables.
</para>
</listitem>
<listitem>
<para>
- Fix <command>VACUUM</> to account properly for pages that could not
+ Fix <command>VACUUM</command> to account properly for pages that could not
be scanned due to conflicting page pins (Andrew Gierth)
</para>
<para>
This tended to lead to underestimation of the number of tuples in
the table. In the worst case of a small heavily-contended
- table, <command>VACUUM</> could incorrectly report that the table
+ table, <command>VACUUM</command> could incorrectly report that the table
contained no tuples, leading to very bad planning choices.
</para>
</listitem>
<listitem>
<para>
- Fix integer-overflow problems in <type>interval</> comparison (Kyotaro
+ Fix integer-overflow problems in <type>interval</type> comparison (Kyotaro
Horiguchi, Tom Lane)
</para>
<para>
- The comparison operators for type <type>interval</> could yield wrong
+ The comparison operators for type <type>interval</type> could yield wrong
answers for intervals larger than about 296000 years. Indexes on
columns containing such large values should be reindexed, since they
may be corrupt.
<listitem>
<para>
- Fix <function>cursor_to_xml()</> to produce valid output
- with <replaceable>tableforest</> = false
+ Fix <function>cursor_to_xml()</function> to produce valid output
+ with <replaceable>tableforest</replaceable> = false
(Thomas Munro, Peter Eisentraut)
</para>
<para>
- Previously it failed to produce a wrapping <literal><table></>
+ Previously it failed to produce a wrapping <literal><table></literal>
element.
</para>
</listitem>
<listitem>
<para>
- Fix roundoff problems in <function>float8_timestamptz()</>
- and <function>make_interval()</> (Tom Lane)
+ Fix roundoff problems in <function>float8_timestamptz()</function>
+ and <function>make_interval()</function> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Improve performance of <structname>pg_timezone_names</> view
+ Improve performance of <structname>pg_timezone_names</structname> view
(Tom Lane, David Rowley)
</para>
</listitem>
<listitem>
<para>
- Fix sloppy handling of corner-case errors from <function>lseek()</>
- and <function>close()</> (Tom Lane)
+ Fix sloppy handling of corner-case errors from <function>lseek()</function>
+ and <function>close()</function> (Tom Lane)
</para>
<para>
Neither of these system calls are likely to fail in typical situations,
- but if they did, <filename>fd.c</> could get quite confused.
+ but if they did, <filename>fd.c</filename> could get quite confused.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</> to support <command>COMMIT PREPARED</>
- and <command>ROLLBACK PREPARED</> (Masahiko Sawada)
+ Fix <application>ecpg</application> to support <command>COMMIT PREPARED</command>
+ and <command>ROLLBACK PREPARED</command> (Masahiko Sawada)
</para>
</listitem>
<listitem>
<para>
Fix a double-free error when processing dollar-quoted string literals
- in <application>ecpg</> (Michael Meskes)
+ in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, fix incorrect schema and owner marking for
+ In <application>pg_dump</application>, fix incorrect schema and owner marking for
comments and security labels of some types of database objects
(Giuseppe Broccolo, Tom Lane)
</para>
<listitem>
<para>
- Avoid emitting an invalid list file in <literal>pg_restore -l</>
+ Avoid emitting an invalid list file in <literal>pg_restore -l</literal>
when SQL object names contain newlines (Tom Lane)
</para>
<para>
Replace newlines by spaces, which is sufficient to make the output
- valid for <literal>pg_restore -L</>'s purposes.
+ valid for <literal>pg_restore -L</literal>'s purposes.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to transfer comments and security labels
- attached to <quote>large objects</> (blobs) (Stephen Frost)
+ Fix <application>pg_upgrade</application> to transfer comments and security labels
+ attached to <quote>large objects</quote> (blobs) (Stephen Frost)
</para>
<para>
<listitem>
<para>
Improve error handling
- in <filename>contrib/adminpack</>'s <function>pg_file_write()</>
+ in <filename>contrib/adminpack</filename>'s <function>pg_file_write()</function>
function (Noah Misch)
</para>
<para>
Notably, it failed to detect errors reported
- by <function>fclose()</>.
+ by <function>fclose()</function>.
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/dblink</>, avoid leaking the previous unnamed
+ In <filename>contrib/dblink</filename>, avoid leaking the previous unnamed
connection when establishing a new unnamed connection (Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/pg_trgm</>'s extraction of trigrams from regular
+ Fix <filename>contrib/pg_trgm</filename>'s extraction of trigrams from regular
expressions (Tom Lane)
</para>
<listitem>
<para>
- In <filename>contrib/postgres_fdw</>,
+ In <filename>contrib/postgres_fdw</filename>,
transmit query cancellation requests to the remote server
(Michael Paquier, Etsuro Fujita)
</para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2017b
+ Update time zone data files to <application>tzdata</application> release 2017b
for DST law changes in Chile, Haiti, and Mongolia, plus historical
corrections for Ecuador, Kazakhstan, Liberia, and Spain.
Switch to numeric abbreviations for numerous time zones in South
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
</listitem>
<para>
The Microsoft MSVC build scripts neglected to install
- the <filename>posixrules</> file in the timezone directory tree.
+ the <filename>posixrules</filename> file in the timezone directory tree.
This resulted in the timezone code falling back to its built-in
rule about what DST behavior to assume for a POSIX-style time zone
name. For historical reasons that still corresponds to the DST rules
the USA was using before 2007 (i.e., change on first Sunday in April
and last Sunday in October). With this fix, a POSIX-style zone name
will use the current and historical DST transition dates of
- the <literal>US/Eastern</> zone. If you don't want that, remove
- the <filename>posixrules</> file, or replace it with a copy of some
+ the <literal>US/Eastern</literal> zone. If you don't want that, remove
+ the <filename>posixrules</filename> file, or replace it with a copy of some
other zone file (see <xref linkend="datatype-timezones">). Note that
due to caching, you may need to restart the server to get such changes
to take effect.
<listitem>
<para>
Fix a race condition that could cause indexes built
- with <command>CREATE INDEX CONCURRENTLY</> to be corrupt
+ with <command>CREATE INDEX CONCURRENTLY</command> to be corrupt
(Pavan Deolasee, Tom Lane)
</para>
<para>
- If <command>CREATE INDEX CONCURRENTLY</> was used to build an index
+ If <command>CREATE INDEX CONCURRENTLY</command> was used to build an index
that depends on a column not previously indexed, then rows
updated by transactions that ran concurrently with
- the <command>CREATE INDEX</> command could have received incorrect
+ the <command>CREATE INDEX</command> command could have received incorrect
index entries. If you suspect this may have happened, the most
reliable solution is to rebuild affected indexes after installing
this update.
Backends failed to account for this snapshot when advertising their
oldest xmin, potentially allowing concurrent vacuuming operations to
remove data that was still needed. This led to transient failures
- along the lines of <quote>cache lookup failed for relation 1255</>.
+ along the lines of <quote>cache lookup failed for relation 1255</quote>.
</para>
</listitem>
<listitem>
<para>
- Unconditionally WAL-log creation of the <quote>init fork</> for an
+ Unconditionally WAL-log creation of the <quote>init fork</quote> for an
unlogged table (Michael Paquier)
</para>
<para>
Previously, this was skipped when <xref linkend="guc-wal-level">
- = <literal>minimal</>, but actually it's necessary even in that case
+ = <literal>minimal</literal>, but actually it's necessary even in that case
to ensure that the unlogged table is properly reset to empty after a
crash.
</para>
<listitem>
<para>
- Make sure <command>ALTER TABLE</> preserves index tablespace
+ Make sure <command>ALTER TABLE</command> preserves index tablespace
assignments when rebuilding indexes (Tom Lane, Michael Paquier)
</para>
<para>
Fix incorrect updating of trigger function properties when changing a
foreign-key constraint's deferrability properties with <command>ALTER
- TABLE ... ALTER CONSTRAINT</> (Tom Lane)
+ TABLE ... ALTER CONSTRAINT</command> (Tom Lane)
</para>
<para>
</para>
<para>
- This avoids <quote>could not find trigger <replaceable>NNN</></quote>
- or <quote>relation <replaceable>NNN</> has no triggers</quote> errors.
+ This avoids <quote>could not find trigger <replaceable>NNN</replaceable></quote>
+ or <quote>relation <replaceable>NNN</replaceable> has no triggers</quote> errors.
</para>
</listitem>
<listitem>
<para>
Fix processing of OID column when a table with OIDs is associated to
- a parent with OIDs via <command>ALTER TABLE ... INHERIT</> (Amit
+ a parent with OIDs via <command>ALTER TABLE ... INHERIT</command> (Amit
Langote)
</para>
<listitem>
<para>
- Fix <command>CREATE OR REPLACE VIEW</> to update the view query
+ Fix <command>CREATE OR REPLACE VIEW</command> to update the view query
before attempting to apply the new view options (Dean Rasheed)
</para>
<listitem>
<para>
Report correct object identity during <command>ALTER TEXT SEARCH
- CONFIGURATION</> (Artur Zakirov)
+ CONFIGURATION</command> (Artur Zakirov)
</para>
<para>
<listitem>
<para>
- Prevent multicolumn expansion of <replaceable>foo</><literal>.*</> in
- an <command>UPDATE</> source expression (Tom Lane)
+ Prevent multicolumn expansion of <replaceable>foo</replaceable><literal>.*</literal> in
+ an <command>UPDATE</command> source expression (Tom Lane)
</para>
<para>
This led to <quote>UPDATE target count mismatch --- internal
- error</>. Now the syntax is understood as a whole-row variable,
+ error</quote>. Now the syntax is understood as a whole-row variable,
as it would be in other contexts.
</para>
</listitem>
<listitem>
<para>
Ensure that column typmods are determined accurately for
- multi-row <literal>VALUES</> constructs (Tom Lane)
+ multi-row <literal>VALUES</literal> constructs (Tom Lane)
</para>
<para>
This fixes problems occurring when the first value in a column has a
- determinable typmod (e.g., length for a <type>varchar</> value) but
+ determinable typmod (e.g., length for a <type>varchar</type> value) but
later values don't share the same limit.
</para>
</listitem>
Normally, a Unicode surrogate leading character must be followed by a
Unicode surrogate trailing character, but the check for this was
missed if the leading character was the last character in a Unicode
- string literal (<literal>U&'...'</>) or Unicode identifier
- (<literal>U&"..."</>).
+ string literal (<literal>U&'...'</literal>) or Unicode identifier
+ (<literal>U&"..."</literal>).
</para>
</listitem>
<listitem>
<para>
Ensure that a purely negative text search query, such
- as <literal>!foo</>, matches empty <type>tsvector</>s (Tom Dunstan)
+ as <literal>!foo</literal>, matches empty <type>tsvector</type>s (Tom Dunstan)
</para>
<para>
<listitem>
<para>
- Prevent crash when <function>ts_rewrite()</> replaces a non-top-level
+ Prevent crash when <function>ts_rewrite()</function> replaces a non-top-level
subtree with an empty query (Artur Zakirov)
</para>
</listitem>
<listitem>
<para>
- Fix performance problems in <function>ts_rewrite()</> (Tom Lane)
+ Fix performance problems in <function>ts_rewrite()</function> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>ts_rewrite()</>'s handling of nested NOT operators
+ Fix <function>ts_rewrite()</function>'s handling of nested NOT operators
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>array_fill()</> to handle empty arrays properly (Tom Lane)
+ Fix <function>array_fill()</function> to handle empty arrays properly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix one-byte buffer overrun in <function>quote_literal_cstr()</>
+ Fix one-byte buffer overrun in <function>quote_literal_cstr()</function>
(Heikki Linnakangas)
</para>
<listitem>
<para>
- Prevent multiple calls of <function>pg_start_backup()</>
- and <function>pg_stop_backup()</> from running concurrently (Michael
+ Prevent multiple calls of <function>pg_start_backup()</function>
+ and <function>pg_stop_backup()</function> from running concurrently (Michael
Paquier)
</para>
<listitem>
<para>
- Avoid discarding <type>interval</>-to-<type>interval</> casts
+ Avoid discarding <type>interval</type>-to-<type>interval</type> casts
that aren't really no-ops (Tom Lane)
</para>
<para>
In some cases, a cast that should result in zeroing out
- low-order <type>interval</> fields was mistakenly deemed to be a
+ low-order <type>interval</type> fields was mistakenly deemed to be a
no-op and discarded. An example is that casting from <type>INTERVAL
- MONTH</> to <type>INTERVAL YEAR</> failed to clear the months field.
+ MONTH</type> to <type>INTERVAL YEAR</type> failed to clear the months field.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to dump user-defined casts and transforms
+ Fix <application>pg_dump</application> to dump user-defined casts and transforms
that use built-in functions (Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_restore</> with <option>--create --if-exists</>
+ Fix <application>pg_restore</application> with <option>--create --if-exists</option>
to behave more sanely if an archive contains
- unrecognized <command>DROP</> commands (Tom Lane)
+ unrecognized <command>DROP</command> commands (Tom Lane)
</para>
<para>
This doesn't fix any live bug, but it may improve the behavior in
- future if <application>pg_restore</> is used with an archive
- generated by a later <application>pg_dump</> version.
+ future if <application>pg_restore</application> is used with an archive
+ generated by a later <application>pg_dump</application> version.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_basebackup</>'s rate limiting in the presence of
+ Fix <application>pg_basebackup</application>'s rate limiting in the presence of
slow I/O (Antonin Houska)
</para>
<listitem>
<para>
- Fix <application>pg_basebackup</>'s handling of
- symlinked <filename>pg_stat_tmp</> and <filename>pg_replslot</>
+ Fix <application>pg_basebackup</application>'s handling of
+ symlinked <filename>pg_stat_tmp</filename> and <filename>pg_replslot</filename>
subdirectories (Magnus Hagander, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix possible <application>pg_basebackup</> failure on standby
+ Fix possible <application>pg_basebackup</application> failure on standby
server when including WAL files (Amit Kapila, Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix PL/Tcl to support triggers on tables that have <literal>.tupno</>
+ Fix PL/Tcl to support triggers on tables that have <literal>.tupno</literal>
as a column name (Tom Lane)
</para>
<para>
This matches the (previously undocumented) behavior of
- PL/Tcl's <command>spi_exec</> and <command>spi_execp</> commands,
- namely that a magic <literal>.tupno</> column is inserted only if
+ PL/Tcl's <command>spi_exec</command> and <command>spi_execp</command> commands,
+ namely that a magic <literal>.tupno</literal> column is inserted only if
there isn't a real column named that.
</para>
</listitem>
<listitem>
<para>
- Allow DOS-style line endings in <filename>~/.pgpass</> files,
+ Allow DOS-style line endings in <filename>~/.pgpass</filename> files,
even on Unix (Vik Fearing)
</para>
<listitem>
<para>
- Fix one-byte buffer overrun if <application>ecpg</> is given a file
+ Fix one-byte buffer overrun if <application>ecpg</application> is given a file
name that ends with a dot (Takayuki Tsunakawa)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for <command>ALTER DEFAULT
- PRIVILEGES</> (Gilles Darold, Stephen Frost)
+ Fix <application>psql</application>'s tab completion for <command>ALTER DEFAULT
+ PRIVILEGES</command> (Gilles Darold, Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, treat an empty or all-blank setting of
- the <envar>PAGER</> environment variable as meaning <quote>no
- pager</> (Tom Lane)
+ In <application>psql</application>, treat an empty or all-blank setting of
+ the <envar>PAGER</envar> environment variable as meaning <quote>no
+ pager</quote> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Improve <filename>contrib/dblink</>'s reporting of
- low-level <application>libpq</> errors, such as out-of-memory
+ Improve <filename>contrib/dblink</filename>'s reporting of
+ low-level <application>libpq</application> errors, such as out-of-memory
(Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Teach <filename>contrib/dblink</> to ignore irrelevant server options
- when it uses a <filename>contrib/postgres_fdw</> foreign server as
+ Teach <filename>contrib/dblink</filename> to ignore irrelevant server options
+ when it uses a <filename>contrib/postgres_fdw</filename> foreign server as
the source of connection options (Corey Huinker)
</para>
<para>
Previously, if the foreign server object had options that were not
- also <application>libpq</> connection options, an error occurred.
+ also <application>libpq</application> connection options, an error occurred.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016j
+ Update time zone data files to <application>tzdata</application> release 2016j
for DST law changes in northern Cyprus (adding a new zone
Asia/Famagusta), Russia (adding a new zone Europe/Saratov), Tonga,
and Antarctica/Casey.
crash recovery, or to be written incorrectly on a standby server.
Bogus entries in a free space map could lead to attempts to access
pages that have been truncated away from the relation itself, typically
- producing errors like <quote>could not read block <replaceable>XXX</>:
+ producing errors like <quote>could not read block <replaceable>XXX</replaceable>:
read only 0 of 8192 bytes</quote>. Checksum failures in the
visibility map are also possible, if checksumming is enabled.
</para>
<para>
Procedures for determining whether there is a problem and repairing it
if so are discussed at
- <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></>.
+ <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></ulink>.
</para>
</listitem>
</para>
<para>
- The typical symptom was <quote>unexpected GIN leaf action</> errors
+ The typical symptom was <quote>unexpected GIN leaf action</quote> errors
during WAL replay.
</para>
</listitem>
<listitem>
<para>
- Fix <command>SELECT FOR UPDATE/SHARE</> to correctly lock tuples that
+ Fix <command>SELECT FOR UPDATE/SHARE</command> to correctly lock tuples that
have been updated by a subsequently-aborted transaction
(Álvaro Herrera)
</para>
<para>
- In 9.5 and later, the <command>SELECT</> would sometimes fail to
+ In 9.5 and later, the <command>SELECT</command> would sometimes fail to
return such tuples at all. A failure has not been proven to occur in
earlier releases, but might be possible with concurrent updates.
</para>
<listitem>
<para>
- Fix query-lifespan memory leak in a bulk <command>UPDATE</> on a table
- with a <literal>PRIMARY KEY</> or <literal>REPLICA IDENTITY</> index
+ Fix query-lifespan memory leak in a bulk <command>UPDATE</command> on a table
+ with a <literal>PRIMARY KEY</literal> or <literal>REPLICA IDENTITY</literal> index
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <command>EXPLAIN</> to emit valid XML when
+ Fix <command>EXPLAIN</command> to emit valid XML when
<xref linkend="guc-track-io-timing"> is on (Markus Winand)
</para>
<para>
Previously the XML output-format option produced syntactically invalid
- tags such as <literal><I/O-Read-Time></>. That is now
- rendered as <literal><I-O-Read-Time></>.
+ tags such as <literal><I/O-Read-Time></literal>. That is now
+ rendered as <literal><I-O-Read-Time></literal>.
</para>
</listitem>
<listitem>
<para>
Suppress printing of zeroes for unmeasured times
- in <command>EXPLAIN</> (Maksim Milyutin)
+ in <command>EXPLAIN</command> (Maksim Milyutin)
</para>
<para>
Certain option combinations resulted in printing zero values for times
that actually aren't ever measured in that combination. Our general
- policy in <command>EXPLAIN</> is not to print such fields at all, so
+ policy in <command>EXPLAIN</command> is not to print such fields at all, so
do that consistently in all cases.
</para>
</listitem>
<listitem>
<para>
- Fix timeout length when <command>VACUUM</> is waiting for exclusive
+ Fix timeout length when <command>VACUUM</command> is waiting for exclusive
table lock so that it can truncate the table (Simon Riggs)
</para>
<para>
The timeout was meant to be 50 milliseconds, but it was actually only
- 50 microseconds, causing <command>VACUUM</> to give up on truncation
+ 50 microseconds, causing <command>VACUUM</command> to give up on truncation
much more easily than intended. Set it to the intended value.
</para>
</listitem>
<listitem>
<para>
- Fix bugs in merging inherited <literal>CHECK</> constraints while
+ Fix bugs in merging inherited <literal>CHECK</literal> constraints while
creating or altering a table (Tom Lane, Amit Langote)
</para>
<para>
- Allow identical <literal>CHECK</> constraints to be added to a parent
+ Allow identical <literal>CHECK</literal> constraints to be added to a parent
and child table in either order. Prevent merging of a valid
- constraint from the parent table with a <literal>NOT VALID</>
+ constraint from the parent table with a <literal>NOT VALID</literal>
constraint on the child. Likewise, prevent merging of a <literal>NO
- INHERIT</> child constraint with an inherited constraint.
+ INHERIT</literal> child constraint with an inherited constraint.
</para>
</listitem>
<listitem>
<para>
Remove artificial restrictions on the values accepted
- by <function>numeric_in()</> and <function>numeric_recv()</>
+ by <function>numeric_in()</function> and <function>numeric_recv()</function>
(Tom Lane)
</para>
<para>
We allow numeric values up to the limit of the storage format (more
- than <literal>1e100000</>), so it seems fairly pointless
- that <function>numeric_in()</> rejected scientific-notation exponents
- above 1000. Likewise, it was silly for <function>numeric_recv()</> to
+ than <literal>1e100000</literal>), so it seems fairly pointless
+ that <function>numeric_in()</function> rejected scientific-notation exponents
+ above 1000. Likewise, it was silly for <function>numeric_recv()</function> to
reject more than 1000 digits in an input value.
</para>
</listitem>
<listitem>
<para>
- Disallow starting a standalone backend with <literal>standby_mode</>
+ Disallow starting a standalone backend with <literal>standby_mode</literal>
turned on (Michael Paquier)
</para>
<para>
This failure to reset all of the fields of the slot could
- prevent <command>VACUUM</> from removing dead tuples.
+ prevent <command>VACUUM</command> from removing dead tuples.
</para>
</listitem>
</para>
<para>
- This avoids possible failures during <function>munmap()</> on systems
+ This avoids possible failures during <function>munmap()</function> on systems
with atypical default huge page sizes. Except in crash-recovery
cases, there were no ill effects other than a log message.
</para>
<para>
Previously, the same value would be chosen every time, because it was
- derived from <function>random()</> but <function>srandom()</> had not
+ derived from <function>random()</function> but <function>srandom()</function> had not
yet been called. While relatively harmless, this was not the intended
behavior.
</para>
</para>
<para>
- Windows sometimes returns <literal>ERROR_ACCESS_DENIED</> rather
- than <literal>ERROR_ALREADY_EXISTS</> when there is an existing
+ Windows sometimes returns <literal>ERROR_ACCESS_DENIED</literal> rather
+ than <literal>ERROR_ALREADY_EXISTS</literal> when there is an existing
segment. This led to postmaster startup failure due to believing that
the former was an unrecoverable error.
</para>
<listitem>
<para>
Don't try to share SSL contexts across multiple connections
- in <application>libpq</> (Heikki Linnakangas)
+ in <application>libpq</application> (Heikki Linnakangas)
</para>
<para>
<listitem>
<para>
- Avoid corner-case memory leak in <application>libpq</> (Tom Lane)
+ Avoid corner-case memory leak in <application>libpq</application> (Tom Lane)
</para>
<para>
The reported problem involved leaking an error report
- during <function>PQreset()</>, but there might be related cases.
+ during <function>PQreset()</function>, but there might be related cases.
</para>
</listitem>
<listitem>
<para>
- Make <application>ecpg</>'s <option>--help</> and <option>--version</>
+ Make <application>ecpg</application>'s <option>--help</option> and <option>--version</option>
options work consistently with our other executables (Haribabu Kommi)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pgbench</>'s calculation of average latency
+ Fix <application>pgbench</application>'s calculation of average latency
(Fabien Coelho)
</para>
<para>
- The calculation was incorrect when there were <literal>\sleep</>
+ The calculation was incorrect when there were <literal>\sleep</literal>
commands in the script, or when the test duration was specified in
number of transactions rather than total time.
</para>
<listitem>
<para>
- In <application>pg_dump</>, never dump range constructor functions
+ In <application>pg_dump</application>, never dump range constructor functions
(Tom Lane)
</para>
<para>
- This oversight led to <application>pg_upgrade</> failures with
+ This oversight led to <application>pg_upgrade</application> failures with
extensions containing range types, due to duplicate creation of the
constructor functions.
</para>
<listitem>
<para>
- In <application>pg_xlogdump</>, retry opening new WAL segments when
- using <option>--follow</> option (Magnus Hagander)
+ In <application>pg_xlogdump</application>, retry opening new WAL segments when
+ using <option>--follow</option> option (Magnus Hagander)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_xlogdump</> to cope with a WAL file that begins
+ Fix <application>pg_xlogdump</application> to cope with a WAL file that begins
with a continuation record spanning more than one page (Pavan
Deolasee)
</para>
<listitem>
<para>
- Fix <filename>contrib/pg_buffercache</> to work
- when <varname>shared_buffers</> exceeds 256GB (KaiGai Kohei)
+ Fix <filename>contrib/pg_buffercache</filename> to work
+ when <varname>shared_buffers</varname> exceeds 256GB (KaiGai Kohei)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/intarray/bench/bench.pl</> to print the results
- of the <command>EXPLAIN</> it does when given the <option>-e</> option
+ Fix <filename>contrib/intarray/bench/bench.pl</filename> to print the results
+ of the <command>EXPLAIN</command> it does when given the <option>-e</option> option
(Daniel Gustafsson)
</para>
</listitem>
</para>
<para>
- When <productname>PostgreSQL</> has been configured
- with <option>--enable-tap-tests</>, <quote>make install</> will now
+ When <productname>PostgreSQL</productname> has been configured
+ with <option>--enable-tap-tests</option>, <quote>make install</quote> will now
install the Perl support files for TAP testing where PGXS can find
them. This allows non-core extensions to
- use <literal>$(prove_check)</> without extra tests.
+ use <literal>$(prove_check)</literal> without extra tests.
</para>
</listitem>
<listitem>
<para>
- In MSVC builds, include <application>pg_recvlogical</> in a
+ In MSVC builds, include <application>pg_recvlogical</application> in a
client-only installation (MauMau)
</para>
</listitem>
If a dynamic time zone abbreviation does not match any entry in the
referenced time zone, treat it as equivalent to the time zone name.
This avoids unexpected failures when IANA removes abbreviations from
- their time zone database, as they did in <application>tzdata</>
+ their time zone database, as they did in <application>tzdata</application>
release 2016f and seem likely to do again in the future. The
consequences were not limited to not recognizing the individual
abbreviation; any mismatch caused
- the <structname>pg_timezone_abbrevs</> view to fail altogether.
+ the <structname>pg_timezone_abbrevs</structname> view to fail altogether.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016h
+ Update time zone data files to <application>tzdata</application> release 2016h
for DST law changes in Palestine and Turkey, plus historical
corrections for Turkey and some regions of Russia.
Switch to numeric abbreviations for some time zones in Antarctica,
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
<para>
- In this update, <literal>AMT</> is no longer shown as being in use to
- mean Armenia Time. Therefore, we have changed the <literal>Default</>
+ In this update, <literal>AMT</literal> is no longer shown as being in use to
+ mean Armenia Time. Therefore, we have changed the <literal>Default</literal>
abbreviation set to interpret it as Amazon Time, thus UTC-4 not UTC+4.
</para>
</listitem>
<listitem>
<para>
Fix possible mis-evaluation of
- nested <literal>CASE</>-<literal>WHEN</> expressions (Heikki
+ nested <literal>CASE</literal>-<literal>WHEN</literal> expressions (Heikki
Linnakangas, Michael Paquier, Tom Lane)
</para>
<para>
- A <literal>CASE</> expression appearing within the test value
- subexpression of another <literal>CASE</> could become confused about
+ A <literal>CASE</literal> expression appearing within the test value
+ subexpression of another <literal>CASE</literal> could become confused about
whether its own test value was null or not. Also, inlining of a SQL
function implementing the equality operator used by
- a <literal>CASE</> expression could result in passing the wrong test
- value to functions called within a <literal>CASE</> expression in the
+ a <literal>CASE</literal> expression could result in passing the wrong test
+ value to functions called within a <literal>CASE</literal> expression in the
SQL function's body. If the test values were of different data
types, a crash might result; moreover such situations could be abused
to allow disclosure of portions of server memory. (CVE-2016-5423)
</para>
<para>
- Numerous places in <application>vacuumdb</> and other client programs
+ Numerous places in <application>vacuumdb</application> and other client programs
could become confused by database and role names containing double
quotes or backslashes. Tighten up quoting rules to make that safe.
Also, ensure that when a conninfo string is used as a database name
<para>
Fix handling of paired double quotes
- in <application>psql</>'s <command>\connect</>
- and <command>\password</> commands to match the documentation.
+ in <application>psql</application>'s <command>\connect</command>
+ and <command>\password</command> commands to match the documentation.
</para>
<para>
- Introduce a new <option>-reuse-previous</> option
- in <application>psql</>'s <command>\connect</> command to allow
+ Introduce a new <option>-reuse-previous</option> option
+ in <application>psql</application>'s <command>\connect</command> command to allow
explicit control of whether to re-use connection parameters from a
previous connection. (Without this, the choice is based on whether
the database name looks like a conninfo string, as before.) This
allows secure handling of database names containing special
- characters in <application>pg_dumpall</> scripts.
+ characters in <application>pg_dumpall</application> scripts.
</para>
<para>
- <application>pg_dumpall</> now refuses to deal with database and role
+ <application>pg_dumpall</application> now refuses to deal with database and role
names containing carriage returns or newlines, as it seems impractical
to quote those characters safely on Windows. In future we may reject
such names on the server side, but that step has not been taken yet.
These are considered security fixes because crafted object names
containing special characters could have been used to execute
commands with superuser privileges the next time a superuser
- executes <application>pg_dumpall</> or other routine maintenance
+ executes <application>pg_dumpall</application> or other routine maintenance
operations. (CVE-2016-5424)
</para>
</listitem>
<listitem>
<para>
- Fix corner-case misbehaviors for <literal>IS NULL</>/<literal>IS NOT
- NULL</> applied to nested composite values (Andrew Gierth, Tom Lane)
+ Fix corner-case misbehaviors for <literal>IS NULL</literal>/<literal>IS NOT
+ NULL</literal> applied to nested composite values (Andrew Gierth, Tom Lane)
</para>
<para>
- The SQL standard specifies that <literal>IS NULL</> should return
+ The SQL standard specifies that <literal>IS NULL</literal> should return
TRUE for a row of all null values (thus <literal>ROW(NULL,NULL) IS
- NULL</> yields TRUE), but this is not meant to apply recursively
- (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</> yields FALSE).
+ NULL</literal> yields TRUE), but this is not meant to apply recursively
+ (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</literal> yields FALSE).
The core executor got this right, but certain planner optimizations
treated the test as recursive (thus producing TRUE in both cases),
- and <filename>contrib/postgres_fdw</> could produce remote queries
+ and <filename>contrib/postgres_fdw</filename> could produce remote queries
that misbehaved similarly.
</para>
</listitem>
<listitem>
<para>
- Make the <type>inet</> and <type>cidr</> data types properly reject
+ Make the <type>inet</type> and <type>cidr</type> data types properly reject
IPv6 addresses with too many colon-separated fields (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Prevent crash in <function>close_ps()</>
- (the <type>point</> <literal>##</> <type>lseg</> operator)
+ Prevent crash in <function>close_ps()</function>
+ (the <type>point</type> <literal>##</literal> <type>lseg</type> operator)
for NaN input coordinates (Tom Lane)
</para>
<listitem>
<para>
- Avoid possible crash in <function>pg_get_expr()</> when inconsistent
+ Avoid possible crash in <function>pg_get_expr()</function> when inconsistent
values are passed to it (Michael Paquier, Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix several one-byte buffer over-reads in <function>to_number()</>
+ Fix several one-byte buffer over-reads in <function>to_number()</function>
(Peter Eisentraut)
</para>
<para>
- In several cases the <function>to_number()</> function would read one
+ In several cases the <function>to_number()</function> function would read one
more character than it should from the input string. There is a
small chance of a crash, if the input happens to be adjacent to the
end of memory.
<listitem>
<para>
Do not run the planner on the query contained in <literal>CREATE
- MATERIALIZED VIEW</> or <literal>CREATE TABLE AS</>
- when <literal>WITH NO DATA</> is specified (Michael Paquier,
+ MATERIALIZED VIEW</literal> or <literal>CREATE TABLE AS</literal>
+ when <literal>WITH NO DATA</literal> is specified (Michael Paquier,
Tom Lane)
</para>
<listitem>
<para>
Avoid unsafe intermediate state during expensive paths
- through <function>heap_update()</> (Masahiko Sawada, Andres Freund)
+ through <function>heap_update()</function> (Masahiko Sawada, Andres Freund)
</para>
<para>
<listitem>
<para>
- Avoid unnecessary <quote>could not serialize access</> errors when
- acquiring <literal>FOR KEY SHARE</> row locks in serializable mode
+ Avoid unnecessary <quote>could not serialize access</quote> errors when
+ acquiring <literal>FOR KEY SHARE</literal> row locks in serializable mode
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Avoid crash in <literal>postgres -C</> when the specified variable
+ Avoid crash in <literal>postgres -C</literal> when the specified variable
has a null string value (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Avoid consuming a transaction ID during <command>VACUUM</>
+ Avoid consuming a transaction ID during <command>VACUUM</command>
(Alexander Korotkov)
</para>
<para>
- Some cases in <command>VACUUM</> unnecessarily caused an XID to be
+ Some cases in <command>VACUUM</command> unnecessarily caused an XID to be
assigned to the current transaction. Normally this is negligible,
but if one is up against the XID wraparound limit, consuming more
XIDs during anti-wraparound vacuums is a very bad thing.
Branch: REL9_1_STABLE [de887cc8a] 2016-05-25 19:39:49 -0400
-->
<para>
- Avoid canceling hot-standby queries during <command>VACUUM FREEZE</>
+ Avoid canceling hot-standby queries during <command>VACUUM FREEZE</command>
(Simon Riggs, Álvaro Herrera)
</para>
<para>
- <command>VACUUM FREEZE</> on an otherwise-idle master server could
+ <command>VACUUM FREEZE</command> on an otherwise-idle master server could
result in unnecessary cancellations of queries on its standby
servers.
</para>
<para>
The usual symptom of this bug is errors
- like <quote>MultiXactId <replaceable>NNN</> has not been created
+ like <quote>MultiXactId <replaceable>NNN</replaceable> has not been created
yet -- apparent wraparound</quote>.
</para>
</listitem>
<listitem>
<para>
- When a manual <command>ANALYZE</> specifies a column list, don't
- reset the table's <literal>changes_since_analyze</> counter
+ When a manual <command>ANALYZE</command> specifies a column list, don't
+ reset the table's <literal>changes_since_analyze</literal> counter
(Tom Lane)
</para>
<listitem>
<para>
- Fix <command>ANALYZE</>'s overestimation of <literal>n_distinct</>
+ Fix <command>ANALYZE</command>'s overestimation of <literal>n_distinct</literal>
for a unique or nearly-unique column with many null entries (Tom
Lane)
</para>
</para>
<para>
- This mistake prevented <command>VACUUM</> from completing in some
+ This mistake prevented <command>VACUUM</command> from completing in some
cases involving corrupt b-tree indexes.
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/btree_gin</> to handle the smallest
- possible <type>bigint</> value correctly (Peter Eisentraut)
+ Fix <filename>contrib/btree_gin</filename> to handle the smallest
+ possible <type>bigint</type> value correctly (Peter Eisentraut)
</para>
</listitem>
<para>
It's planned to switch to two-part instead of three-part server
version numbers for releases after 9.6. Make sure
- that <function>PQserverVersion()</> returns the correct value for
+ that <function>PQserverVersion()</function> returns the correct value for
such cases.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>'s code for <literal>unsigned long long</>
+ Fix <application>ecpg</application>'s code for <literal>unsigned long long</literal>
array elements (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</> with both <option>-c</> and <option>-C</>
- options, avoid emitting an unwanted <literal>CREATE SCHEMA public</>
+ In <application>pg_dump</application> with both <option>-c</option> and <option>-C</option>
+ options, avoid emitting an unwanted <literal>CREATE SCHEMA public</literal>
command (David Johnston, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Improve handling of <systemitem>SIGTERM</>/control-C in
- parallel <application>pg_dump</> and <application>pg_restore</> (Tom
+ Improve handling of <systemitem>SIGTERM</systemitem>/control-C in
+ parallel <application>pg_dump</application> and <application>pg_restore</application> (Tom
Lane)
</para>
<para>
Make sure that the worker processes will exit promptly, and also arrange
to send query-cancel requests to the connected backends, in case they
- are doing something long-running such as a <command>CREATE INDEX</>.
+ are doing something long-running such as a <command>CREATE INDEX</command>.
</para>
</listitem>
<listitem>
<para>
- Fix error reporting in parallel <application>pg_dump</>
- and <application>pg_restore</> (Tom Lane)
+ Fix error reporting in parallel <application>pg_dump</application>
+ and <application>pg_restore</application> (Tom Lane)
</para>
<para>
- Previously, errors reported by <application>pg_dump</>
- or <application>pg_restore</> worker processes might never make it to
+ Previously, errors reported by <application>pg_dump</application>
+ or <application>pg_restore</application> worker processes might never make it to
the user's console, because the messages went through the master
process, and there were various deadlock scenarios that would prevent
the master process from passing on the messages. Instead, just print
- everything to <literal>stderr</>. In some cases this will result in
+ everything to <literal>stderr</literal>. In some cases this will result in
duplicate messages (for instance, if all the workers report a server
shutdown), but that seems better than no message.
</para>
<listitem>
<para>
- Ensure that parallel <application>pg_dump</>
- or <application>pg_restore</> on Windows will shut down properly
+ Ensure that parallel <application>pg_dump</application>
+ or <application>pg_restore</application> on Windows will shut down properly
after an error (Kyotaro Horiguchi)
</para>
<listitem>
<para>
- Make <application>pg_dump</> behave better when built without zlib
+ Make <application>pg_dump</application> behave better when built without zlib
support (Kyotaro Horiguchi)
</para>
<listitem>
<para>
- Make <application>pg_basebackup</> accept <literal>-Z 0</> as
+ Make <application>pg_basebackup</application> accept <literal>-Z 0</literal> as
specifying no compression (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Be more predictable about reporting <quote>statement timeout</>
- versus <quote>lock timeout</> (Tom Lane)
+ Be more predictable about reporting <quote>statement timeout</quote>
+ versus <quote>lock timeout</quote> (Tom Lane)
</para>
<para>
On heavily loaded machines, the regression tests sometimes failed due
- to reporting <quote>lock timeout</> even though the statement timeout
+ to reporting <quote>lock timeout</quote> even though the statement timeout
should have occurred first.
</para>
</listitem>
<listitem>
<para>
Update our copy of the timezone code to match
- IANA's <application>tzcode</> release 2016c (Tom Lane)
+ IANA's <application>tzcode</application> release 2016c (Tom Lane)
</para>
<para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016f
+ Update time zone data files to <application>tzdata</application> release 2016f
for DST law changes in Kemerovo and Novosibirsk, plus historical
corrections for Azerbaijan, Belarus, and Morocco.
</para>
using OpenSSL within a single process and not all the code involved
follows the same rules for when to clear the error queue.
Failures have been reported specifically when a client application
- uses SSL connections in <application>libpq</> concurrently with
+ uses SSL connections in <application>libpq</application> concurrently with
SSL connections using the PHP, Python, or Ruby wrappers for OpenSSL.
It's possible for similar problems to arise within the server as well,
if an extension module establishes an outgoing SSL connection.
<listitem>
<para>
- Fix <quote>failed to build any <replaceable>N</>-way joins</quote>
+ Fix <quote>failed to build any <replaceable>N</replaceable>-way joins</quote>
planner error with a full join enclosed in the right-hand side of a
left join (Tom Lane)
</para>
<para>
Given a three-or-more-way equivalence class of variables, such
- as <literal>X.X = Y.Y = Z.Z</>, it was possible for the planner to omit
+ as <literal>X.X = Y.Y = Z.Z</literal>, it was possible for the planner to omit
some of the tests needed to enforce that all the variables are actually
equal, leading to join rows being output that didn't satisfy
- the <literal>WHERE</> clauses. For various reasons, erroneous plans
+ the <literal>WHERE</literal> clauses. For various reasons, erroneous plans
were seldom selected in practice, so that this bug has gone undetected
for a long time.
</para>
<para>
The memory leak would typically not amount to much in simple queries,
but it could be very substantial during a large GIN index build with
- high <varname>maintenance_work_mem</>.
+ high <varname>maintenance_work_mem</varname>.
</para>
</listitem>
<listitem>
<para>
- Fix possible misbehavior of <literal>TH</>, <literal>th</>,
- and <literal>Y,YYY</> format codes in <function>to_timestamp()</>
+ Fix possible misbehavior of <literal>TH</literal>, <literal>th</literal>,
+ and <literal>Y,YYY</literal> format codes in <function>to_timestamp()</function>
(Tom Lane)
</para>
<listitem>
<para>
- Fix dumping of rules and views in which the <replaceable>array</>
- argument of a <literal><replaceable>value</> <replaceable>operator</>
- ANY (<replaceable>array</>)</literal> construct is a sub-SELECT
+ Fix dumping of rules and views in which the <replaceable>array</replaceable>
+ argument of a <literal><replaceable>value</replaceable> <replaceable>operator</replaceable>
+ ANY (<replaceable>array</replaceable>)</literal> construct is a sub-SELECT
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Disallow newlines in <command>ALTER SYSTEM</> parameter values
+ Disallow newlines in <command>ALTER SYSTEM</command> parameter values
(Tom Lane)
</para>
<para>
The configuration-file parser doesn't support embedded newlines in
string literals, so we mustn't allow them in values to be inserted
- by <command>ALTER SYSTEM</>.
+ by <command>ALTER SYSTEM</command>.
</para>
</listitem>
<listitem>
<para>
- Fix <command>ALTER TABLE ... REPLICA IDENTITY USING INDEX</> to
+ Fix <command>ALTER TABLE ... REPLICA IDENTITY USING INDEX</command> to
work properly if an index on OID is selected (David Rowley)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_regress</> use a startup timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if that's set (Tom Lane)
+ Make <application>pg_regress</application> use a startup timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if that's set (Tom Lane)
</para>
<para>
This is for consistency with a behavior recently added
- to <application>pg_ctl</>; it eases automated testing on slow machines.
+ to <application>pg_ctl</application>; it eases automated testing on slow machines.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to correctly restore extension
+ Fix <application>pg_upgrade</application> to correctly restore extension
membership for operator families containing only one operator class
(Tom Lane)
</para>
<para>
In such a case, the operator family was restored into the new database,
but it was no longer marked as part of the extension. This had no
- immediate ill effects, but would cause later <application>pg_dump</>
+ immediate ill effects, but would cause later <application>pg_dump</application>
runs to emit output that would cause (harmless) errors on restore.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to not fail when new-cluster TOAST rules
+ Fix <application>pg_upgrade</application> to not fail when new-cluster TOAST rules
differ from old (Tom Lane)
</para>
<para>
- <application>pg_upgrade</> had special-case code to handle the
- situation where the new <productname>PostgreSQL</> version thinks that
+ <application>pg_upgrade</application> had special-case code to handle the
+ situation where the new <productname>PostgreSQL</productname> version thinks that
a table should have a TOAST table while the old version did not. That
code was broken, so remove it, and instead do nothing in such cases;
there seems no reason to believe that we can't get along fine without
<listitem>
<para>
Reduce the number of SysV semaphores used by a build configured with
- <option>--disable-spinlocks</> (Tom Lane)
+ <option>--disable-spinlocks</option> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Rename internal function <function>strtoi()</>
- to <function>strtoint()</> to avoid conflict with a NetBSD library
+ Rename internal function <function>strtoi()</function>
+ to <function>strtoint()</function> to avoid conflict with a NetBSD library
function (Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix reporting of errors from <function>bind()</>
- and <function>listen()</> system calls on Windows (Tom Lane)
+ Fix reporting of errors from <function>bind()</function>
+ and <function>listen()</function> system calls on Windows (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>putenv()</> to work properly with Visual Studio 2013
+ Fix <function>putenv()</function> to work properly with Visual Studio 2013
(Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Avoid possibly-unsafe use of Windows' <function>FormatMessage()</>
+ Avoid possibly-unsafe use of Windows' <function>FormatMessage()</function>
function (Christian Ullrich)
</para>
<para>
- Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</> flag where
+ Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</literal> flag where
appropriate. No live bug is known to exist here, but it seems like a
good idea to be careful.
</para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016d
+ Update time zone data files to <application>tzdata</application> release 2016d
for DST law changes in Russia and Venezuela. There are new zone
- names <literal>Europe/Kirov</> and <literal>Asia/Tomsk</> to reflect
+ names <literal>Europe/Kirov</literal> and <literal>Asia/Tomsk</literal> to reflect
the fact that these regions now have different time zone histories from
adjacent regions.
</para>
<listitem>
<para>
Fix incorrect handling of NULL index entries in
- indexed <literal>ROW()</> comparisons (Tom Lane)
+ indexed <literal>ROW()</literal> comparisons (Tom Lane)
</para>
<para>
An index search using a row comparison such as <literal>ROW(a, b) >
- ROW('x', 'y')</> would stop upon reaching a NULL entry in
- the <structfield>b</> column, ignoring the fact that there might be
- non-NULL <structfield>b</> values associated with later values
- of <structfield>a</>.
+ ROW('x', 'y')</literal> would stop upon reaching a NULL entry in
+ the <structfield>b</structfield> column, ignoring the fact that there might be
+ non-NULL <structfield>b</structfield> values associated with later values
+ of <structfield>a</structfield>.
</para>
</listitem>
<listitem>
<para>
Avoid unlikely data-loss scenarios due to renaming files without
- adequate <function>fsync()</> calls before and after (Michael Paquier,
+ adequate <function>fsync()</function> calls before and after (Michael Paquier,
Tomas Vondra, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix bug in <function>json_to_record()</> when a field of its input
+ Fix bug in <function>json_to_record()</function> when a field of its input
object contains a sub-object with a field name matching one of the
requested output column names (Tom Lane)
</para>
<listitem>
<para>
Fix misformatting of negative time zone offsets
- by <function>to_char()</>'s <literal>OF</> format code
+ by <function>to_char()</function>'s <literal>OF</literal> format code
(Thomas Munro, Tom Lane)
</para>
</listitem>
<para>
Previously, standby servers would delay application of WAL records in
- response to <varname>recovery_min_apply_delay</> even while replaying
+ response to <varname>recovery_min_apply_delay</varname> even while replaying
the initial portion of WAL needed to make their database state valid.
Since the standby is useless until it's reached a consistent database
state, this was deemed unhelpful.
<listitem>
<para>
- Correctly handle cases where <literal>pg_subtrans</> is close to XID
+ Correctly handle cases where <literal>pg_subtrans</literal> is close to XID
wraparound during server startup (Jeff Janes)
</para>
</listitem>
<para>
Trouble cases included tuples larger than one page when replica
- identity is <literal>FULL</>, <command>UPDATE</>s that change a
+ identity is <literal>FULL</literal>, <command>UPDATE</command>s that change a
primary key within a transaction large enough to be spooled to disk,
incorrect reports of <quote>subxact logged without previous toplevel
- record</>, and incorrect reporting of a transaction's commit time.
+ record</quote>, and incorrect reporting of a transaction's commit time.
</para>
</listitem>
<listitem>
<para>
Fix planner error with nested security barrier views when the outer
- view has a <literal>WHERE</> clause containing a correlated subquery
+ view has a <literal>WHERE</literal> clause containing a correlated subquery
(Dean Rasheed)
</para>
</listitem>
<listitem>
<para>
- Fix corner-case crash due to trying to free <function>localeconv()</>
+ Fix corner-case crash due to trying to free <function>localeconv()</function>
output strings more than once (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix parsing of affix files for <literal>ispell</> dictionaries
+ Fix parsing of affix files for <literal>ispell</literal> dictionaries
(Tom Lane)
</para>
<para>
The code could go wrong if the affix file contained any characters
whose byte length changes during case-folding, for
- example <literal>I</> in Turkish UTF8 locales.
+ example <literal>I</literal> in Turkish UTF8 locales.
</para>
</listitem>
<listitem>
<para>
- Avoid use of <function>sscanf()</> to parse <literal>ispell</>
+ Avoid use of <function>sscanf()</function> to parse <literal>ispell</literal>
dictionary files (Artur Zakirov)
</para>
<listitem>
<para>
- Fix <application>psql</>'s tab completion logic to handle multibyte
+ Fix <application>psql</application>'s tab completion logic to handle multibyte
characters properly (Kyotaro Horiguchi, Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for
- <literal>SECURITY LABEL</> (Tom Lane)
+ Fix <application>psql</application>'s tab completion for
+ <literal>SECURITY LABEL</literal> (Tom Lane)
</para>
<para>
- Pressing TAB after <literal>SECURITY LABEL</> might cause a crash
+ Pressing TAB after <literal>SECURITY LABEL</literal> might cause a crash
or offering of inappropriate keywords.
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_ctl</> accept a wait timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if none is specified on
+ Make <application>pg_ctl</application> accept a wait timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if none is specified on
the command line (Noah Misch)
</para>
<listitem>
<para>
Fix incorrect test for Windows service status
- in <application>pg_ctl</> (Manuel Mathar)
+ in <application>pg_ctl</application> (Manuel Mathar)
</para>
<para>
The previous set of minor releases attempted to
- fix <application>pg_ctl</> to properly determine whether to send log
+ fix <application>pg_ctl</application> to properly determine whether to send log
messages to Window's Event Log, but got the test backwards.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pgbench</> to correctly handle the combination
- of <literal>-C</> and <literal>-M prepared</> options (Tom Lane)
+ Fix <application>pgbench</application> to correctly handle the combination
+ of <literal>-C</literal> and <literal>-M prepared</literal> options (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, skip creating a deletion script when
+ In <application>pg_upgrade</application>, skip creating a deletion script when
the new data directory is inside the old data directory (Bruce
Momjian)
</para>
<listitem>
<para>
Fix multiple mistakes in the statistics returned
- by <filename>contrib/pgstattuple</>'s <function>pgstatindex()</>
+ by <filename>contrib/pgstattuple</filename>'s <function>pgstatindex()</function>
function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Remove dependency on <literal>psed</> in MSVC builds, since it's no
+ Remove dependency on <literal>psed</literal> in MSVC builds, since it's no
longer provided by core Perl (Michael Paquier, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016c
+ Update time zone data files to <application>tzdata</application> release 2016c
for DST law changes in Azerbaijan, Chile, Haiti, Palestine, and Russia
(Altai, Astrakhan, Kirov, Sakhalin, Ulyanovsk regions), plus
historical corrections for Lithuania, Moldova, and Russia
<para>
However, if you are upgrading an installation that contains any GIN
- indexes that use the (non-default) <literal>jsonb_path_ops</> operator
+ indexes that use the (non-default) <literal>jsonb_path_ops</literal> operator
class, see the first changelog entry below.
</para>
<listitem>
<para>
- Fix inconsistent hash calculations in <literal>jsonb_path_ops</> GIN
+ Fix inconsistent hash calculations in <literal>jsonb_path_ops</literal> GIN
indexes (Tom Lane)
</para>
<para>
- When processing <type>jsonb</> values that contain both scalars and
+ When processing <type>jsonb</type> values that contain both scalars and
sub-objects at the same nesting level, for example an array containing
both scalars and sub-arrays, key hash values could be calculated
differently than they would be for the same key in a different context.
This could result in queries not finding entries that they should find.
Fixing this means that existing indexes may now be inconsistent with the
new hash calculation code. Users
- should <command>REINDEX</> <literal>jsonb_path_ops</> GIN indexes after
+ should <command>REINDEX</command> <literal>jsonb_path_ops</literal> GIN indexes after
installing this update to make sure that all searches work as expected.
</para>
</listitem>
<listitem>
<para>
- Perform an immediate shutdown if the <filename>postmaster.pid</> file
+ Perform an immediate shutdown if the <filename>postmaster.pid</filename> file
is removed (Tom Lane)
</para>
<para>
The postmaster now checks every minute or so
- that <filename>postmaster.pid</> is still there and still contains its
+ that <filename>postmaster.pid</filename> is still there and still contains its
own PID. If not, it performs an immediate shutdown, as though it had
- received <systemitem>SIGQUIT</>. The main motivation for this change
+ received <systemitem>SIGQUIT</systemitem>. The main motivation for this change
is to ensure that failed buildfarm runs will get cleaned up without
manual intervention; but it also serves to limit the bad effects if a
- DBA forcibly removes <filename>postmaster.pid</> and then starts a new
+ DBA forcibly removes <filename>postmaster.pid</filename> and then starts a new
postmaster.
</para>
</listitem>
<listitem>
<para>
- In <literal>SERIALIZABLE</> transaction isolation mode, serialization
+ In <literal>SERIALIZABLE</literal> transaction isolation mode, serialization
anomalies could be missed due to race conditions during insertions
(Kevin Grittner, Thomas Munro)
</para>
<listitem>
<para>
Fix failure to emit appropriate WAL records when doing <literal>ALTER
- TABLE ... SET TABLESPACE</> for unlogged relations (Michael Paquier,
+ TABLE ... SET TABLESPACE</literal> for unlogged relations (Michael Paquier,
Andres Freund)
</para>
<listitem>
<para>
- Fix <command>ALTER COLUMN TYPE</> to reconstruct inherited check
+ Fix <command>ALTER COLUMN TYPE</command> to reconstruct inherited check
constraints properly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to change ownership of composite types
+ Fix <command>REASSIGN OWNED</command> to change ownership of composite types
properly (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> and <command>ALTER OWNER</> to correctly
+ Fix <command>REASSIGN OWNED</command> and <command>ALTER OWNER</command> to correctly
update granted-permissions lists when changing owners of data types,
foreign data wrappers, or foreign servers (Bruce Momjian,
Álvaro Herrera)
<listitem>
<para>
- Fix <command>REASSIGN OWNED</> to ignore foreign user mappings,
+ Fix <command>REASSIGN OWNED</command> to ignore foreign user mappings,
rather than fail (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix planner's handling of <literal>LATERAL</> references (Tom
+ Fix planner's handling of <literal>LATERAL</literal> references (Tom
Lane)
</para>
<para>
This fixes some corner cases that led to <quote>failed to build any
- N-way joins</> or <quote>could not devise a query plan</> planner
+ N-way joins</quote> or <quote>could not devise a query plan</quote> planner
failures.
</para>
</listitem>
<listitem>
<para>
- Speed up generation of unique table aliases in <command>EXPLAIN</> and
+ Speed up generation of unique table aliases in <command>EXPLAIN</command> and
rule dumping, and ensure that generated aliases do not
- exceed <literal>NAMEDATALEN</> (Tom Lane)
+ exceed <literal>NAMEDATALEN</literal> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of whole-row Vars in <literal>ROW()</>
- and <literal>VALUES()</> lists (Tom Lane)
+ Fix dumping of whole-row Vars in <literal>ROW()</literal>
+ and <literal>VALUES()</literal> lists (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Translation of minus-infinity dates and timestamps to <type>json</>
- or <type>jsonb</> incorrectly rendered them as plus-infinity (Tom Lane)
+ Translation of minus-infinity dates and timestamps to <type>json</type>
+ or <type>jsonb</type> incorrectly rendered them as plus-infinity (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix possible internal overflow in <type>numeric</> division
+ Fix possible internal overflow in <type>numeric</type> division
(Dean Rasheed)
</para>
</listitem>
<para>
This causes the code to emit <quote>regular expression is too
- complex</> errors in some cases that previously used unreasonable
+ complex</quote> errors in some cases that previously used unreasonable
amounts of time and memory.
</para>
</listitem>
<listitem>
<para>
- Make <literal>%h</> and <literal>%r</> escapes
- in <varname>log_line_prefix</> work for messages emitted due
- to <varname>log_connections</> (Tom Lane)
+ Make <literal>%h</literal> and <literal>%r</literal> escapes
+ in <varname>log_line_prefix</varname> work for messages emitted due
+ to <varname>log_connections</varname> (Tom Lane)
</para>
<para>
- Previously, <literal>%h</>/<literal>%r</> started to work just after a
- new session had emitted the <quote>connection received</> log message;
+ Previously, <literal>%h</literal>/<literal>%r</literal> started to work just after a
+ new session had emitted the <quote>connection received</quote> log message;
now they work for that message too.
</para>
</listitem>
<para>
This oversight resulted in failure to recover from crashes
- whenever <varname>logging_collector</> is turned on.
+ whenever <varname>logging_collector</varname> is turned on.
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, ensure that <application>libreadline</>'s idea
+ In <application>psql</application>, ensure that <application>libreadline</application>'s idea
of the screen size is updated when the terminal window size changes
(Merlin Moncure)
</para>
<para>
- Previously, <application>libreadline</> did not notice if the window
+ Previously, <application>libreadline</application> did not notice if the window
was resized during query output, leading to strange behavior during
later input of multiline queries.
</para>
<listitem>
<para>
- Fix <application>psql</>'s <literal>\det</> command to interpret its
- pattern argument the same way as other <literal>\d</> commands with
+ Fix <application>psql</application>'s <literal>\det</literal> command to interpret its
+ pattern argument the same way as other <literal>\d</literal> commands with
potentially schema-qualified patterns do (Reece Hart)
</para>
</listitem>
<listitem>
<para>
- Avoid possible crash in <application>psql</>'s <literal>\c</> command
+ Avoid possible crash in <application>psql</application>'s <literal>\c</literal> command
when previous connection was via Unix socket and command specifies a
new hostname and same username (Tom Lane)
</para>
<listitem>
<para>
- In <literal>pg_ctl start -w</>, test child process status directly
+ In <literal>pg_ctl start -w</literal>, test child process status directly
rather than relying on heuristics (Tom Lane, Michael Paquier)
</para>
<para>
- Previously, <application>pg_ctl</> relied on an assumption that the new
- postmaster would always create <filename>postmaster.pid</> within five
+ Previously, <application>pg_ctl</application> relied on an assumption that the new
+ postmaster would always create <filename>postmaster.pid</filename> within five
seconds. But that can fail on heavily-loaded systems,
- causing <application>pg_ctl</> to report incorrectly that the
+ causing <application>pg_ctl</application> to report incorrectly that the
postmaster failed to start.
</para>
<para>
Except on Windows, this change also means that a <literal>pg_ctl start
- -w</> done immediately after another such command will now reliably
+ -w</literal> done immediately after another such command will now reliably
fail, whereas previously it would report success if done within two
seconds of the first command.
</para>
<listitem>
<para>
- In <literal>pg_ctl start -w</>, don't attempt to use a wildcard listen
+ In <literal>pg_ctl start -w</literal>, don't attempt to use a wildcard listen
address to connect to the postmaster (Kondo Yuta)
</para>
<para>
- On Windows, <application>pg_ctl</> would fail to detect postmaster
- startup if <varname>listen_addresses</> is set to <literal>0.0.0.0</>
- or <literal>::</>, because it would try to use that value verbatim as
+ On Windows, <application>pg_ctl</application> would fail to detect postmaster
+ startup if <varname>listen_addresses</varname> is set to <literal>0.0.0.0</literal>
+ or <literal>::</literal>, because it would try to use that value verbatim as
the address to connect to, which doesn't work. Instead assume
- that <literal>127.0.0.1</> or <literal>::1</>, respectively, is the
+ that <literal>127.0.0.1</literal> or <literal>::1</literal>, respectively, is the
right thing to use.
</para>
</listitem>
<listitem>
<para>
- In <application>pg_ctl</> on Windows, check service status to decide
+ In <application>pg_ctl</application> on Windows, check service status to decide
where to send output, rather than checking if standard output is a
terminal (Michael Paquier)
</para>
<listitem>
<para>
- In <application>pg_dump</> and <application>pg_basebackup</>, adopt
+ In <application>pg_dump</application> and <application>pg_basebackup</application>, adopt
the GNU convention for handling tar-archive members exceeding 8GB
(Tom Lane)
</para>
<para>
- The POSIX standard for <literal>tar</> file format does not allow
+ The POSIX standard for <literal>tar</literal> file format does not allow
archive member files to exceed 8GB, but most modern implementations
- of <application>tar</> support an extension that fixes that. Adopt
- this extension so that <application>pg_dump</> with <option>-Ft</> no
+ of <application>tar</application> support an extension that fixes that. Adopt
+ this extension so that <application>pg_dump</application> with <option>-Ft</option> no
longer fails on tables with more than 8GB of data, and so
- that <application>pg_basebackup</> can handle files larger than 8GB.
+ that <application>pg_basebackup</application> can handle files larger than 8GB.
In addition, fix some portability issues that could cause failures for
members between 4GB and 8GB on some platforms. Potentially these
problems could cause unrecoverable data loss due to unreadable backup
<listitem>
<para>
- Fix assorted corner-case bugs in <application>pg_dump</>'s processing
+ Fix assorted corner-case bugs in <application>pg_dump</application>'s processing
of extension member objects (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> mark a view's triggers as needing to be
+ Make <application>pg_dump</application> mark a view's triggers as needing to be
processed after its rule, to prevent possible failure during
- parallel <application>pg_restore</> (Tom Lane)
+ parallel <application>pg_restore</application> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Ensure that relation option values are properly quoted
- in <application>pg_dump</> (Kouhei Sutou, Tom Lane)
+ in <application>pg_dump</application> (Kouhei Sutou, Tom Lane)
</para>
<para>
A reloption value that isn't a simple identifier or number could lead
to dump/reload failures due to syntax errors in CREATE statements
- issued by <application>pg_dump</>. This is not an issue with any
- reloption currently supported by core <productname>PostgreSQL</>, but
+ issued by <application>pg_dump</application>. This is not an issue with any
+ reloption currently supported by core <productname>PostgreSQL</productname>, but
extensions could allow reloptions that cause the problem.
</para>
</listitem>
<listitem>
<para>
- Avoid repeated password prompts during parallel <application>pg_dump</>
+ Avoid repeated password prompts during parallel <application>pg_dump</application>
(Zeus Kronion)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</>'s file-copying code to handle errors
+ Fix <application>pg_upgrade</application>'s file-copying code to handle errors
properly on Windows (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Install guards in <application>pgbench</> against corner-case overflow
+ Install guards in <application>pgbench</application> against corner-case overflow
conditions during evaluation of script-specified division or modulo
operators (Fabien Coelho, Michael Paquier)
</para>
<listitem>
<para>
Fix failure to localize messages emitted
- by <application>pg_receivexlog</> and <application>pg_recvlogical</>
+ by <application>pg_receivexlog</application> and <application>pg_recvlogical</application>
(Ioseph Kim)
</para>
</listitem>
<listitem>
<para>
- Avoid dump/reload problems when using both <application>plpython2</>
- and <application>plpython3</> (Tom Lane)
+ Avoid dump/reload problems when using both <application>plpython2</application>
+ and <application>plpython3</application> (Tom Lane)
</para>
<para>
- In principle, both versions of <application>PL/Python</> can be used in
+ In principle, both versions of <application>PL/Python</application> can be used in
the same database, though not in the same session (because the two
- versions of <application>libpython</> cannot safely be used concurrently).
- However, <application>pg_restore</> and <application>pg_upgrade</> both
+ versions of <application>libpython</application> cannot safely be used concurrently).
+ However, <application>pg_restore</application> and <application>pg_upgrade</application> both
do things that can fall foul of the same-session restriction. Work
around that by changing the timing of the check.
</para>
<listitem>
<para>
- Fix <application>PL/Python</> regression tests to pass with Python 3.5
+ Fix <application>PL/Python</application> regression tests to pass with Python 3.5
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Fix premature clearing of <application>libpq</>'s input buffer when
+ Fix premature clearing of <application>libpq</application>'s input buffer when
socket EOF is seen (Tom Lane)
</para>
<para>
- This mistake caused <application>libpq</> to sometimes not report the
+ This mistake caused <application>libpq</application> to sometimes not report the
backend's final error message before reporting <quote>server closed the
- connection unexpectedly</>.
+ connection unexpectedly</quote>.
</para>
</listitem>
<listitem>
<para>
- Prevent certain <application>PL/Java</> parameters from being set by
+ Prevent certain <application>PL/Java</application> parameters from being set by
non-superusers (Noah Misch)
</para>
<para>
- This change mitigates a <application>PL/Java</> security bug
- (CVE-2016-0766), which was fixed in <application>PL/Java</> by marking
+ This change mitigates a <application>PL/Java</application> security bug
+ (CVE-2016-0766), which was fixed in <application>PL/Java</application> by marking
these parameters as superuser-only. To fix the security hazard for
- sites that update <productname>PostgreSQL</> more frequently
- than <application>PL/Java</>, make the core code aware of them also.
+ sites that update <productname>PostgreSQL</productname> more frequently
+ than <application>PL/Java</application>, make the core code aware of them also.
</para>
</listitem>
<listitem>
<para>
- Improve <application>libpq</>'s handling of out-of-memory situations
+ Improve <application>libpq</application>'s handling of out-of-memory situations
(Michael Paquier, Amit Kapila, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix order of arguments
- in <application>ecpg</>-generated <literal>typedef</> statements
+ in <application>ecpg</application>-generated <literal>typedef</literal> statements
(Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Use <literal>%g</> not <literal>%f</> format
- in <application>ecpg</>'s <function>PGTYPESnumeric_from_double()</>
+ Use <literal>%g</literal> not <literal>%f</literal> format
+ in <application>ecpg</application>'s <function>PGTYPESnumeric_from_double()</function>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>-supplied header files to not contain comments
+ Fix <application>ecpg</application>-supplied header files to not contain comments
continued from a preprocessor directive line onto the next line
(Michael Meskes)
</para>
<para>
- Such a comment is rejected by <application>ecpg</>. It's not yet clear
- whether <application>ecpg</> itself should be changed.
+ Such a comment is rejected by <application>ecpg</application>. It's not yet clear
+ whether <application>ecpg</application> itself should be changed.
</para>
</listitem>
<listitem>
<para>
- Fix <function>hstore_to_json_loose()</>'s test for whether
- an <type>hstore</> value can be converted to a JSON number (Tom Lane)
+ Fix <function>hstore_to_json_loose()</function>'s test for whether
+ an <type>hstore</type> value can be converted to a JSON number (Tom Lane)
</para>
<para>
<listitem>
<para>
- Ensure that <filename>contrib/pgcrypto</>'s <function>crypt()</>
+ Ensure that <filename>contrib/pgcrypto</filename>'s <function>crypt()</function>
function can be interrupted by query cancel (Andreas Karlsson)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/postgres_fdw</>, fix bugs triggered by use
- of <literal>tableoid</> in data-modifying commands (Etsuro Fujita,
+ In <filename>contrib/postgres_fdw</filename>, fix bugs triggered by use
+ of <literal>tableoid</literal> in data-modifying commands (Etsuro Fujita,
Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Accept <application>flex</> versions later than 2.5.x
+ Accept <application>flex</application> versions later than 2.5.x
(Tom Lane, Michael Paquier)
</para>
<listitem>
<para>
- Install our <filename>missing</> script where PGXS builds can find it
+ Install our <filename>missing</filename> script where PGXS builds can find it
(Jim Nasby)
</para>
<para>
This allows sane behavior in a PGXS build done on a machine where build
- tools such as <application>bison</> are missing.
+ tools such as <application>bison</application> are missing.
</para>
</listitem>
<listitem>
<para>
- Ensure that <filename>dynloader.h</> is included in the installed
+ Ensure that <filename>dynloader.h</filename> is included in the installed
header files in MSVC builds (Bruce Momjian, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Add variant regression test expected-output file to match behavior of
- current <application>libxml2</> (Tom Lane)
+ current <application>libxml2</application> (Tom Lane)
</para>
<para>
- The fix for <application>libxml2</>'s CVE-2015-7499 causes it not to
+ The fix for <application>libxml2</application>'s CVE-2015-7499 causes it not to
output error context reports in some cases where it used to do so.
This seems to be a bug, but we'll probably have to live with it for
some time, so work around it.
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016a for
+ Update time zone data files to <application>tzdata</application> release 2016a for
DST law changes in Cayman Islands, Metlakatla, and Trans-Baikal
Territory (Zabaykalsky Krai), plus historical corrections for Pakistan.
</para>
<listitem>
<para>
- Guard against stack overflows in <type>json</> parsing
+ Guard against stack overflows in <type>json</type> parsing
(Oskari Saarenmaa)
</para>
<para>
- If an application constructs PostgreSQL <type>json</>
- or <type>jsonb</> values from arbitrary user input, the application's
+ If an application constructs PostgreSQL <type>json</type>
+ or <type>jsonb</type> values from arbitrary user input, the application's
users can reliably crash the PostgreSQL server, causing momentary
denial of service. (CVE-2015-5289)
</para>
<listitem>
<para>
- Fix <filename>contrib/pgcrypto</> to detect and report
- too-short <function>crypt()</> salts (Josh Kupershmidt)
+ Fix <filename>contrib/pgcrypto</filename> to detect and report
+ too-short <function>crypt()</function> salts (Josh Kupershmidt)
</para>
<para>
<listitem>
<para>
Fix possible deadlock during WAL insertion
- when <varname>commit_delay</> is set (Heikki Linnakangas)
+ when <varname>commit_delay</varname> is set (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Fix insertion of relations into the relation cache <quote>init file</>
+ Fix insertion of relations into the relation cache <quote>init file</quote>
(Tom Lane)
</para>
<para>
An oversight in a patch in the most recent minor releases
- caused <structname>pg_trigger_tgrelid_tgname_index</> to be omitted
+ caused <structname>pg_trigger_tgrelid_tgname_index</structname> to be omitted
from the init file. Subsequent sessions detected this, then deemed the
init file to be broken and silently ignored it, resulting in a
significant degradation in session startup time. In addition to fixing
<listitem>
<para>
- Improve <command>LISTEN</> startup time when there are many unread
+ Improve <command>LISTEN</command> startup time when there are many unread
notifications (Matt Newell)
</para>
</listitem>
</para>
<para>
- This was seen primarily when restoring <application>pg_dump</> output
+ This was seen primarily when restoring <application>pg_dump</application> output
for databases with many thousands of tables.
</para>
</listitem>
too many bugs in practice, both in the underlying OpenSSL library and
in our usage of it. Renegotiation will be removed entirely in 9.5 and
later. In the older branches, just change the default value
- of <varname>ssl_renegotiation_limit</> to zero (disabled).
+ of <varname>ssl_renegotiation_limit</varname> to zero (disabled).
</para>
</listitem>
<listitem>
<para>
- Lower the minimum values of the <literal>*_freeze_max_age</> parameters
+ Lower the minimum values of the <literal>*_freeze_max_age</literal> parameters
(Andres Freund)
</para>
<listitem>
<para>
- Limit the maximum value of <varname>wal_buffers</> to 2GB to avoid
+ Limit the maximum value of <varname>wal_buffers</varname> to 2GB to avoid
server crashes (Josh Berkus)
</para>
</listitem>
<listitem>
<para>
Avoid logging complaints when a parameter that can only be set at
- server start appears multiple times in <filename>postgresql.conf</>,
- and fix counting of line numbers after an <literal>include_dir</>
+ server start appears multiple times in <filename>postgresql.conf</filename>,
+ and fix counting of line numbers after an <literal>include_dir</literal>
directive (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix rare internal overflow in multiplication of <type>numeric</> values
+ Fix rare internal overflow in multiplication of <type>numeric</type> values
(Dean Rasheed)
</para>
</listitem>
<listitem>
<para>
Guard against hard-to-reach stack overflows involving record types,
- range types, <type>json</>, <type>jsonb</>, <type>tsquery</>,
- <type>ltxtquery</> and <type>query_int</> (Noah Misch)
+ range types, <type>json</type>, <type>jsonb</type>, <type>tsquery</type>,
+ <type>ltxtquery</type> and <type>query_int</type> (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Fix handling of <literal>DOW</> and <literal>DOY</> in datetime input
+ Fix handling of <literal>DOW</literal> and <literal>DOY</literal> in datetime input
(Greg Stark)
</para>
<para>
These tokens aren't meant to be used in datetime values, but previously
they resulted in opaque internal error messages rather
- than <quote>invalid input syntax</>.
+ than <quote>invalid input syntax</quote>.
</para>
</listitem>
<listitem>
<para>
Add recursion depth protections to regular expression, <literal>SIMILAR
- TO</>, and <literal>LIKE</> matching (Tom Lane)
+ TO</literal>, and <literal>LIKE</literal> matching (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <quote>unexpected out-of-memory situation during sort</> errors
- when using tuplestores with small <varname>work_mem</> settings (Tom
+ Fix <quote>unexpected out-of-memory situation during sort</quote> errors
+ when using tuplestores with small <varname>work_mem</varname> settings (Tom
Lane)
</para>
</listitem>
<listitem>
<para>
- Fix very-low-probability stack overrun in <function>qsort</> (Tom Lane)
+ Fix very-low-probability stack overrun in <function>qsort</function> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <quote>invalid memory alloc request size</> failure in hash joins
- with large <varname>work_mem</> settings (Tomas Vondra, Tom Lane)
+ Fix <quote>invalid memory alloc request size</quote> failure in hash joins
+ with large <varname>work_mem</varname> settings (Tomas Vondra, Tom Lane)
</para>
</listitem>
These mistakes could lead to incorrect query plans that would give wrong
answers, or to assertion failures in assert-enabled builds, or to odd
planner errors such as <quote>could not devise a query plan for the
- given query</>, <quote>could not find pathkey item to
- sort</>, <quote>plan should not reference subplan's variable</>,
- or <quote>failed to assign all NestLoopParams to plan nodes</>.
+ given query</quote>, <quote>could not find pathkey item to
+ sort</quote>, <quote>plan should not reference subplan's variable</quote>,
+ or <quote>failed to assign all NestLoopParams to plan nodes</quote>.
Thanks are due to Andreas Seltenreich and Piotr Stefaniak for fuzz
testing that exposed these problems.
</para>
<listitem>
<para>
- Improve planner's performance for <command>UPDATE</>/<command>DELETE</>
+ Improve planner's performance for <command>UPDATE</command>/<command>DELETE</command>
on large inheritance sets (Tom Lane, Dean Rasheed)
</para>
</listitem>
<para>
During postmaster shutdown, ensure that per-socket lock files are
removed and listen sockets are closed before we remove
- the <filename>postmaster.pid</> file (Tom Lane)
+ the <filename>postmaster.pid</filename> file (Tom Lane)
</para>
<para>
This avoids race-condition failures if an external script attempts to
- start a new postmaster as soon as <literal>pg_ctl stop</> returns.
+ start a new postmaster as soon as <literal>pg_ctl stop</literal> returns.
</para>
</listitem>
<listitem>
<para>
- Do not print a <literal>WARNING</> when an autovacuum worker is already
+ Do not print a <literal>WARNING</literal> when an autovacuum worker is already
gone when we attempt to signal it, and reduce log verbosity for such
signals (Tom Lane)
</para>
</para>
<para>
- <command>VACUUM</> attempted to recycle such pages, but did so in a
+ <command>VACUUM</command> attempted to recycle such pages, but did so in a
way that wasn't crash-safe.
</para>
</listitem>
<listitem>
<para>
Fix off-by-one error that led to otherwise-harmless warnings
- about <quote>apparent wraparound</> in subtrans/multixact truncation
+ about <quote>apparent wraparound</quote> in subtrans/multixact truncation
(Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Fix misreporting of <command>CONTINUE</> and <command>MOVE</> statement
- types in <application>PL/pgSQL</>'s error context messages
+ Fix misreporting of <command>CONTINUE</command> and <command>MOVE</command> statement
+ types in <application>PL/pgSQL</application>'s error context messages
(Pavel Stehule, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <application>PL/Perl</> to handle non-<acronym>ASCII</> error
+ Fix <application>PL/Perl</application> to handle non-<acronym>ASCII</acronym> error
message texts correctly (Alex Hunsaker)
</para>
</listitem>
<listitem>
<para>
- Fix <application>PL/Python</> crash when returning the string
- representation of a <type>record</> result (Tom Lane)
+ Fix <application>PL/Python</application> crash when returning the string
+ representation of a <type>record</type> result (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix some places in <application>PL/Tcl</> that neglected to check for
- failure of <function>malloc()</> calls (Michael Paquier, Álvaro
+ Fix some places in <application>PL/Tcl</application> that neglected to check for
+ failure of <function>malloc()</function> calls (Michael Paquier, Álvaro
Herrera)
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/isn</>, fix output of ISBN-13 numbers that begin
+ In <filename>contrib/isn</filename>, fix output of ISBN-13 numbers that begin
with 979 (Fabien Coelho)
</para>
<listitem>
<para>
- Improve <filename>contrib/pg_stat_statements</>' handling of
+ Improve <filename>contrib/pg_stat_statements</filename>' handling of
query-text garbage collection (Peter Geoghegan)
</para>
<listitem>
<para>
- Improve <filename>contrib/postgres_fdw</>'s handling of
+ Improve <filename>contrib/postgres_fdw</filename>'s handling of
collation-related decisions (Tom Lane)
</para>
<para>
The main user-visible effect is expected to be that comparisons
- involving <type>varchar</> columns will be sent to the remote server
+ involving <type>varchar</type> columns will be sent to the remote server
for execution in more cases than before.
</para>
</listitem>
<listitem>
<para>
- Improve <application>libpq</>'s handling of out-of-memory conditions
+ Improve <application>libpq</application>'s handling of out-of-memory conditions
(Michael Paquier, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix memory leaks and missing out-of-memory checks
- in <application>ecpg</> (Michael Paquier)
+ in <application>ecpg</application> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s code for locale-aware formatting of numeric
+ Fix <application>psql</application>'s code for locale-aware formatting of numeric
output (Tom Lane)
</para>
<para>
- The formatting code invoked by <literal>\pset numericlocale on</>
+ The formatting code invoked by <literal>\pset numericlocale on</literal>
did the wrong thing for some uncommon cases such as numbers with an
exponent but no decimal point. It could also mangle already-localized
- output from the <type>money</> data type.
+ output from the <type>money</type> data type.
</para>
</listitem>
<listitem>
<para>
- Prevent crash in <application>psql</>'s <command>\c</> command when
+ Prevent crash in <application>psql</application>'s <command>\c</command> command when
there is no current connection (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> handle inherited <literal>NOT VALID</>
+ Make <application>pg_dump</application> handle inherited <literal>NOT VALID</literal>
check constraints correctly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix selection of default <application>zlib</> compression level
- in <application>pg_dump</>'s directory output format (Andrew Dunstan)
+ Fix selection of default <application>zlib</application> compression level
+ in <application>pg_dump</application>'s directory output format (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Ensure that temporary files created during a <application>pg_dump</>
- run with <acronym>tar</>-format output are not world-readable (Michael
+ Ensure that temporary files created during a <application>pg_dump</application>
+ run with <acronym>tar</acronym>-format output are not world-readable (Michael
Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> and <application>pg_upgrade</> to support
- cases where the <literal>postgres</> or <literal>template1</> database
+ Fix <application>pg_dump</application> and <application>pg_upgrade</application> to support
+ cases where the <literal>postgres</literal> or <literal>template1</literal> database
is in a non-default tablespace (Marti Raudsepp, Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to handle object privileges sanely when
+ Fix <application>pg_dump</application> to handle object privileges sanely when
dumping from a server too old to have a particular privilege type
(Tom Lane)
</para>
<para>
When dumping data types from pre-9.2 servers, and when dumping
functions or procedural languages from pre-7.3
- servers, <application>pg_dump</> would
- produce <command>GRANT</>/<command>REVOKE</> commands that revoked the
+ servers, <application>pg_dump</application> would
+ produce <command>GRANT</command>/<command>REVOKE</command> commands that revoked the
owner's grantable privileges and instead granted all privileges
- to <literal>PUBLIC</>. Since the privileges involved are
- just <literal>USAGE</> and <literal>EXECUTE</>, this isn't a security
+ to <literal>PUBLIC</literal>. Since the privileges involved are
+ just <literal>USAGE</literal> and <literal>EXECUTE</literal>, this isn't a security
problem, but it's certainly a surprising representation of the older
systems' behavior. Fix it to leave the default privilege state alone
in these cases.
<listitem>
<para>
- Fix <application>pg_dump</> to dump shell types (Tom Lane)
+ Fix <application>pg_dump</application> to dump shell types (Tom Lane)
</para>
<para>
Shell types (that is, not-yet-fully-defined types) aren't useful for
- much, but nonetheless <application>pg_dump</> should dump them.
+ much, but nonetheless <application>pg_dump</application> should dump them.
</para>
</listitem>
<listitem>
<para>
- Fix assorted minor memory leaks in <application>pg_dump</> and other
+ Fix assorted minor memory leaks in <application>pg_dump</application> and other
client-side programs (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pgbench</>'s progress-report behavior when a query,
- or <application>pgbench</> itself, gets stuck (Fabien Coelho)
+ Fix <application>pgbench</application>'s progress-report behavior when a query,
+ or <application>pgbench</application> itself, gets stuck (Fabien Coelho)
</para>
</listitem>
<listitem>
<para>
Fix spinlock assembly code for PPC hardware to be compatible
- with <acronym>AIX</>'s native assembler (Tom Lane)
+ with <acronym>AIX</acronym>'s native assembler (Tom Lane)
</para>
<para>
- Building with <application>gcc</> didn't work if <application>gcc</>
+ Building with <application>gcc</application> didn't work if <application>gcc</application>
had been configured to use the native assembler, which is becoming more
common.
</para>
<listitem>
<para>
- On <acronym>AIX</>, test the <literal>-qlonglong</> compiler option
+ On <acronym>AIX</acronym>, test the <literal>-qlonglong</literal> compiler option
rather than just assuming it's safe to use (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- On <acronym>AIX</>, use <literal>-Wl,-brtllib</> link option to allow
+ On <acronym>AIX</acronym>, use <literal>-Wl,-brtllib</literal> link option to allow
symbols to be resolved at runtime (Noah Misch)
</para>
<listitem>
<para>
Avoid use of inline functions when compiling with
- 32-bit <application>xlc</>, due to compiler bugs (Noah Misch)
+ 32-bit <application>xlc</application>, due to compiler bugs (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Use <filename>librt</> for <function>sched_yield()</> when necessary,
+ Use <filename>librt</filename> for <function>sched_yield()</function> when necessary,
which it is on some Solaris versions (Oskari Saarenmaa)
</para>
</listitem>
<listitem>
<para>
- Translate encoding <literal>UHC</> as Windows code page 949
+ Translate encoding <literal>UHC</literal> as Windows code page 949
(Noah Misch)
</para>
<listitem>
<para>
Fix postmaster startup failure due to not
- copying <function>setlocale()</>'s return value (Noah Misch)
+ copying <function>setlocale()</function>'s return value (Noah Misch)
</para>
<para>
This has been reported on Windows systems with the ANSI code page set
- to CP936 (<quote>Chinese (Simplified, PRC)</>), and may occur with
+ to CP936 (<quote>Chinese (Simplified, PRC)</quote>), and may occur with
other multibyte code pages.
</para>
</listitem>
<listitem>
<para>
- Fix Windows <filename>install.bat</> script to handle target directory
+ Fix Windows <filename>install.bat</filename> script to handle target directory
names that contain spaces (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Make the numeric form of the <productname>PostgreSQL</> version number
- (e.g., <literal>90405</>) readily available to extension Makefiles,
- as a variable named <varname>VERSION_NUM</> (Michael Paquier)
+ Make the numeric form of the <productname>PostgreSQL</productname> version number
+ (e.g., <literal>90405</literal>) readily available to extension Makefiles,
+ as a variable named <varname>VERSION_NUM</varname> (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015g for
+ Update time zone data files to <application>tzdata</application> release 2015g for
DST law changes in Cayman Islands, Fiji, Moldova, Morocco, Norfolk
Island, North Korea, Turkey, and Uruguay. There is a new zone name
- <literal>America/Fort_Nelson</> for the Canadian Northern Rockies.
+ <literal>America/Fort_Nelson</literal> for the Canadian Northern Rockies.
</para>
</listitem>
<para>
However, if you are upgrading an installation that was previously
- upgraded using a <application>pg_upgrade</> version between 9.3.0 and
+ upgraded using a <application>pg_upgrade</application> version between 9.3.0 and
9.3.4 inclusive, see the first changelog entry below.
</para>
</para>
<para>
- Recent <productname>PostgreSQL</> releases introduced mechanisms to
+ Recent <productname>PostgreSQL</productname> releases introduced mechanisms to
protect against multixact wraparound, but some of that code did not
account for the possibility that it would need to run during crash
recovery, when the database may not be in a consistent state. This
could result in failure to restart after a crash, or failure to start
up a secondary server. The lingering effects of a previously-fixed
- bug in <application>pg_upgrade</> could also cause such a failure, in
- installations that had used <application>pg_upgrade</> versions
+ bug in <application>pg_upgrade</application> could also cause such a failure, in
+ installations that had used <application>pg_upgrade</application> versions
between 9.3.0 and 9.3.4.
</para>
<para>
- The <application>pg_upgrade</> bug in question was that it would
- set <literal>oldestMultiXid</> to 1 in <filename>pg_control</> even
+ The <application>pg_upgrade</application> bug in question was that it would
+ set <literal>oldestMultiXid</literal> to 1 in <filename>pg_control</filename> even
if the true value should be higher. With the fixes introduced in
this release, such a situation will result in immediate emergency
- autovacuuming until a correct <literal>oldestMultiXid</> value can
+ autovacuuming until a correct <literal>oldestMultiXid</literal> value can
be determined. If that would pose a hardship, users can avoid it by
- doing manual vacuuming <emphasis>before</> upgrading to this release.
+ doing manual vacuuming <emphasis>before</emphasis> upgrading to this release.
In detail:
<orderedlist>
<listitem>
<para>
- Check whether <application>pg_controldata</> reports <quote>Latest
- checkpoint's oldestMultiXid</> to be 1. If not, there's nothing
+ Check whether <application>pg_controldata</application> reports <quote>Latest
+ checkpoint's oldestMultiXid</quote> to be 1. If not, there's nothing
to do.
</para>
</listitem>
<listitem>
<para>
- Look in <filename>PGDATA/pg_multixact/offsets</> to see if there's a
- file named <filename>0000</>. If there is, there's nothing to do.
+ Look in <filename>PGDATA/pg_multixact/offsets</filename> to see if there's a
+ file named <filename>0000</filename>. If there is, there's nothing to do.
</para>
</listitem>
<listitem>
<para>
Otherwise, for each table that has
- <structname>pg_class</>.<structfield>relminmxid</> equal to 1,
- <command>VACUUM</> that table with
+ <structname>pg_class</structname>.<structfield>relminmxid</structfield> equal to 1,
+ <command>VACUUM</command> that table with
both <xref linkend="guc-vacuum-multixact-freeze-min-age">
and <xref linkend="guc-vacuum-multixact-freeze-table-age"> set to
zero. (You can use the vacuum cost delay parameters described
<para>
With just the wrong timing of concurrent activity, a <command>VACUUM
- FULL</> on a system catalog might fail to update the <quote>init file</>
+ FULL</command> on a system catalog might fail to update the <quote>init file</quote>
that's used to avoid cache-loading work for new sessions. This would
result in later sessions being unable to access that catalog at all.
This is a very ancient bug, but it's so hard to trigger that no
<listitem>
<para>
Avoid deadlock between incoming sessions and <literal>CREATE/DROP
- DATABASE</> (Tom Lane)
+ DATABASE</literal> (Tom Lane)
</para>
<para>
A new session starting in a database that is the target of
- a <command>DROP DATABASE</> command, or is the template for
- a <command>CREATE DATABASE</> command, could cause the command to wait
+ a <command>DROP DATABASE</command> command, or is the template for
+ a <command>CREATE DATABASE</command> command, could cause the command to wait
for five seconds and then fail, even if the new session would have
exited before that.
</para>
<listitem>
<para>
- Avoid failures while <function>fsync</>'ing data directory during
+ Avoid failures while <function>fsync</function>'ing data directory during
crash restart (Abhijit Menon-Sen, Tom Lane)
</para>
<para>
- In the previous minor releases we added a patch to <function>fsync</>
+ In the previous minor releases we added a patch to <function>fsync</function>
everything in the data directory after a crash. Unfortunately its
response to any error condition was to fail, thereby preventing the
server from starting up, even when the problem was quite harmless.
</para>
<para>
- Also apply the same rules in <literal>initdb --sync-only</>.
+ Also apply the same rules in <literal>initdb --sync-only</literal>.
This case is less critical but it should act similarly.
</para>
</listitem>
<listitem>
<para>
- Fix <function>pg_get_functiondef()</> to show
- functions' <literal>LEAKPROOF</> property, if set (Jeevan Chalke)
+ Fix <function>pg_get_functiondef()</function> to show
+ functions' <literal>LEAKPROOF</literal> property, if set (Jeevan Chalke)
</para>
</listitem>
<listitem>
<para>
- Fix <function>pushJsonbValue()</> to unpack <type>jbvBinary</>
+ Fix <function>pushJsonbValue()</function> to unpack <type>jbvBinary</type>
objects (Andrew Dunstan)
</para>
<listitem>
<para>
- Remove <application>configure</>'s check prohibiting linking to a
- threaded <application>libpython</>
- on <systemitem class="osname">OpenBSD</> (Tom Lane)
+ Remove <application>configure</application>'s check prohibiting linking to a
+ threaded <application>libpython</application>
+ on <systemitem class="osname">OpenBSD</systemitem> (Tom Lane)
</para>
<para>
The failure this restriction was meant to prevent seems to not be a
- problem anymore on current <systemitem class="osname">OpenBSD</>
+ problem anymore on current <systemitem class="osname">OpenBSD</systemitem>
versions.
</para>
</listitem>
</para>
<para>
- However, if you use <filename>contrib/citext</>'s
- <function>regexp_matches()</> functions, see the changelog entry below
+ However, if you use <filename>contrib/citext</filename>'s
+ <function>regexp_matches()</function> functions, see the changelog entry below
about that.
</para>
</para>
<para>
- Our replacement implementation of <function>snprintf()</> failed to
+ Our replacement implementation of <function>snprintf()</function> failed to
check for errors reported by the underlying system library calls;
the main case that might be missed is out-of-memory situations.
In the worst case this might lead to information exposure, due to our
</para>
<para>
- It remains possible that some calls of the <function>*printf()</>
+ It remains possible that some calls of the <function>*printf()</function>
family of functions are vulnerable to information disclosure if an
out-of-memory error occurs at just the wrong time. We judge the risk
to not be large, but will continue analysis in this area.
<listitem>
<para>
- In <filename>contrib/pgcrypto</>, uniformly report decryption failures
- as <quote>Wrong key or corrupt data</> (Noah Misch)
+ In <filename>contrib/pgcrypto</filename>, uniformly report decryption failures
+ as <quote>Wrong key or corrupt data</quote> (Noah Misch)
</para>
<para>
Previously, some cases of decryption with an incorrect key could report
other error message texts. It has been shown that such variance in
error reports can aid attackers in recovering keys from other systems.
- While it's unknown whether <filename>pgcrypto</>'s specific behaviors
+ While it's unknown whether <filename>pgcrypto</filename>'s specific behaviors
are likewise exploitable, it seems better to avoid the risk by using a
one-size-fits-all message.
(CVE-2015-3167)
<para>
Under certain usage patterns, the existing defenses against this might
- be insufficient, allowing <filename>pg_multixact/members</> files to be
+ be insufficient, allowing <filename>pg_multixact/members</filename> files to be
removed too early, resulting in data loss.
The fix for this includes modifying the server to fail transactions
that would result in overwriting old multixact member ID data, and
<listitem>
<para>
- Fix incorrect declaration of <filename>contrib/citext</>'s
- <function>regexp_matches()</> functions (Tom Lane)
+ Fix incorrect declaration of <filename>contrib/citext</filename>'s
+ <function>regexp_matches()</function> functions (Tom Lane)
</para>
<para>
- These functions should return <type>setof text[]</>, like the core
+ These functions should return <type>setof text[]</type>, like the core
functions they are wrappers for; but they were incorrectly declared as
- returning just <type>text[]</>. This mistake had two results: first,
+ returning just <type>text[]</type>. This mistake had two results: first,
if there was no match you got a scalar null result, whereas what you
- should get is an empty set (zero rows). Second, the <literal>g</> flag
+ should get is an empty set (zero rows). Second, the <literal>g</literal> flag
was effectively ignored, since you would get only one result array even
if there were multiple matches.
</para>
<para>
While the latter behavior is clearly a bug, there might be applications
depending on the former behavior; therefore the function declarations
- will not be changed by default until <productname>PostgreSQL</> 9.5.
+ will not be changed by default until <productname>PostgreSQL</productname> 9.5.
In pre-9.5 branches, the old behavior exists in version 1.0 of
- the <literal>citext</> extension, while we have provided corrected
- declarations in version 1.1 (which is <emphasis>not</> installed by
+ the <literal>citext</literal> extension, while we have provided corrected
+ declarations in version 1.1 (which is <emphasis>not</emphasis> installed by
default). To adopt the fix in pre-9.5 branches, execute
- <literal>ALTER EXTENSION citext UPDATE TO '1.1'</> in each database in
- which <literal>citext</> is installed. (You can also <quote>update</>
+ <literal>ALTER EXTENSION citext UPDATE TO '1.1'</literal> in each database in
+ which <literal>citext</literal> is installed. (You can also <quote>update</quote>
back to 1.0 if you need to undo that.) Be aware that either update
direction will require dropping and recreating any views or rules that
- use <filename>citext</>'s <function>regexp_matches()</> functions.
+ use <filename>citext</filename>'s <function>regexp_matches()</function> functions.
</para>
</listitem>
<listitem>
<para>
- Render infinite dates and timestamps as <literal>infinity</> when
- converting to <type>json</>, rather than throwing an error
+ Render infinite dates and timestamps as <literal>infinity</literal> when
+ converting to <type>json</type>, rather than throwing an error
(Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Fix <type>json</>/<type>jsonb</>'s <function>populate_record()</>
- and <function>to_record()</> functions to handle empty input properly
+ Fix <type>json</type>/<type>jsonb</type>'s <function>populate_record()</function>
+ and <function>to_record()</function> functions to handle empty input properly
(Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Fix behavior when changing foreign key constraint deferrability status
- with <literal>ALTER TABLE ... ALTER CONSTRAINT</> (Tom Lane)
+ with <literal>ALTER TABLE ... ALTER CONSTRAINT</literal> (Tom Lane)
</para>
<para>
<para>
This oversight in the planner has been observed to cause <quote>could
- not find RelOptInfo for given relids</> errors, but it seems possible
+ not find RelOptInfo for given relids</quote> errors, but it seems possible
that sometimes an incorrect query plan might get past that consistency
check and result in silently-wrong query output.
</para>
<para>
This oversight has been seen to lead to <quote>failed to join all
- relations together</> errors in queries involving <literal>LATERAL</>,
+ relations together</quote> errors in queries involving <literal>LATERAL</literal>,
and that might happen in other cases as well.
</para>
</listitem>
<listitem>
<para>
Ensure that row locking occurs properly when the target of
- an <command>UPDATE</> or <command>DELETE</> is a security-barrier view
+ an <command>UPDATE</command> or <command>DELETE</command> is a security-barrier view
(Stephen Frost)
</para>
</listitem>
<para>
On some platforms, the previous coding could result in errors like
- <quote>could not fsync file "pg_replslot/...": Bad file descriptor</>.
+ <quote>could not fsync file "pg_replslot/...": Bad file descriptor</quote>.
</para>
</listitem>
<listitem>
<para>
Fix possible deadlock at startup
- when <literal>max_prepared_transactions</> is too small
+ when <literal>max_prepared_transactions</literal> is too small
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Recursively <function>fsync()</> the data directory after a crash
+ Recursively <function>fsync()</function> the data directory after a crash
(Abhijit Menon-Sen, Robert Haas)
</para>
<para>
This oversight could result in failures in sessions that start
- concurrently with a <command>VACUUM FULL</> on a system catalog.
+ concurrently with a <command>VACUUM FULL</command> on a system catalog.
</para>
</listitem>
<listitem>
<para>
- Fix crash in <function>BackendIdGetTransactionIds()</> when trying
+ Fix crash in <function>BackendIdGetTransactionIds()</function> when trying
to get status for a backend process that just exited (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Cope with unexpected signals in <function>LockBufferForCleanup()</>
+ Cope with unexpected signals in <function>LockBufferForCleanup()</function>
(Andres Freund)
</para>
<para>
This oversight could result in spurious errors about <quote>multiple
- backends attempting to wait for pincount 1</>.
+ backends attempting to wait for pincount 1</quote>.
</para>
</listitem>
<listitem>
<para>
- Fix crash when doing <literal>COPY IN</> to a table with check
+ Fix crash when doing <literal>COPY IN</literal> to a table with check
constraints that contain whole-row references (Tom Lane)
</para>
<listitem>
<para>
- Avoid busy-waiting with short <literal>recovery_min_apply_delay</>
+ Avoid busy-waiting with short <literal>recovery_min_apply_delay</literal>
values (Andres Freund)
</para>
</listitem>
</para>
<para>
- <command>ANALYZE</> executes index expressions many times; if there are
+ <command>ANALYZE</command> executes index expressions many times; if there are
slow functions in such an expression, it's desirable to be able to
- cancel the <command>ANALYZE</> before that loop finishes.
+ cancel the <command>ANALYZE</command> before that loop finishes.
</para>
</listitem>
<listitem>
<para>
- Ensure <structfield>tableoid</> of a foreign table is reported
- correctly when a <literal>READ COMMITTED</> recheck occurs after
- locking rows in <command>SELECT FOR UPDATE</>, <command>UPDATE</>,
- or <command>DELETE</> (Etsuro Fujita)
+ Ensure <structfield>tableoid</structfield> of a foreign table is reported
+ correctly when a <literal>READ COMMITTED</literal> recheck occurs after
+ locking rows in <command>SELECT FOR UPDATE</command>, <command>UPDATE</command>,
+ or <command>DELETE</command> (Etsuro Fujita)
</para>
</listitem>
<listitem>
<para>
- Recommend setting <literal>include_realm</> to 1 when using
+ Recommend setting <literal>include_realm</literal> to 1 when using
Kerberos/GSSAPI/SSPI authentication (Stephen Frost)
</para>
<para>
Without this, identically-named users from different realms cannot be
distinguished. For the moment this is only a documentation change, but
- it will become the default setting in <productname>PostgreSQL</> 9.5.
+ it will become the default setting in <productname>PostgreSQL</productname> 9.5.
</para>
</listitem>
<listitem>
<para>
- Remove code for matching IPv4 <filename>pg_hba.conf</> entries to
+ Remove code for matching IPv4 <filename>pg_hba.conf</filename> entries to
IPv4-in-IPv6 addresses (Tom Lane)
</para>
crashes on some systems, so let's just remove it rather than fix it.
(Had we chosen to fix it, that would make for a subtle and potentially
security-sensitive change in the effective meaning of
- IPv4 <filename>pg_hba.conf</> entries, which does not seem like a good
+ IPv4 <filename>pg_hba.conf</filename> entries, which does not seem like a good
thing to do in minor releases.)
</para>
</listitem>
<listitem>
<para>
After a database crash, don't restart background workers that are
- marked <literal>BGW_NEVER_RESTART</> (Amit Khandekar)
+ marked <literal>BGW_NEVER_RESTART</literal> (Amit Khandekar)
</para>
</listitem>
<listitem>
<para>
- Report WAL flush, not insert, position in <literal>IDENTIFY_SYSTEM</>
+ Report WAL flush, not insert, position in <literal>IDENTIFY_SYSTEM</literal>
replication command (Heikki Linnakangas)
</para>
<para>
This avoids a possible startup failure
- in <application>pg_receivexlog</>.
+ in <application>pg_receivexlog</application>.
</para>
</listitem>
<para>
While shutting down service on Windows, periodically send status
updates to the Service Control Manager to prevent it from killing the
- service too soon; and ensure that <application>pg_ctl</> will wait for
+ service too soon; and ensure that <application>pg_ctl</application> will wait for
shutdown (Krystian Bigaj)
</para>
</listitem>
<listitem>
<para>
- Reduce risk of network deadlock when using <application>libpq</>'s
+ Reduce risk of network deadlock when using <application>libpq</application>'s
non-blocking mode (Heikki Linnakangas)
</para>
buffer every so often, in case the server has sent enough response data
to cause it to block on output. (A typical scenario is that the server
is sending a stream of NOTICE messages during <literal>COPY FROM
- STDIN</>.) This worked properly in the normal blocking mode, but not
- so much in non-blocking mode. We've modified <application>libpq</>
+ STDIN</literal>.) This worked properly in the normal blocking mode, but not
+ so much in non-blocking mode. We've modified <application>libpq</application>
to opportunistically drain input when it can, but a full defense
against this problem requires application cooperation: the application
should watch for socket read-ready as well as write-ready conditions,
- and be sure to call <function>PQconsumeInput()</> upon read-ready.
+ and be sure to call <function>PQconsumeInput()</function> upon read-ready.
</para>
</listitem>
<listitem>
<para>
- In <application>libpq</>, fix misparsing of empty values in URI
+ In <application>libpq</application>, fix misparsing of empty values in URI
connection strings (Thomas Fanghaenel)
</para>
</listitem>
<listitem>
<para>
- Fix array handling in <application>ecpg</> (Michael Meskes)
+ Fix array handling in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</> to sanely handle URIs and conninfo strings as
- the first parameter to <command>\connect</>
+ Fix <application>psql</application> to sanely handle URIs and conninfo strings as
+ the first parameter to <command>\connect</command>
(David Fetter, Andrew Dunstan, Álvaro Herrera)
</para>
<listitem>
<para>
- Suppress incorrect complaints from <application>psql</> on some
- platforms that it failed to write <filename>~/.psql_history</> at exit
+ Suppress incorrect complaints from <application>psql</application> on some
+ platforms that it failed to write <filename>~/.psql_history</filename> at exit
(Tom Lane)
</para>
<para>
This misbehavior was caused by a workaround for a bug in very old
- (pre-2006) versions of <application>libedit</>. We fixed it by
+ (pre-2006) versions of <application>libedit</application>. We fixed it by
removing the workaround, which will cause a similar failure to appear
- for anyone still using such versions of <application>libedit</>.
- Recommendation: upgrade that library, or use <application>libreadline</>.
+ for anyone still using such versions of <application>libedit</application>.
+ Recommendation: upgrade that library, or use <application>libreadline</application>.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</>'s rule for deciding which casts are
+ Fix <application>pg_dump</application>'s rule for deciding which casts are
system-provided casts that should not be dumped (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, fix failure to honor <literal>-Z</>
- compression level option together with <literal>-Fd</>
+ In <application>pg_dump</application>, fix failure to honor <literal>-Z</literal>
+ compression level option together with <literal>-Fd</literal>
(Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> consider foreign key relationships
+ Make <application>pg_dump</application> consider foreign key relationships
between extension configuration tables while choosing dump order
(Gilles Darold, Michael Paquier, Stephen Frost)
</para>
<listitem>
<para>
- Avoid possible <application>pg_dump</> failure when concurrent sessions
+ Avoid possible <application>pg_dump</application> failure when concurrent sessions
are creating and dropping temporary functions (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of views that are just <literal>VALUES(...)</> but have
+ Fix dumping of views that are just <literal>VALUES(...)</literal> but have
column aliases (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Ensure that a view's replication identity is correctly set
- to <literal>nothing</> during dump/restore (Marko Tiikkaja)
+ to <literal>nothing</literal> during dump/restore (Marko Tiikkaja)
</para>
<para>
<listitem>
<para>
- In <application>pg_upgrade</>, force timeline 1 in the new cluster
+ In <application>pg_upgrade</application>, force timeline 1 in the new cluster
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, check for improperly non-connectable
+ In <application>pg_upgrade</application>, check for improperly non-connectable
databases before proceeding
(Bruce Momjian)
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, quote directory paths
- properly in the generated <literal>delete_old_cluster</> script
+ In <application>pg_upgrade</application>, quote directory paths
+ properly in the generated <literal>delete_old_cluster</literal> script
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, preserve database-level freezing info
+ In <application>pg_upgrade</application>, preserve database-level freezing info
properly
(Bruce Momjian)
</para>
<para>
This oversight could cause missing-clog-file errors for tables within
- the <literal>postgres</> and <literal>template1</> databases.
+ the <literal>postgres</literal> and <literal>template1</literal> databases.
</para>
</listitem>
<listitem>
<para>
- Run <application>pg_upgrade</> and <application>pg_resetxlog</> with
+ Run <application>pg_upgrade</application> and <application>pg_resetxlog</application> with
restricted privileges on Windows, so that they don't fail when run by
an administrator (Muhammad Asif Naeem)
</para>
<listitem>
<para>
- Improve handling of <function>readdir()</> failures when scanning
- directories in <application>initdb</> and <application>pg_basebackup</>
+ Improve handling of <function>readdir()</function> failures when scanning
+ directories in <application>initdb</application> and <application>pg_basebackup</application>
(Marco Nenciarini)
</para>
</listitem>
<listitem>
<para>
- Fix slow sorting algorithm in <filename>contrib/intarray</> (Tom Lane)
+ Fix slow sorting algorithm in <filename>contrib/intarray</filename> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015d
+ Update time zone data files to <application>tzdata</application> release 2015d
for DST law changes in Egypt, Mongolia, and Palestine, plus historical
changes in Canada and Chile. Also adopt revised zone abbreviations for
the America/Adak zone (HST/HDT not HAST/HADT).
<para>
However, if you are a Windows user and are using the <quote>Norwegian
- (Bokmål)</> locale, manual action is needed after the upgrade to
- replace any <quote>Norwegian (Bokmål)_Norway</>
- or <quote>norwegian-bokmal</> locale names stored
- in <productname>PostgreSQL</> system catalogs with the plain-ASCII
- alias <quote>Norwegian_Norway</>. For details see
- <ulink url="http://wiki.postgresql.org/wiki/Changes_To_Norwegian_Locale"></>
+ (Bokmål)</quote> locale, manual action is needed after the upgrade to
+ replace any <quote>Norwegian (Bokmål)_Norway</quote>
+ or <quote>norwegian-bokmal</quote> locale names stored
+ in <productname>PostgreSQL</productname> system catalogs with the plain-ASCII
+ alias <quote>Norwegian_Norway</quote>. For details see
+ <ulink url="http://wiki.postgresql.org/wiki/Changes_To_Norwegian_Locale"></ulink>
</para>
</sect2>
<listitem>
<para>
- Fix buffer overruns in <function>to_char()</>
+ Fix buffer overruns in <function>to_char()</function>
(Bruce Momjian)
</para>
<para>
- When <function>to_char()</> processes a numeric formatting template
- calling for a large number of digits, <productname>PostgreSQL</>
+ When <function>to_char()</function> processes a numeric formatting template
+ calling for a large number of digits, <productname>PostgreSQL</productname>
would read past the end of a buffer. When processing a crafted
- timestamp formatting template, <productname>PostgreSQL</> would write
+ timestamp formatting template, <productname>PostgreSQL</productname> would write
past the end of a buffer. Either case could crash the server.
We have not ruled out the possibility of attacks that lead to
privilege escalation, though they seem unlikely.
<listitem>
<para>
- Fix buffer overrun in replacement <function>*printf()</> functions
+ Fix buffer overrun in replacement <function>*printf()</function> functions
(Tom Lane)
</para>
<para>
- <productname>PostgreSQL</> includes a replacement implementation
- of <function>printf</> and related functions. This code will overrun
+ <productname>PostgreSQL</productname> includes a replacement implementation
+ of <function>printf</function> and related functions. This code will overrun
a stack buffer when formatting a floating point number (conversion
- specifiers <literal>e</>, <literal>E</>, <literal>f</>, <literal>F</>,
- <literal>g</> or <literal>G</>) with requested precision greater than
+ specifiers <literal>e</literal>, <literal>E</literal>, <literal>f</literal>, <literal>F</literal>,
+ <literal>g</literal> or <literal>G</literal>) with requested precision greater than
about 500. This will crash the server, and we have not ruled out the
possibility of attacks that lead to privilege escalation.
A database user can trigger such a buffer overrun through
- the <function>to_char()</> SQL function. While that is the only
- affected core <productname>PostgreSQL</> functionality, extension
+ the <function>to_char()</function> SQL function. While that is the only
+ affected core <productname>PostgreSQL</productname> functionality, extension
modules that use printf-family functions may be at risk as well.
</para>
<para>
- This issue primarily affects <productname>PostgreSQL</> on Windows.
- <productname>PostgreSQL</> uses the system implementation of these
+ This issue primarily affects <productname>PostgreSQL</productname> on Windows.
+ <productname>PostgreSQL</productname> uses the system implementation of these
functions where adequate, which it is on other modern platforms.
(CVE-2015-0242)
</para>
<listitem>
<para>
- Fix buffer overruns in <filename>contrib/pgcrypto</>
+ Fix buffer overruns in <filename>contrib/pgcrypto</filename>
(Marko Tiikkaja, Noah Misch)
</para>
<para>
- Errors in memory size tracking within the <filename>pgcrypto</>
+ Errors in memory size tracking within the <filename>pgcrypto</filename>
module permitted stack buffer overruns and improper dependence on the
contents of uninitialized memory. The buffer overrun cases can
crash the server, and we have not ruled out the possibility of
<para>
Some server error messages show the values of columns that violate
a constraint, such as a unique constraint. If the user does not have
- <literal>SELECT</> privilege on all columns of the table, this could
+ <literal>SELECT</literal> privilege on all columns of the table, this could
mean exposing values that the user should not be able to see. Adjust
the code so that values are displayed only when they came from the SQL
command or could be selected by the user.
<listitem>
<para>
- Cope with the Windows locale named <quote>Norwegian (Bokmål)</>
+ Cope with the Windows locale named <quote>Norwegian (Bokmål)</quote>
(Heikki Linnakangas)
</para>
<para>
Non-ASCII locale names are problematic since it's not clear what
encoding they should be represented in. Map the troublesome locale
- name to a plain-ASCII alias, <quote>Norwegian_Norway</>.
+ name to a plain-ASCII alias, <quote>Norwegian_Norway</quote>.
</para>
<para>
- 9.4.0 mapped the troublesome name to <quote>norwegian-bokmal</>,
+ 9.4.0 mapped the troublesome name to <quote>norwegian-bokmal</quote>,
but that turns out not to work on all Windows configurations.
- <quote>Norwegian_Norway</> is now recommended instead.
+ <quote>Norwegian_Norway</quote> is now recommended instead.
</para>
</listitem>
</para>
<para>
- In <literal>READ COMMITTED</> mode, queries that lock or update
+ In <literal>READ COMMITTED</literal> mode, queries that lock or update
recently-updated rows could crash as a result of this bug.
</para>
</listitem>
<listitem>
<para>
Fix failure to wait when a transaction tries to acquire a <literal>FOR
- NO KEY EXCLUSIVE</> tuple lock, while multiple other transactions
- currently hold <literal>FOR SHARE</> locks (Álvaro Herrera)
+ NO KEY EXCLUSIVE</literal> tuple lock, while multiple other transactions
+ currently hold <literal>FOR SHARE</literal> locks (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Improve performance of <command>EXPLAIN</> with large range tables
+ Improve performance of <command>EXPLAIN</command> with large range tables
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <type>jsonb</> Unicode escape processing, and in consequence
- disallow <literal>\u0000</> (Tom Lane)
+ Fix <type>jsonb</type> Unicode escape processing, and in consequence
+ disallow <literal>\u0000</literal> (Tom Lane)
</para>
<para>
- Previously, the JSON Unicode escape <literal>\u0000</> was accepted
+ Previously, the JSON Unicode escape <literal>\u0000</literal> was accepted
and was stored as those six characters; but that is indistinguishable
- from what is stored for the input <literal>\\u0000</>, resulting in
+ from what is stored for the input <literal>\\u0000</literal>, resulting in
ambiguity. Moreover, in cases where de-escaped textual output is
- expected, such as the <literal>->></> operator, the sequence was
- printed as <literal>\u0000</>, which does not meet the expectation
+ expected, such as the <literal>->></literal> operator, the sequence was
+ printed as <literal>\u0000</literal>, which does not meet the expectation
that JSON escaping would be removed. (Consistent behavior would
- require emitting a zero byte, but <productname>PostgreSQL</> does not
+ require emitting a zero byte, but <productname>PostgreSQL</productname> does not
support zero bytes embedded in text strings.) 9.4.0 included an
ill-advised attempt to improve this situation by adjusting JSON output
conversion rules; but of course that could not fix the fundamental
ambiguity, and it turned out to break other usages of Unicode escape
sequences. Revert that, and to avoid the core problem,
- reject <literal>\u0000</> in <type>jsonb</> input.
+ reject <literal>\u0000</literal> in <type>jsonb</type> input.
</para>
<para>
- If a <type>jsonb</> column contains a <literal>\u0000</> value stored
+ If a <type>jsonb</type> column contains a <literal>\u0000</literal> value stored
with 9.4.0, it will henceforth read out as though it
- were <literal>\\u0000</>, which is the other valid interpretation of
+ were <literal>\\u0000</literal>, which is the other valid interpretation of
the data stored by 9.4.0 for this case.
</para>
<para>
- The <type>json</> type did not have the storage-ambiguity problem, but
+ The <type>json</type> type did not have the storage-ambiguity problem, but
it did have the problem of inconsistent de-escaped textual output.
- Therefore <literal>\u0000</> will now also be rejected
- in <type>json</> values when conversion to de-escaped form is
+ Therefore <literal>\u0000</literal> will now also be rejected
+ in <type>json</type> values when conversion to de-escaped form is
required. This change does not break the ability to
- store <literal>\u0000</> in <type>json</> columns so long as no
+ store <literal>\u0000</literal> in <type>json</type> columns so long as no
processing is done on the values. This is exactly parallel to the
cases in which non-ASCII Unicode escapes are allowed when the database
encoding is not UTF8.
<listitem>
<para>
- Fix namespace handling in <function>xpath()</> (Ali Akbar)
+ Fix namespace handling in <function>xpath()</function> (Ali Akbar)
</para>
<para>
- Previously, the <type>xml</> value resulting from
- an <function>xpath()</> call would not have namespace declarations if
+ Previously, the <type>xml</type> value resulting from
+ an <function>xpath()</function> call would not have namespace declarations if
the namespace declarations were attached to an ancestor element in the
- input <type>xml</> value, rather than to the specific element being
+ input <type>xml</type> value, rather than to the specific element being
returned. Propagate the ancestral declaration so that the result is
correct when considered in isolation.
</para>
</para>
<para>
- This patch fixes corner-case <quote>unexpected operator NNNN</> planner
+ This patch fixes corner-case <quote>unexpected operator NNNN</quote> planner
errors, and improves the selectivity estimates for some other cases.
</para>
</listitem>
</para>
<para>
- 9.4.0 could fail with <quote>index row size exceeds maximum</> errors
+ 9.4.0 could fail with <quote>index row size exceeds maximum</quote> errors
for data that previous versions would accept.
</para>
</listitem>
<listitem>
<para>
Fix possible crash when using
- nonzero <varname>gin_fuzzy_search_limit</> (Heikki Linnakangas)
+ nonzero <varname>gin_fuzzy_search_limit</varname> (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix incorrect replay of WAL parameter change records that report
- changes in the <varname>wal_log_hints</> setting (Petr Jelinek)
+ changes in the <varname>wal_log_hints</varname> setting (Petr Jelinek)
</para>
</listitem>
<listitem>
<para>
- Change <quote>pgstat wait timeout</> warning message to be LOG level,
+ Change <quote>pgstat wait timeout</quote> warning message to be LOG level,
and rephrase it to be more understandable (Tom Lane)
</para>
case, but it occurs often enough on our slower buildfarm members to be
a nuisance. Reduce it to LOG level, and expend a bit more effort on
the wording: it now reads <quote>using stale statistics instead of
- current ones because stats collector is not responding</>.
+ current ones because stats collector is not responding</quote>.
</para>
</listitem>
<listitem>
<para>
- Warn if macOS's <function>setlocale()</> starts an unwanted extra
+ Warn if macOS's <function>setlocale()</function> starts an unwanted extra
thread inside the postmaster (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Fix <application>libpq</>'s behavior when <filename>/etc/passwd</>
+ Fix <application>libpq</application>'s behavior when <filename>/etc/passwd</filename>
isn't readable (Tom Lane)
</para>
<para>
- While doing <function>PQsetdbLogin()</>, <application>libpq</>
+ While doing <function>PQsetdbLogin()</function>, <application>libpq</application>
attempts to ascertain the user's operating system name, which on most
- Unix platforms involves reading <filename>/etc/passwd</>. As of 9.4,
+ Unix platforms involves reading <filename>/etc/passwd</filename>. As of 9.4,
failure to do that was treated as a hard error. Restore the previous
behavior, which was to fail only if the application does not provide a
database role name to connect as. This supports operation in chroot
- environments that lack an <filename>/etc/passwd</> file.
+ environments that lack an <filename>/etc/passwd</filename> file.
</para>
</listitem>
<listitem>
<para>
- Improve consistency of parsing of <application>psql</>'s special
+ Improve consistency of parsing of <application>psql</application>'s special
variables (Tom Lane)
</para>
<para>
- Allow variant spellings of <literal>on</> and <literal>off</> (such
- as <literal>1</>/<literal>0</>) for <literal>ECHO_HIDDEN</>
- and <literal>ON_ERROR_ROLLBACK</>. Report a warning for unrecognized
- values for <literal>COMP_KEYWORD_CASE</>, <literal>ECHO</>,
- <literal>ECHO_HIDDEN</>, <literal>HISTCONTROL</>,
- <literal>ON_ERROR_ROLLBACK</>, and <literal>VERBOSITY</>. Recognize
+ Allow variant spellings of <literal>on</literal> and <literal>off</literal> (such
+ as <literal>1</literal>/<literal>0</literal>) for <literal>ECHO_HIDDEN</literal>
+ and <literal>ON_ERROR_ROLLBACK</literal>. Report a warning for unrecognized
+ values for <literal>COMP_KEYWORD_CASE</literal>, <literal>ECHO</literal>,
+ <literal>ECHO_HIDDEN</literal>, <literal>HISTCONTROL</literal>,
+ <literal>ON_ERROR_ROLLBACK</literal>, and <literal>VERBOSITY</literal>. Recognize
all values for all these variables case-insensitively; previously
there was a mishmash of case-sensitive and case-insensitive behaviors.
</para>
<listitem>
<para>
- Fix <application>pg_dump</> to handle comments on event triggers
+ Fix <application>pg_dump</application> to handle comments on event triggers
without failing (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Allow parallel <application>pg_dump</> to
- use <option>--serializable-deferrable</> (Kevin Grittner)
+ Allow parallel <application>pg_dump</application> to
+ use <option>--serializable-deferrable</option> (Kevin Grittner)
</para>
</listitem>
<listitem>
<para>
- Prevent WAL files created by <literal>pg_basebackup -x/-X</> from
+ Prevent WAL files created by <literal>pg_basebackup -x/-X</literal> from
being archived again when the standby is promoted (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Handle unexpected query results, especially NULLs, safely in
- <filename>contrib/tablefunc</>'s <function>connectby()</>
+ <filename>contrib/tablefunc</filename>'s <function>connectby()</function>
(Michael Paquier)
</para>
<para>
- <function>connectby()</> previously crashed if it encountered a NULL
+ <function>connectby()</function> previously crashed if it encountered a NULL
key value. It now prints that row but doesn't recurse further.
</para>
</listitem>
<listitem>
<para>
- Allow <varname>CFLAGS</> from <application>configure</>'s environment
- to override automatically-supplied <varname>CFLAGS</> (Tom Lane)
+ Allow <varname>CFLAGS</varname> from <application>configure</application>'s environment
+ to override automatically-supplied <varname>CFLAGS</varname> (Tom Lane)
</para>
<para>
- Previously, <application>configure</> would add any switches that it
+ Previously, <application>configure</application> would add any switches that it
chose of its own accord to the end of the
- user-specified <varname>CFLAGS</> string. Since most compilers
+ user-specified <varname>CFLAGS</varname> string. Since most compilers
process switches left-to-right, this meant that configure's choices
would override the user-specified flags in case of conflicts. That
should work the other way around, so adjust the logic to put the
<listitem>
<para>
- Make <application>pg_regress</> remove any temporary installation it
+ Make <application>pg_regress</application> remove any temporary installation it
created upon successful exit (Tom Lane)
</para>
<para>
This results in a very substantial reduction in disk space usage
- during <literal>make check-world</>, since that sequence involves
+ during <literal>make check-world</literal>, since that sequence involves
creation of numerous temporary installations.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2015a
+ Update time zone data files to <application>tzdata</application> release 2015a
for DST law changes in Chile and Mexico, plus historical changes in
Iceland.
</para>
<title>Overview</title>
<para>
- Major enhancements in <productname>PostgreSQL</> 9.4 include:
+ Major enhancements in <productname>PostgreSQL</productname> 9.4 include:
</para>
<!-- This list duplicates items below, but without authors or details-->
<listitem>
<para>
- Add <link linkend="datatype-json"><type>jsonb</></link>, a more
- capable and efficient data type for storing <acronym>JSON</> data
+ Add <link linkend="datatype-json"><type>jsonb</type></link>, a more
+ capable and efficient data type for storing <acronym>JSON</acronym> data
</para>
</listitem>
<listitem>
<para>
- Add new <acronym>SQL</> command <xref linkend="SQL-ALTERSYSTEM">
- for changing <filename>postgresql.conf</> configuration file entries
+ Add new <acronym>SQL</acronym> command <xref linkend="sql-altersystem">
+ for changing <filename>postgresql.conf</filename> configuration file entries
</para>
</listitem>
<listitem>
<para>
- Reduce lock strength for some <xref linkend="SQL-ALTERTABLE">
+ Reduce lock strength for some <xref linkend="sql-altertable">
commands
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="rules-materializedviews">materialized views</>
+ Allow <link linkend="rules-materializedviews">materialized views</link>
to be refreshed without blocking concurrent reads
</para>
</listitem>
<listitem>
<para>
- Add support for <link linkend="logicaldecoding">logical decoding</>
+ Add support for <link linkend="logicaldecoding">logical decoding</link>
of WAL data, to allow database changes to be streamed out in a
customizable format
</para>
<listitem>
<para>
- Allow <link linkend="bgworker">background worker processes</>
+ Allow <link linkend="bgworker">background worker processes</link>
to be dynamically registered, started and terminated
</para>
</listitem>
<para>
Previously, an input array string that started with a single-element
sub-array could later contain multi-element sub-arrays,
- e.g. <literal>'{{1}, {2,3}}'::int[]</> would be accepted.
+ e.g. <literal>'{{1}, {2,3}}'::int[]</literal> would be accepted.
</para>
</listitem>
<listitem>
<para>
- When converting values of type <type>date</>, <type>timestamp</>
- or <type>timestamptz</>
+ When converting values of type <type>date</type>, <type>timestamp</type>
+ or <type>timestamptz</type>
to <link linkend="datatype-json"><type>JSON</type></link>, render the
values in a format compliant with ISO 8601 (Andrew Dunstan)
</para>
<xref linkend="guc-datestyle"> setting; but many JSON processors
require timestamps to be in ISO 8601 format. If necessary, the
previous behavior can be obtained by explicitly casting the datetime
- value to <type>text</> before passing it to the JSON conversion
+ value to <type>text</type> before passing it to the JSON conversion
function.
</para>
</listitem>
<listitem>
<para>
The <link linkend="functions-json-op-table"><type>json</type>
- <literal>#></> <type>text[]</></link> path extraction operator now
+ <literal>#></literal> <type>text[]</type></link> path extraction operator now
returns its lefthand input, not NULL, if the array is empty (Tom Lane)
</para>
<para>
This is consistent with the notion that this represents zero
applications of the simple field/element extraction
- operator <literal>-></>. Similarly, <type>json</type>
- <literal>#>></> <type>text[]</> with an empty array merely
+ operator <literal>-></literal>. Similarly, <type>json</type>
+ <literal>#>></literal> <type>text[]</type> with an empty array merely
coerces its lefthand input to text.
</para>
</listitem>
<listitem>
<para>
Cause consecutive whitespace in <link
- linkend="functions-formatting-table"><function>to_timestamp()</></link>
- and <function>to_date()</> format strings to consume a corresponding
+ linkend="functions-formatting-table"><function>to_timestamp()</function></link>
+ and <function>to_date()</function> format strings to consume a corresponding
number of characters in the input string (whitespace or not), then
- conditionally consume adjacent whitespace, if not in <literal>FX</>
+ conditionally consume adjacent whitespace, if not in <literal>FX</literal>
mode (Jeevan Chalke)
</para>
<para>
- Previously, consecutive whitespace characters in a non-<literal>FX</>
+ Previously, consecutive whitespace characters in a non-<literal>FX</literal>
format string behaved like a single whitespace character and consumed
all adjacent whitespace in the input string. For example, previously
a format string of three spaces would consume only the first space in
- <literal>' 12'</>, but it will now consume all three characters.
+ <literal>' 12'</literal>, but it will now consume all three characters.
</para>
</listitem>
<listitem>
<para>
Fix <link
- linkend="textsearch-functions-table"><function>ts_rank_cd()</></link>
+ linkend="textsearch-functions-table"><function>ts_rank_cd()</function></link>
to ignore stripped lexemes (Alex Hill)
</para>
<para>
For functions declared to
take <link linkend="xfunc-sql-variadic-functions"><literal>VARIADIC
- "any"</></link>, an actual parameter marked as <literal>VARIADIC</>
+ "any"</literal></link>, an actual parameter marked as <literal>VARIADIC</literal>
must be of a determinable array type (Pavel Stehule)
</para>
<para>
Such parameters can no longer be written as an undecorated string
- literal or <literal>NULL</>; a cast to an appropriate array data type
+ literal or <literal>NULL</literal>; a cast to an appropriate array data type
will now be required. Note that this does not affect parameters not
- marked <literal>VARIADIC</>.
+ marked <literal>VARIADIC</literal>.
</para>
</listitem>
</para>
<para>
- Constructs like <literal>row_to_json(tab.*)</> now always emit column
- names that match the column aliases visible for table <literal>tab</>
+ Constructs like <literal>row_to_json(tab.*)</literal> now always emit column
+ names that match the column aliases visible for table <literal>tab</literal>
at the point of the call. In previous releases the emitted column
names would sometimes be the table's actual column names regardless
of any aliases assigned in the query.
<listitem>
<para>
- Rename <link linkend="SQL-EXPLAIN"><command>EXPLAIN
- ANALYZE</></link>'s <quote>total runtime</quote> output
+ Rename <link linkend="sql-explain"><command>EXPLAIN
+ ANALYZE</command></link>'s <quote>total runtime</quote> output
to <quote>execution time</quote> (Tom Lane)
</para>
<listitem>
<para>
- <link linkend="SQL-SHOW"><command>SHOW TIME ZONE</></link> now
- outputs simple numeric UTC offsets in <acronym>POSIX</> timezone
+ <link linkend="sql-show"><command>SHOW TIME ZONE</command></link> now
+ outputs simple numeric UTC offsets in <acronym>POSIX</acronym> timezone
format (Tom Lane)
</para>
<para>
Previously, such timezone settings were displayed as <link
- linkend="datatype-interval-output"><type>interval</></link> values.
- The new output is properly interpreted by <command>SET TIME ZONE</>
+ linkend="datatype-interval-output"><type>interval</type></link> values.
+ The new output is properly interpreted by <command>SET TIME ZONE</command>
when passed as a simple string, whereas the old output required
special treatment to be re-parsed correctly.
</para>
<listitem>
<para>
Foreign data wrappers that support updating foreign tables must
- consider the possible presence of <literal>AFTER ROW</> triggers
+ consider the possible presence of <literal>AFTER ROW</literal> triggers
(Noah Misch)
</para>
<para>
- When an <literal>AFTER ROW</> trigger is present, all columns of the
+ When an <literal>AFTER ROW</literal> trigger is present, all columns of the
table must be returned by updating actions, since the trigger might
inspect any or all of them. Previously, foreign tables never had
triggers, so the FDW might optimize away fetching columns not mentioned
- in the <literal>RETURNING</> clause (if any).
+ in the <literal>RETURNING</literal> clause (if any).
</para>
</listitem>
<listitem>
<para>
Prevent <link
- linkend="ddl-constraints-check-constraints"><literal>CHECK</></link>
+ linkend="ddl-constraints-check-constraints"><literal>CHECK</literal></link>
constraints from referencing system columns, except
- <structfield>tableoid</> (Amit Kapila)
+ <structfield>tableoid</structfield> (Amit Kapila)
</para>
<para>
<para>
Previously, there was an undocumented precedence order among
- the <literal>recovery_target_<replaceable>xxx</></literal> parameters.
+ the <literal>recovery_target_<replaceable>xxx</replaceable></literal> parameters.
</para>
</listitem>
User commands that did their own quote preservation might need
adjustment. This is likely to be an issue for commands used in
<xref linkend="guc-archive-command">, <xref linkend="restore-command">,
- and <link linkend="sql-copy"><command>COPY TO/FROM PROGRAM</></link>.
+ and <link linkend="sql-copy"><command>COPY TO/FROM PROGRAM</command></link>.
</para>
</listitem>
<listitem>
<para>
Remove catalog column <link
- linkend="catalog-pg-class"><structfield>pg_class.reltoastidxid</></link>
+ linkend="catalog-pg-class"><structfield>pg_class.reltoastidxid</structfield></link>
(Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Remove catalog column <link
- linkend="catalog-pg-rewrite"><structfield>pg_rewrite.ev_attr</></link>
+ linkend="catalog-pg-rewrite"><structfield>pg_rewrite.ev_attr</structfield></link>
(Kevin Grittner)
</para>
<para>
Per-column rules have not been supported since
- <application>PostgreSQL</> 7.3.
+ <application>PostgreSQL</application> 7.3.
</para>
</listitem>
<listitem>
<para>
- Remove native support for <application>Kerberos</> authentication
- (<option>--with-krb5</>, etc)
+ Remove native support for <application>Kerberos</application> authentication
+ (<option>--with-krb5</option>, etc)
(Magnus Hagander)
</para>
<para>
- The supported way to use <application>Kerberos</> authentication is
- with <acronym>GSSAPI</>. The native code has been deprecated since
- <productname>PostgreSQL</> 8.3.
+ The supported way to use <application>Kerberos</application> authentication is
+ with <acronym>GSSAPI</acronym>. The native code has been deprecated since
+ <productname>PostgreSQL</productname> 8.3.
</para>
</listitem>
<listitem>
<para>
- In <application>PL/Python</>, handle domains over arrays like the
+ In <application>PL/Python</application>, handle domains over arrays like the
underlying array type (Rodolfo Campero)
</para>
<listitem>
<para>
Make libpq's <link
- linkend="libpq-pqconnectdbparams"><function>PQconnectdbParams()</></link>
+ linkend="libpq-pqconnectdbparams"><function>PQconnectdbParams()</function></link>
and <link
- linkend="libpq-pqpingparams"><function>PQpingParams()</></link>
+ linkend="libpq-pqpingparams"><function>PQpingParams()</function></link>
functions process zero-length strings as defaults (Adrian
Vondendriesch)
</para>
<para>
Previously, empty arrays were returned as zero-length one-dimensional
arrays, whose text representation looked the same as zero-dimensional
- arrays (<literal>{}</>), but they acted differently in array
- operations. <application>intarray</>'s behavior in this area now
+ arrays (<literal>{}</literal>), but they acted differently in array
+ operations. <application>intarray</application>'s behavior in this area now
matches the built-in array operators.
</para>
</listitem>
<listitem>
<para>
- <xref linkend="pgupgrade"> now uses <option>-U</>
- or <option>--username</> to specify the user name (Bruce Momjian)
+ <xref linkend="pgupgrade"> now uses <option>-U</option>
+ or <option>--username</option> to specify the user name (Bruce Momjian)
</para>
<para>
- Previously this option was spelled <option>-u</> or <option>--user</>,
+ Previously this option was spelled <option>-u</option> or <option>--user</option>,
but that was inconsistent with other tools.
</para>
</listitem>
</para>
<para>
- The new <filename>worker_spi</> module shows an example of use
+ The new <filename>worker_spi</filename> module shows an example of use
of this feature.
</para>
</listitem>
<listitem>
<para>
During crash recovery or immediate shutdown, send uncatchable
- termination signals (<systemitem>SIGKILL</>) to child processes
+ termination signals (<systemitem>SIGKILL</systemitem>) to child processes
that do not shut down promptly (MauMau, Álvaro Herrera)
</para>
This reduces the likelihood of leaving orphaned child processes
behind after <xref linkend="app-postmaster"> shutdown, as well
as ensuring that crash recovery can proceed if some child processes
- have become <quote>stuck</>.
+ have become <quote>stuck</quote>.
</para>
</listitem>
<listitem>
<para>
- Make <xref linkend="SQL-VACUUM"> properly report dead but
+ Make <xref linkend="sql-vacuum"> properly report dead but
not-yet-removable rows to the statistics collector (Hari Babu)
</para>
<listitem>
<para>
- Reduce <link linkend="GIN"><acronym>GIN</></link> index size
+ Reduce <link linkend="gin"><acronym>GIN</acronym></link> index size
(Alexander Korotkov, Heikki Linnakangas)
</para>
<para>
Indexes upgraded via <xref linkend="pgupgrade"> will work fine
- but will still be in the old, larger <acronym>GIN</> format.
- Use <xref linkend="SQL-REINDEX"> to recreate old GIN indexes in the
+ but will still be in the old, larger <acronym>GIN</acronym> format.
+ Use <xref linkend="sql-reindex"> to recreate old GIN indexes in the
new format.
</para>
</listitem>
<listitem>
<para>
Improve speed of multi-key <link
- linkend="GIN"><acronym>GIN</></link> lookups (Alexander Korotkov,
+ linkend="gin"><acronym>GIN</acronym></link> lookups (Alexander Korotkov,
Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="GiST"><acronym>GiST</></link> index support
- for <link linkend="datatype-inet"><type>inet</></link> and
- <link linkend="datatype-cidr"><type>cidr</></link> data types
+ Add <link linkend="gist"><acronym>GiST</acronym></link> index support
+ for <link linkend="datatype-inet"><type>inet</type></link> and
+ <link linkend="datatype-cidr"><type>cidr</type></link> data types
(Emre Hasegeli)
</para>
<listitem>
<para>
Allow multiple backends to insert
- into <link linkend="wal"><acronym>WAL</></link> buffers
+ into <link linkend="wal"><acronym>WAL</acronym></link> buffers
concurrently (Heikki Linnakangas)
</para>
<listitem>
<para>
Conditionally write only the modified portion of updated rows to
- <link linkend="wal"><acronym>WAL</></link> (Amit Kapila)
+ <link linkend="wal"><acronym>WAL</acronym></link> (Amit Kapila)
</para>
</listitem>
<listitem>
<para>
Improve speed of aggregates that
- use <link linkend="datatype-numeric"><type>numeric</></link> state
+ use <link linkend="datatype-numeric"><type>numeric</type></link> state
values (Hadi Moshayedi)
</para>
</listitem>
<para>
Attempt to <link linkend="vacuum-for-wraparound">freeze</link>
tuples when tables are rewritten with <xref
- linkend="SQL-CLUSTER"> or <link
- linkend="SQL-VACUUM"><command>VACUUM FULL</></link> (Robert Haas,
+ linkend="sql-cluster"> or <link
+ linkend="sql-vacuum"><command>VACUUM FULL</command></link> (Robert Haas,
Andres Freund)
</para>
<listitem>
<para>
- Improve speed of <xref linkend="SQL-COPY"> with default <link
- linkend="functions-sequence-table"><function>nextval()</></link>
+ Improve speed of <xref linkend="sql-copy"> with default <link
+ linkend="functions-sequence-table"><function>nextval()</function></link>
columns (Simon Riggs)
</para>
</listitem>
<listitem>
<para>
Improve speed of accessing many different <link
- linkend="SQL-CREATESEQUENCE">sequences</link> in the same session
+ linkend="sql-createsequence">sequences</link> in the same session
(David Rowley)
</para>
</listitem>
<listitem>
<para>
- Reduce memory allocated by <application>PL/pgSQL</>
- <xref linkend="SQL-DO"> blocks (Tom Lane)
+ Reduce memory allocated by <application>PL/pgSQL</application>
+ <xref linkend="sql-do"> blocks (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Make the planner more aggressive about extracting restriction clauses
- from mixed <literal>AND</>/<literal>OR</> clauses (Tom Lane)
+ from mixed <literal>AND</literal>/<literal>OR</literal> clauses (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Disallow pushing volatile <literal>WHERE</> clauses down
- into <literal>DISTINCT</> subqueries (Tom Lane)
+ Disallow pushing volatile <literal>WHERE</literal> clauses down
+ into <literal>DISTINCT</literal> subqueries (Tom Lane)
</para>
<para>
- Pushing down a <literal>WHERE</> clause can produce a more
+ Pushing down a <literal>WHERE</literal> clause can produce a more
efficient plan overall, but at the cost of evaluating the clause
more often than is implied by the text of the query; so don't do it
if the clause contains any volatile functions.
<listitem>
<para>
Add <xref linkend="pg-stat-archiver-view"> system view to
- report <link linkend="wal"><acronym>WAL</></link> archiver activity
+ report <link linkend="wal"><acronym>WAL</acronym></link> archiver activity
(Gabriele Bartolini)
</para>
</listitem>
<listitem>
<para>
- Add <structfield>n_mod_since_analyze</> columns to
+ Add <structfield>n_mod_since_analyze</structfield> columns to
<xref linkend="pg-stat-all-tables-view"> and related system views
(Mark Kirkwood)
</para>
<listitem>
<para>
- Add <structfield>backend_xid</> and <structfield>backend_xmin</>
+ Add <structfield>backend_xid</structfield> and <structfield>backend_xmin</structfield>
columns to the system view <xref linkend="pg-stat-activity-view">,
- and a <structfield>backend_xmin</> column to
+ and a <structfield>backend_xmin</structfield> column to
<xref linkend="pg-stat-replication-view"> (Christian Kruse)
</para>
</listitem>
</sect4>
<sect4>
- <title><acronym>SSL</></title>
+ <title><acronym>SSL</acronym></title>
<itemizedlist>
<listitem>
<para>
- Add support for <acronym>SSL</> <acronym>ECDH</> key exchange
+ Add support for <acronym>SSL</acronym> <acronym>ECDH</acronym> key exchange
(Marko Kreen)
</para>
<para>
This allows use of Elliptic Curve keys for server authentication.
- Such keys are faster and have better security than <acronym>RSA</>
+ Such keys are faster and have better security than <acronym>RSA</acronym>
keys. The new configuration parameter
<xref linkend="guc-ssl-ecdh-curve">
- controls which curve is used for <acronym>ECDH</>.
+ controls which curve is used for <acronym>ECDH</acronym>.
</para>
</listitem>
<listitem>
<para>
By default, the server not the client now controls the preference
- order of <acronym>SSL</> ciphers
+ order of <acronym>SSL</acronym> ciphers
(Marko Kreen)
</para>
<para>
Previously, the order specified by <xref linkend="guc-ssl-ciphers">
was usually ignored in favor of client-side defaults, which are not
- configurable in most <productname>PostgreSQL</> clients. If
+ configurable in most <productname>PostgreSQL</productname> clients. If
desired, the old behavior can be restored via the new configuration
parameter <xref linkend="guc-ssl-prefer-server-ciphers">.
</para>
<listitem>
<para>
- Make <xref linkend="guc-log-connections"> show <acronym>SSL</>
+ Make <xref linkend="guc-log-connections"> show <acronym>SSL</acronym>
encryption information (Andreas Kunert)
</para>
</listitem>
<listitem>
<para>
- Improve <acronym>SSL</> renegotiation handling (Álvaro
+ Improve <acronym>SSL</acronym> renegotiation handling (Álvaro
Herrera)
</para>
</listitem>
<listitem>
<para>
- Add new <acronym>SQL</> command <xref linkend="SQL-ALTERSYSTEM">
- for changing <filename>postgresql.conf</> configuration file entries
+ Add new <acronym>SQL</acronym> command <xref linkend="sql-altersystem">
+ for changing <filename>postgresql.conf</filename> configuration file entries
(Amit Kapila)
</para>
<para>
Previously such settings could only be changed by manually
- editing <filename>postgresql.conf</>.
+ editing <filename>postgresql.conf</filename>.
</para>
</listitem>
<para>
In contrast to <xref linkend="guc-local-preload-libraries">, this
parameter can load any shared library, not just those in
- the <filename>$libdir/plugins</> directory.
+ the <filename>$libdir/plugins</filename> directory.
</para>
</listitem>
<para>
Hint bit changes are not normally logged, except when checksums are
enabled. This is useful for external tools
- like <application>pg_rewind</>.
+ like <application>pg_rewind</application>.
</para>
</listitem>
<listitem>
<para>
- Allow terabyte units (<literal>TB</>) to be used when specifying
+ Allow terabyte units (<literal>TB</literal>) to be used when specifying
configuration variable values (Simon Riggs)
</para>
</listitem>
<listitem>
<para>
- Show <acronym>PID</>s of lock holders and waiters and improve
+ Show <acronym>PID</acronym>s of lock holders and waiters and improve
information about relations in <xref linkend="guc-log-lock-waits">
log messages (Christian Kruse)
</para>
</para>
<para>
- The previous level was <literal>LOG</>, which was too verbose
+ The previous level was <literal>LOG</literal>, which was too verbose
for libraries loaded per-session.
</para>
</listitem>
<listitem>
<para>
- On Windows, make <literal>SQL_ASCII</>-encoded databases and server
+ On Windows, make <literal>SQL_ASCII</literal>-encoded databases and server
processes (e.g., <xref linkend="app-postmaster">) emit messages in
the character encoding of the server's Windows user locale
(Alexander Law, Noah Misch)
<para>
Previously these messages were output in the Windows
- <acronym>ANSI</> code page.
+ <acronym>ANSI</acronym> code page.
</para>
</listitem>
<para>
Replication slots allow preservation of resources like
- <acronym>WAL</> files on the primary until they are no longer
+ <acronym>WAL</acronym> files on the primary until they are no longer
needed by standby servers.
</para>
</listitem>
<listitem>
<para>
Add <xref linkend="recovery-target">
- option <option>immediate</> to stop <link
- linkend="wal"><acronym>WAL</></link> recovery as soon as a
+ option <option>immediate</option> to stop <link
+ linkend="wal"><acronym>WAL</acronym></link> recovery as soon as a
consistent state is reached (MauMau, Heikki Linnakangas)
</para>
</listitem>
<para>
The timestamp reported
- by <link linkend="functions-recovery-info-table"><function>pg_last_xact_replay_timestamp()</></link>
+ by <link linkend="functions-recovery-info-table"><function>pg_last_xact_replay_timestamp()</function></link>
now reflects already-committed records, not transactions about to
be committed. Recovering to a restore point now replays the restore
point, rather than stopping just before the restore point.
<listitem>
<para>
<link
- linkend="functions-admin-backup-table"><function>pg_switch_xlog()</></link>
- now clears any unused trailing space in the old <acronym>WAL</> file
+ linkend="functions-admin-backup-table"><function>pg_switch_xlog()</function></link>
+ now clears any unused trailing space in the old <acronym>WAL</acronym> file
(Heikki Linnakangas)
</para>
<para>
- This improves the compression ratio for <acronym>WAL</> files.
+ This improves the compression ratio for <acronym>WAL</acronym> files.
</para>
</listitem>
<listitem>
<para>
Report failure return codes from <link
- linkend="archive-recovery-settings">external recovery commands</>
+ linkend="archive-recovery-settings">external recovery commands</link>
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Reduce spinlock contention during <acronym>WAL</> replay (Heikki
+ Reduce spinlock contention during <acronym>WAL</acronym> replay (Heikki
Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Write <acronym>WAL</> records of running transactions more
+ Write <acronym>WAL</acronym> records of running transactions more
frequently (Andres Freund)
</para>
</itemizedlist>
<sect4>
- <title><link linkend="logicaldecoding">Logical Decoding</></title>
+ <title><link linkend="logicaldecoding">Logical Decoding</link></title>
<para>
Logical decoding allows database changes to be streamed in a
configurable format. The data is read from
- the <link linkend="wal"><acronym>WAL</></link> and transformed into the
+ the <link linkend="wal"><acronym>WAL</acronym></link> and transformed into the
desired target format. To implement this feature, the following changes
were made:
</para>
<listitem>
<para>
- Add support for <link linkend="logicaldecoding">logical decoding</>
+ Add support for <link linkend="logicaldecoding">logical decoding</link>
of WAL data, to allow database changes to be streamed out in a
customizable format
(Andres Freund)
<listitem>
<para>
- Add new <xref linkend="guc-wal-level"> setting <option>logical</>
- to enable logical change-set encoding in <acronym>WAL</> (Andres
+ Add new <xref linkend="guc-wal-level"> setting <option>logical</option>
+ to enable logical change-set encoding in <acronym>WAL</acronym> (Andres
Freund)
</para>
</listitem>
<listitem>
<para>
Add table-level parameter <link
- linkend="catalog-pg-class"><literal>REPLICA IDENTITY</></link>
+ linkend="catalog-pg-class"><literal>REPLICA IDENTITY</literal></link>
to control logical replication (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Add relation option <link
- linkend="SQL-CREATETABLE-storage-parameters"><option>user_catalog_table</></link>
+ linkend="sql-createtable-storage-parameters"><option>user_catalog_table</option></link>
to identify user-created tables involved in logical change-set
encoding (Andres Freund)
</para>
<listitem>
<para>
Add <xref linkend="test-decoding"> module to illustrate logical
- decoding at the <acronym>SQL</> level (Andres Freund)
+ decoding at the <acronym>SQL</acronym> level (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Add <link linkend="queries-tablefunctions"><literal>WITH
- ORDINALITY</></link> syntax to number the rows returned from a
- set-returning function in the <literal>FROM</> clause
+ ORDINALITY</literal></link> syntax to number the rows returned from a
+ set-returning function in the <literal>FROM</literal> clause
(Andrew Gierth, David Fetter)
</para>
<para>
This is particularly useful for functions like
- <function>unnest()</>.
+ <function>unnest()</function>.
</para>
</listitem>
<listitem>
<para>
Add <link linkend="queries-tablefunctions"><literal>ROWS
- FROM()</></link> syntax to allow horizontal concatenation of
- set-returning functions in the <literal>FROM</> clause (Andrew Gierth)
+ FROM()</literal></link> syntax to allow horizontal concatenation of
+ set-returning functions in the <literal>FROM</literal> clause (Andrew Gierth)
</para>
</listitem>
<listitem>
<para>
- Allow <xref linkend="SQL-SELECT"> to have
+ Allow <xref linkend="sql-select"> to have
an empty target list (Tom Lane)
</para>
<listitem>
<para>
- Ensure that <link linkend="SQL-SELECT"><literal>SELECT ... FOR UPDATE
- NOWAIT</></link> does not wait in corner cases involving
+ Ensure that <link linkend="sql-select"><literal>SELECT ... FOR UPDATE
+ NOWAIT</literal></link> does not wait in corner cases involving
already-concurrently-updated tuples (Craig Ringer and Thomas Munro)
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="SQL-DISCARD"><command>DISCARD
- SEQUENCES</></link> command to discard cached sequence-related state
+ Add <link linkend="sql-discard"><command>DISCARD
+ SEQUENCES</command></link> command to discard cached sequence-related state
(Fabrízio de Royes Mello, Robert Haas)
</para>
<para>
- <command>DISCARD ALL</> will now also discard such information.
+ <command>DISCARD ALL</command> will now also discard such information.
</para>
</listitem>
<listitem>
<para>
- Add <literal>FORCE NULL</> option
- to <link linkend="SQL-COPY"><command>COPY FROM</></link>, which
+ Add <literal>FORCE NULL</literal> option
+ to <link linkend="sql-copy"><command>COPY FROM</command></link>, which
causes quoted strings matching the specified null string to be
- converted to NULLs in <literal>CSV</> mode (Ian Barwick, Michael
+ converted to NULLs in <literal>CSV</literal> mode (Ian Barwick, Michael
Paquier)
</para>
<para>
New warnings are issued for <command>SET
- LOCAL</>, <command>SET CONSTRAINTS</>, <command>SET TRANSACTION</> and
- <command>ABORT</> when used outside a transaction block.
+ LOCAL</command>, <command>SET CONSTRAINTS</command>, <command>SET TRANSACTION</command> and
+ <command>ABORT</command> when used outside a transaction block.
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><xref linkend="SQL-EXPLAIN"></title>
+ <title><xref linkend="sql-explain"></title>
<itemizedlist>
<listitem>
<para>
- Make <command>EXPLAIN ANALYZE</> show planning time (Andreas
+ Make <command>EXPLAIN ANALYZE</command> show planning time (Andreas
Karlsson)
</para>
</listitem>
<listitem>
<para>
- Make <command>EXPLAIN</> show the grouping columns in Agg and
+ Make <command>EXPLAIN</command> show the grouping columns in Agg and
Group nodes (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Make <command>EXPLAIN ANALYZE</> show exact and lossy
+ Make <command>EXPLAIN ANALYZE</command> show exact and lossy
block counts in bitmap heap scans (Etsuro Fujita)
</para>
</listitem>
<listitem>
<para>
- Allow a <link linkend="rules-materializedviews">materialized view</>
+ Allow a <link linkend="rules-materializedviews">materialized view</link>
to be refreshed without blocking other sessions from reading the view
meanwhile (Kevin Grittner)
</para>
<para>
This is done with <link
- linkend="SQL-REFRESHMATERIALIZEDVIEW"><command>REFRESH MATERIALIZED
- VIEW CONCURRENTLY</></link>.
+ linkend="sql-refreshmaterializedview"><command>REFRESH MATERIALIZED
+ VIEW CONCURRENTLY</command></link>.
</para>
</listitem>
<listitem>
<para>
Allow views to be <link
- linkend="SQL-CREATEVIEW-updatable-views">automatically
+ linkend="sql-createview-updatable-views">automatically
updated</link> even if they contain some non-updatable columns
(Dean Rasheed)
</para>
<para>
Previously the presence of non-updatable output columns such as
expressions, literals, and function calls prevented automatic
- updates. Now <command>INSERT</>s, <command>UPDATE</>s and
- <command>DELETE</>s are supported, provided that they do not
+ updates. Now <command>INSERT</command>s, <command>UPDATE</command>s and
+ <command>DELETE</command>s are supported, provided that they do not
attempt to assign new values to any of the non-updatable columns.
</para>
</listitem>
<listitem>
<para>
- Allow control over whether <command>INSERT</>s and
- <command>UPDATE</>s can add rows to an auto-updatable view that
+ Allow control over whether <command>INSERT</command>s and
+ <command>UPDATE</command>s can add rows to an auto-updatable view that
would not appear in the view (Dean Rasheed)
</para>
<para>
- This is controlled with the new <xref linkend="SQL-CREATEVIEW">
- clause <literal>WITH CHECK OPTION</>.
+ This is controlled with the new <xref linkend="sql-createview">
+ clause <literal>WITH CHECK OPTION</literal>.
</para>
</listitem>
<listitem>
<para>
- Allow <link linkend="rules-privileges">security barrier views</>
+ Allow <link linkend="rules-privileges">security barrier views</link>
to be automatically updatable (Dean Rasheed)
</para>
</listitem>
<listitem>
<para>
- Support triggers on <link linkend="SQL-CREATEFOREIGNTABLE">foreign
- tables</> (Ronan Dunklau)
+ Support triggers on <link linkend="sql-createforeigntable">foreign
+ tables</link> (Ronan Dunklau)
</para>
</listitem>
<listitem>
<para>
Allow moving groups of objects from one tablespace to another
- using the <literal>ALL IN TABLESPACE ... SET TABLESPACE</> form of
- <xref linkend="SQL-ALTERTABLE">, <xref linkend="SQL-ALTERINDEX">, or
- <xref linkend="SQL-ALTERMATERIALIZEDVIEW"> (Stephen Frost)
+ using the <literal>ALL IN TABLESPACE ... SET TABLESPACE</literal> form of
+ <xref linkend="sql-altertable">, <xref linkend="sql-alterindex">, or
+ <xref linkend="sql-altermaterializedview"> (Stephen Frost)
</para>
</listitem>
<listitem>
<para>
Allow changing foreign key constraint deferrability
- via <xref linkend="SQL-ALTERTABLE"> ... <literal>ALTER
- CONSTRAINT</> (Simon Riggs)
+ via <xref linkend="sql-altertable"> ... <literal>ALTER
+ CONSTRAINT</literal> (Simon Riggs)
</para>
</listitem>
<listitem>
<para>
- Reduce lock strength for some <xref linkend="SQL-ALTERTABLE">
+ Reduce lock strength for some <xref linkend="sql-altertable">
commands
(Simon Riggs, Noah Misch, Robert Haas)
</para>
<para>
- Specifically, <literal>VALIDATE CONSTRAINT</>, <literal>CLUSTER
- ON</>, <literal>SET WITHOUT CLUSTER</>, <literal>ALTER COLUMN
- SET STATISTICS</>, <literal>ALTER COLUMN</> <literal>SET</>
- <option>(attribute_option)</>, <literal>ALTER COLUMN RESET</>
- <option>(attribute_option)</> no longer require <literal>ACCESS
- EXCLUSIVE</> locks.
+ Specifically, <literal>VALIDATE CONSTRAINT</literal>, <literal>CLUSTER
+ ON</literal>, <literal>SET WITHOUT CLUSTER</literal>, <literal>ALTER COLUMN
+ SET STATISTICS</literal>, <literal>ALTER COLUMN</literal> <literal>SET</literal>
+ <option>(attribute_option)</option>, <literal>ALTER COLUMN RESET</literal>
+ <option>(attribute_option)</option> no longer require <literal>ACCESS
+ EXCLUSIVE</literal> locks.
</para>
</listitem>
<listitem>
<para>
Allow tablespace options to be set
- in <xref linkend="SQL-CREATETABLESPACE"> (Vik Fearing)
+ in <xref linkend="sql-createtablespace"> (Vik Fearing)
</para>
<para>
Formerly these options could only be set
- via <xref linkend="SQL-ALTERTABLESPACE">.
+ via <xref linkend="sql-altertablespace">.
</para>
</listitem>
<listitem>
<para>
- Allow <xref linkend="SQL-CREATEAGGREGATE"> to define the estimated
+ Allow <xref linkend="sql-createaggregate"> to define the estimated
size of the aggregate's transition state data (Hadi Moshayedi)
</para>
<listitem>
<para>
- Fix <command>DROP IF EXISTS</> to avoid errors for non-existent
+ Fix <command>DROP IF EXISTS</command> to avoid errors for non-existent
objects in more cases (Pavel Stehule, Dean Rasheed)
</para>
</listitem>
</para>
<para>
- Previously, relations once moved into the <literal>pg_catalog</>
+ Previously, relations once moved into the <literal>pg_catalog</literal>
schema could no longer be modified or dropped.
</para>
</listitem>
<listitem>
<para>
Fully implement the <link
- linkend="datatype-line"><type>line</></link> data type (Peter
+ linkend="datatype-line"><type>line</type></link> data type (Peter
Eisentraut)
</para>
<para>
- The line <emphasis>segment</> data type (<link
- linkend="datatype-lseg"><type>lseg</></link>) has always been
- fully supported. The previous <type>line</> data type (which was
+ The line <emphasis>segment</emphasis> data type (<link
+ linkend="datatype-lseg"><type>lseg</type></link>) has always been
+ fully supported. The previous <type>line</type> data type (which was
enabled only via a compile-time option) is not binary or
dump-compatible with the new implementation.
</para>
<listitem>
<para>
- Add <link linkend="datatype-pg-lsn"><type>pg_lsn</></link>
- data type to represent a <acronym>WAL</> log sequence number
- (<acronym>LSN</>) (Robert Haas, Michael Paquier)
+ Add <link linkend="datatype-pg-lsn"><type>pg_lsn</type></link>
+ data type to represent a <acronym>WAL</acronym> log sequence number
+ (<acronym>LSN</acronym>) (Robert Haas, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Allow single-point <link
- linkend="datatype-polygon"><type>polygon</></link>s to be converted
- to <link linkend="datatype-circle"><type>circle</></link>s
+ linkend="datatype-polygon"><type>polygon</type></link>s to be converted
+ to <link linkend="datatype-circle"><type>circle</type></link>s
(Bruce Momjian)
</para>
</listitem>
</para>
<para>
- Previously, <productname>PostgreSQL</> assumed that the UTC offset
- associated with a time zone abbreviation (such as <literal>EST</>)
+ Previously, <productname>PostgreSQL</productname> assumed that the UTC offset
+ associated with a time zone abbreviation (such as <literal>EST</literal>)
never changes in the usage of any particular locale. However this
assumption fails in the real world, so introduce the ability for a
zone abbreviation to represent a UTC offset that sometimes changes.
Update the zone abbreviation definition files to make use of this
feature in timezone locales that have changed the UTC offset of their
abbreviations since 1970 (according to the IANA timezone database).
- In such timezones, <productname>PostgreSQL</> will now associate the
+ In such timezones, <productname>PostgreSQL</productname> will now associate the
correct UTC offset with the abbreviation depending on the given date.
</para>
</listitem>
<listitem>
<para>
- Allow 5+ digit years for non-<acronym>ISO</> <link
- linkend="datatype-datetime"><type>timestamp</></link> and
- <type>date</> strings, where appropriate (Bruce Momjian)
+ Allow 5+ digit years for non-<acronym>ISO</acronym> <link
+ linkend="datatype-datetime"><type>timestamp</type></link> and
+ <type>date</type> strings, where appropriate (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Add checks for overflow/underflow of <link
- linkend="datatype-datetime"><type>interval</></link> values
+ linkend="datatype-datetime"><type>interval</type></link> values
(Bruce Momjian)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><link linkend="datatype-json"><acronym>JSON</></link></title>
+ <title><link linkend="datatype-json"><acronym>JSON</acronym></link></title>
<itemizedlist>
<listitem>
<para>
- Add <link linkend="datatype-json"><type>jsonb</></link>, a more
- capable and efficient data type for storing <acronym>JSON</> data
+ Add <link linkend="datatype-json"><type>jsonb</type></link>, a more
+ capable and efficient data type for storing <acronym>JSON</acronym> data
(Oleg Bartunov, Teodor Sigaev, Alexander
Korotkov, Peter Geoghegan, Andrew Dunstan)
</para>
<para>
This new type allows faster access to values within a JSON
document, and faster and more useful indexing of JSON columns.
- Scalar values in <type>jsonb</> documents are stored as appropriate
+ Scalar values in <type>jsonb</type> documents are stored as appropriate
scalar SQL types, and the JSON document structure is pre-parsed
- rather than being stored as text as in the original <type>json</>
+ rather than being stored as text as in the original <type>json</type>
data type.
</para>
</listitem>
<para>
New functions include <link
- linkend="functions-json-processing-table"><function>json_array_elements_text()</></link>,
- <function>json_build_array()</>, <function>json_object()</>,
- <function>json_object_agg()</>, <function>json_to_record()</>,
- and <function>json_to_recordset()</>.
+ linkend="functions-json-processing-table"><function>json_array_elements_text()</function></link>,
+ <function>json_build_array()</function>, <function>json_object()</function>,
+ <function>json_object_agg()</function>, <function>json_to_record()</function>,
+ and <function>json_to_recordset()</function>.
</para>
</listitem>
<listitem>
<para>
Add <link
- linkend="functions-json-processing-table"><function>json_typeof()</></link>
- to return the data type of a <type>json</> value (Andrew Tipton)
+ linkend="functions-json-processing-table"><function>json_typeof()</function></link>
+ to return the data type of a <type>json</type> value (Andrew Tipton)
</para>
</listitem>
<listitem>
<para>
Add <link
- linkend="functions-datetime-delay"><function>pg_sleep_for(interval)</></link>
- and <function>pg_sleep_until(timestamp)</> to specify
+ linkend="functions-datetime-delay"><function>pg_sleep_for(interval)</function></link>
+ and <function>pg_sleep_until(timestamp)</function> to specify
delays more flexibly (Vik Fearing, Julien Rouhaud)
</para>
<para>
- The existing <function>pg_sleep()</> function only supports delays
+ The existing <function>pg_sleep()</function> function only supports delays
specified in seconds.
</para>
</listitem>
<listitem>
<para>
Add <link
- linkend="array-functions-table"><function>cardinality()</></link>
+ linkend="array-functions-table"><function>cardinality()</function></link>
function for arrays (Marko Tiikkaja)
</para>
<listitem>
<para>
- Add <acronym>SQL</> functions to allow <link linkend="lo-funcs">large
+ Add <acronym>SQL</acronym> functions to allow <link linkend="lo-funcs">large
object reads/writes</link> at arbitrary offsets (Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Allow <link
- linkend="array-functions-table"><function>unnest()</></link>
+ linkend="array-functions-table"><function>unnest()</function></link>
to take multiple arguments, which are individually unnested then
horizontally concatenated (Andrew Gierth)
</para>
<listitem>
<para>
- Add functions to construct <type>time</>s, <type>date</>s,
- <type>timestamp</>s, <type>timestamptz</>s, and <type>interval</>s
+ Add functions to construct <type>time</type>s, <type>date</type>s,
+ <type>timestamp</type>s, <type>timestamptz</type>s, and <type>interval</type>s
from individual values, rather than strings (Pavel Stehule)
</para>
<para>
- These functions' names are prefixed with <literal>make_</>,
- e.g. <link linkend="functions-datetime-table"><function>make_date()</></link>.
+ These functions' names are prefixed with <literal>make_</literal>,
+ e.g. <link linkend="functions-datetime-table"><function>make_date()</function></link>.
</para>
</listitem>
<listitem>
<para>
Make <link
- linkend="functions-formatting-table"><function>to_char()</></link>'s
- <literal>TZ</> format specifier return a useful value for simple
+ linkend="functions-formatting-table"><function>to_char()</function></link>'s
+ <literal>TZ</literal> format specifier return a useful value for simple
numeric time zone offsets (Tom Lane)
</para>
<para>
- Previously, <literal>to_char(CURRENT_TIMESTAMP, 'TZ')</> returned
- an empty string if the <literal>timezone</> was set to a constant
- like <literal>-4</>.
+ Previously, <literal>to_char(CURRENT_TIMESTAMP, 'TZ')</literal> returned
+ an empty string if the <literal>timezone</literal> was set to a constant
+ like <literal>-4</literal>.
</para>
</listitem>
<listitem>
<para>
- Add timezone offset format specifier <literal>OF</> to <link
- linkend="functions-formatting-table"><function>to_char()</></link>
+ Add timezone offset format specifier <literal>OF</literal> to <link
+ linkend="functions-formatting-table"><function>to_char()</function></link>
(Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Improve the random seed used for <link
- linkend="functions-math-random-table"><function>random()</></link>
+ linkend="functions-math-random-table"><function>random()</function></link>
(Honza Horak)
</para>
</listitem>
<listitem>
<para>
Tighten validity checking for Unicode code points in <link
- linkend="functions-string-other"><function>chr(int)</></link>
+ linkend="functions-string-other"><function>chr(int)</function></link>
(Tom Lane)
</para>
<listitem>
<para>
- Add functions for looking up objects in <structname>pg_class</>,
- <structname>pg_proc</>, <structname>pg_type</>, and
- <structname>pg_operator</> that do not generate errors for
+ Add functions for looking up objects in <structname>pg_class</structname>,
+ <structname>pg_proc</structname>, <structname>pg_type</structname>, and
+ <structname>pg_operator</structname> that do not generate errors for
non-existent objects (Yugo Nagata, Nozomi Anzai,
Robert Haas)
</para>
<para>
For example, <link
- linkend="functions-info-catalog-table"><function>to_regclass()</></link>
- does a lookup in <structname>pg_class</> similarly to
- the <type>regclass</> input function, but it returns NULL for a
+ linkend="functions-info-catalog-table"><function>to_regclass()</function></link>
+ does a lookup in <structname>pg_class</structname> similarly to
+ the <type>regclass</type> input function, but it returns NULL for a
non-existent object instead of failing.
</para>
</listitem>
<listitem>
<para>
Add function <link
- linkend="functions-admin-dblocation"><function>pg_filenode_relation()</></link>
+ linkend="functions-admin-dblocation"><function>pg_filenode_relation()</function></link>
to allow for more efficient lookup of relation names from filenodes
(Andres Freund)
</para>
<listitem>
<para>
- Add <structfield>parameter_default</> column to <link
- linkend="infoschema-parameters"><structname>information_schema.parameters</></link>
+ Add <structfield>parameter_default</structfield> column to <link
+ linkend="infoschema-parameters"><structname>information_schema.parameters</structname></link>
view (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Make <link
- linkend="infoschema-schemata"><structname>information_schema.schemata</></link>
+ linkend="infoschema-schemata"><structname>information_schema.schemata</structname></link>
show all accessible schemas (Peter Eisentraut)
</para>
<para>
Add control over which rows are passed
into aggregate functions via the <link
- linkend="syntax-aggregates"><literal>FILTER</></link> clause
+ linkend="syntax-aggregates"><literal>FILTER</literal></link> clause
(David Fetter)
</para>
</listitem>
<listitem>
<para>
Support ordered-set (<link
- linkend="syntax-aggregates"><literal>WITHIN GROUP</></link>)
+ linkend="syntax-aggregates"><literal>WITHIN GROUP</literal></link>)
aggregates (Atri Sharma, Andrew Gierth, Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add standard ordered-set aggregates <link
- linkend="functions-orderedset-table"><function>percentile_cont()</></link>,
- <function>percentile_disc()</>, <function>mode()</>, <link
- linkend="functions-hypothetical-table"><function>rank()</></link>,
- <function>dense_rank()</>, <function>percent_rank()</>, and
- <function>cume_dist()</>
+ linkend="functions-orderedset-table"><function>percentile_cont()</function></link>,
+ <function>percentile_disc()</function>, <function>mode()</function>, <link
+ linkend="functions-hypothetical-table"><function>rank()</function></link>,
+ <function>dense_rank()</function>, <function>percent_rank()</function>, and
+ <function>cume_dist()</function>
(Atri Sharma, Andrew Gierth)
</para>
</listitem>
<listitem>
<para>
Support <link
- linkend="xfunc-sql-variadic-functions"><literal>VARIADIC</></link>
+ linkend="xfunc-sql-variadic-functions"><literal>VARIADIC</literal></link>
aggregate functions (Tom Lane)
</para>
</listitem>
</para>
<para>
This allows proper declaration in SQL of aggregates like the built-in
- aggregate <function>array_agg()</>.
+ aggregate <function>array_agg()</function>.
</para>
</listitem>
<listitem>
<para>
- Add event trigger support to <link linkend="plperl">PL/Perl</>
- and <link linkend="pltcl">PL/Tcl</> (Dimitri Fontaine)
+ Add event trigger support to <link linkend="plperl">PL/Perl</link>
+ and <link linkend="pltcl">PL/Tcl</link> (Dimitri Fontaine)
</para>
</listitem>
<listitem>
<para>
- Convert <link linkend="datatype-numeric"><type>numeric</></link>
- values to <type>decimal</> in <link linkend="plpython">PL/Python</link>
+ Convert <link linkend="datatype-numeric"><type>numeric</type></link>
+ values to <type>decimal</type> in <link linkend="plpython">PL/Python</link>
(Szymon Guz, Ronan Dunklau)
</para>
<para>
- Previously such values were converted to Python <type>float</> values,
+ Previously such values were converted to Python <type>float</type> values,
risking loss of precision.
</para>
</listitem>
<para>
Add ability to retrieve the current PL/pgSQL call stack
using <link linkend="plpgsql-call-stack"><command>GET
- DIAGNOSTICS</></link>
+ DIAGNOSTICS</command></link>
(Pavel Stehule, Stephen Frost)
</para>
</listitem>
<listitem>
<para>
Add option <link
- linkend="plpgsql-statements-sql-onerow"><option>print_strict_params</></link>
+ linkend="plpgsql-statements-sql-onerow"><option>print_strict_params</option></link>
to display the parameters passed to a query that violated a
- <literal>STRICT</> constraint (Marko Tiikkaja)
+ <literal>STRICT</literal> constraint (Marko Tiikkaja)
</para>
</listitem>
<listitem>
<para>
Add variables <link
- linkend="plpgsql-extra-checks"><varname>plpgsql.extra_warnings</></link>
- and <varname>plpgsql.extra_errors</> to enable additional PL/pgSQL
+ linkend="plpgsql-extra-checks"><varname>plpgsql.extra_warnings</varname></link>
+ and <varname>plpgsql.extra_errors</varname> to enable additional PL/pgSQL
warnings and errors (Marko Tiikkaja, Petr Jelinek)
</para>
</sect3>
<sect3>
- <title><link linkend="libpq"><application>libpq</></link></title>
+ <title><link linkend="libpq"><application>libpq</application></link></title>
<itemizedlist>
<listitem>
<para>
Make libpq's <link
- linkend="libpq-pqconndefaults"><function>PQconndefaults()</></link>
+ linkend="libpq-pqconndefaults"><function>PQconndefaults()</function></link>
function ignore invalid service files (Steve Singer, Bruce Momjian)
</para>
<listitem>
<para>
- Accept <acronym>TLS</> protocol versions beyond <literal>TLSv1</>
+ Accept <acronym>TLS</acronym> protocol versions beyond <literal>TLSv1</literal>
in libpq (Marko Kreen)
</para>
</listitem>
<listitem>
<para>
- Add <xref linkend="APP-CREATEUSER"> option <option>-g</>
+ Add <xref linkend="app-createuser"> option <option>-g</option>
to specify role membership (Christopher Browne)
</para>
</listitem>
<listitem>
<para>
- Add <xref linkend="APP-VACUUMDB">
- option <option>--analyze-in-stages</> to analyze in stages of
+ Add <xref linkend="app-vacuumdb">
+ option <option>--analyze-in-stages</option> to analyze in stages of
increasing granularity (Peter Eisentraut)
</para>
<listitem>
<para>
- Make <link linkend="app-pgresetwal"><application>pg_resetxlog</></>
- with option <option>-n</> output current and potentially changed
+ Make <link linkend="app-pgresetwal"><application>pg_resetxlog</application></link>
+ with option <option>-n</option> output current and potentially changed
values (Rajeev Rastogi)
</para>
</listitem>
<listitem>
<para>
- Make <xref linkend="app-pg-ctl"> return exit code <literal>4</> for
+ Make <xref linkend="app-pg-ctl"> return exit code <literal>4</literal> for
an inaccessible data directory (Amit Kapila, Bruce Momjian)
</para>
<para>
This behavior more closely matches the Linux Standard Base
- (<acronym>LSB</>) Core Specification.
+ (<acronym>LSB</acronym>) Core Specification.
</para>
</listitem>
<listitem>
<para>
- On Windows, ensure that a non-absolute <option>-D</> path
+ On Windows, ensure that a non-absolute <option>-D</option> path
specification is interpreted relative
to <xref linkend="app-pg-ctl">'s current directory
(Kumar Rajeev Rastogi)
<listitem>
<para>
- Allow <function>sizeof()</> in <link linkend="ecpg">ECPG</link>
+ Allow <function>sizeof()</function> in <link linkend="ecpg">ECPG</link>
C array definitions (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
Make <link linkend="ecpg">ECPG</link> properly handle nesting
- of C-style comments in both C and <acronym>SQL</> text
+ of C-style comments in both C and <acronym>SQL</acronym> text
(Michael Meskes)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><xref linkend="APP-PSQL"></title>
+ <title><xref linkend="app-psql"></title>
<itemizedlist>
<listitem>
<para>
- Suppress <quote>No rows</quote> output in <application>psql</> <link
- linkend="APP-PSQL-meta-commands"><option>expanded</></link>
+ Suppress <quote>No rows</quote> output in <application>psql</application> <link
+ linkend="app-psql-meta-commands"><option>expanded</option></link>
mode when the footer is disabled (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Allow Control-C to abort <application>psql</> when it's hung at
+ Allow Control-C to abort <application>psql</application> when it's hung at
connection startup (Peter Eisentraut)
</para>
</listitem>
</itemizedlist>
<sect5>
- <title><link linkend="APP-PSQL-meta-commands">Backslash Commands</link></title>
+ <title><link linkend="app-psql-meta-commands">Backslash Commands</link></title>
<itemizedlist>
<listitem>
<para>
- Make <application>psql</>'s <command>\db+</> show tablespace options
+ Make <application>psql</application>'s <command>\db+</command> show tablespace options
(Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
- Make <command>\do+</> display the functions
+ Make <command>\do+</command> display the functions
that implement the operators (Marko Tiikkaja)
</para>
</listitem>
<listitem>
<para>
- Make <command>\d+</> output an
- <literal>OID</> line only if an <literal>oid</literal> column
+ Make <command>\d+</command> output an
+ <literal>OID</literal> line only if an <literal>oid</literal> column
exists in the table (Bruce Momjian)
</para>
<listitem>
<para>
- Make <command>\d</> show disabled system triggers (Bruce
+ Make <command>\d</command> show disabled system triggers (Bruce
Momjian)
</para>
<listitem>
<para>
- Fix <command>\copy</> to no longer require
- a space between <literal>stdin</> and a semicolon (Etsuro Fujita)
+ Fix <command>\copy</command> to no longer require
+ a space between <literal>stdin</literal> and a semicolon (Etsuro Fujita)
</para>
</listitem>
<listitem>
<para>
- Output the row count at the end of <command>\copy</>, just
- like <command>COPY</> already did (Kumar Rajeev Rastogi)
+ Output the row count at the end of <command>\copy</command>, just
+ like <command>COPY</command> already did (Kumar Rajeev Rastogi)
</para>
</listitem>
<listitem>
<para>
- Fix <command>\conninfo</> to display the
- server's <acronym>IP</> address for connections using
- <literal>hostaddr</> (Fujii Masao)
+ Fix <command>\conninfo</command> to display the
+ server's <acronym>IP</acronym> address for connections using
+ <literal>hostaddr</literal> (Fujii Masao)
</para>
<para>
- Previously <command>\conninfo</> could not display the server's
- <acronym>IP</> address in such cases.
+ Previously <command>\conninfo</command> could not display the server's
+ <acronym>IP</acronym> address in such cases.
</para>
</listitem>
<listitem>
<para>
- Show the <acronym>SSL</> protocol version in
- <command>\conninfo</> (Marko Kreen)
+ Show the <acronym>SSL</acronym> protocol version in
+ <command>\conninfo</command> (Marko Kreen)
</para>
</listitem>
<listitem>
<para>
- Add tab completion for <command>\pset</>
+ Add tab completion for <command>\pset</command>
(Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
- Allow <command>\pset</> with no arguments
+ Allow <command>\pset</command> with no arguments
to show all settings (Gilles Darold)
</para>
</listitem>
<listitem>
<para>
- Make <command>\s</> display the name of the history file it wrote
+ Make <command>\s</command> display the name of the history file it wrote
without converting it to an absolute path (Tom Lane)
</para>
</sect4>
<sect4>
- <title><xref linkend="APP-PGDUMP"></title>
+ <title><xref linkend="app-pgdump"></title>
<itemizedlist>
<listitem>
<para>
- Allow <xref linkend="APP-PGRESTORE"> options
- <option>-I</>, <option>-P</>, <option>-T</> and <option>-n</>
+ Allow <xref linkend="app-pgrestore"> options
+ <option>-I</option>, <option>-P</option>, <option>-T</option> and <option>-n</option>
to be specified multiple times (Heikki Linnakangas)
</para>
<listitem>
<para>
- Optionally add <literal>IF EXISTS</> clauses to the <command>DROP</>
+ Optionally add <literal>IF EXISTS</literal> clauses to the <command>DROP</command>
commands emitted when removing old objects during a restore (Pavel
Stehule)
</para>
<para>
This change prevents unnecessary errors when removing old objects.
- The new <option>--if-exists</> option
- for <xref linkend="APP-PGDUMP">, <xref linkend="APP-PG-DUMPALL">,
- and <xref linkend="APP-PGRESTORE"> is only available
- when <option>--clean</> is also specified.
+ The new <option>--if-exists</option> option
+ for <xref linkend="app-pgdump">, <xref linkend="app-pg-dumpall">,
+ and <xref linkend="app-pgrestore"> is only available
+ when <option>--clean</option> is also specified.
</para>
</listitem>
<listitem>
<para>
- Add <application>pg_basebackup</> option <option>--xlogdir</>
- to specify the <filename>pg_xlog</> directory location (Haribabu
+ Add <application>pg_basebackup</application> option <option>--xlogdir</option>
+ to specify the <filename>pg_xlog</filename> directory location (Haribabu
Kommi)
</para>
</listitem>
<listitem>
<para>
- Allow <application>pg_basebackup</> to relocate tablespaces in
+ Allow <application>pg_basebackup</application> to relocate tablespaces in
the backup copy (Steeve Lennmark)
</para>
<para>
- This is particularly useful for using <application>pg_basebackup</>
+ This is particularly useful for using <application>pg_basebackup</application>
on the same machine as the primary.
</para>
</listitem>
</para>
<para>
- This can be controlled with the <application>pg_basebackup</>
- <option>--max-rate</> parameter.
+ This can be controlled with the <application>pg_basebackup</application>
+ <option>--max-rate</option> parameter.
</para>
</listitem>
<listitem>
<para>
No longer require function prototypes for functions marked with the
- <link linkend="xfunc-c"><function>PG_FUNCTION_INFO_V1</></link>
+ <link linkend="xfunc-c"><function>PG_FUNCTION_INFO_V1</function></link>
macro (Peter Eisentraut)
</para>
<para>
This change eliminates the need to write boilerplate prototypes.
- Note that the <function>PG_FUNCTION_INFO_V1</> macro must appear
+ Note that the <function>PG_FUNCTION_INFO_V1</function> macro must appear
before the corresponding function definition to avoid compiler
warnings.
</para>
<listitem>
<para>
- Remove <varname>SnapshotNow</> and
- <function>HeapTupleSatisfiesNow()</> (Robert Haas)
+ Remove <varname>SnapshotNow</varname> and
+ <function>HeapTupleSatisfiesNow()</function> (Robert Haas)
</para>
<para>
All existing uses have been switched to more appropriate snapshot
- types. Catalog scans now use <acronym>MVCC</> snapshots.
+ types. Catalog scans now use <acronym>MVCC</acronym> snapshots.
</para>
</listitem>
<listitem>
<para>
- Add an <acronym>API</> to allow memory allocations over one gigabyte
+ Add an <acronym>API</acronym> to allow memory allocations over one gigabyte
(Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Add <function>psprintf()</> to simplify memory allocation during
+ Add <function>psprintf()</function> to simplify memory allocation during
string composition (Peter Eisentraut, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Support <function>printf()</> size modifier <literal>z</> to
- print <type>size_t</> values (Andres Freund)
+ Support <function>printf()</function> size modifier <literal>z</literal> to
+ print <type>size_t</type> values (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Change <acronym>API</> of <function>appendStringInfoVA()</>
- to better use <function>vsnprintf()</> (David Rowley, Tom Lane)
+ Change <acronym>API</acronym> of <function>appendStringInfoVA()</function>
+ to better use <function>vsnprintf()</function> (David Rowley, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Improve spinlock speed on x86_64 <acronym>CPU</>s (Heikki
+ Improve spinlock speed on x86_64 <acronym>CPU</acronym>s (Heikki
Linnakangas)
</para>
</listitem>
<listitem>
<para>
Remove spinlock support for unsupported platforms
- <productname>SINIX</>, <productname>Sun3</>, and
- <productname>NS32K</> (Robert Haas)
+ <productname>SINIX</productname>, <productname>Sun3</productname>, and
+ <productname>NS32K</productname> (Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Remove <acronym>IRIX</> port (Robert Haas)
+ Remove <acronym>IRIX</acronym> port (Robert Haas)
</para>
</listitem>
<listitem>
<para>
Reduce the number of semaphores required by
- <option>--disable-spinlocks</> builds (Robert Haas)
+ <option>--disable-spinlocks</option> builds (Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Rewrite <application>duplicate_oids</> Unix shell script in
- <application>Perl</> (Andrew Dunstan)
+ Rewrite <application>duplicate_oids</application> Unix shell script in
+ <application>Perl</application> (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Add Test Anything Protocol (<acronym>TAP</>) tests for client
+ Add Test Anything Protocol (<acronym>TAP</acronym>) tests for client
programs (Peter Eisentraut)
</para>
<para>
- Currently, these tests are run by <literal>make check-world</>
- only if the <option>--enable-tap-tests</> option was given
- to <application>configure</>.
+ Currently, these tests are run by <literal>make check-world</literal>
+ only if the <option>--enable-tap-tests</option> option was given
+ to <application>configure</application>.
This might become the default behavior in some future release.
</para>
</listitem>
<listitem>
<para>
- Add make targets <option>check-tests</> and
- <option>installcheck-tests</>, which allow selection of individual
+ Add make targets <option>check-tests</option> and
+ <option>installcheck-tests</option>, which allow selection of individual
tests to be run (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Remove <option>maintainer-check</> makefile rule (Peter Eisentraut)
+ Remove <option>maintainer-check</option> makefile rule (Peter Eisentraut)
</para>
<para>
<listitem>
<para>
- Improve support for <envar>VPATH</> builds of <acronym>PGXS</>
+ Improve support for <envar>VPATH</envar> builds of <acronym>PGXS</acronym>
modules (Cédric Villemain, Andrew Dunstan, Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Add a <application>configure</> flag that appends custom text to the
- <envar>PG_VERSION</> string (Oskari Saarenmaa)
+ Add a <application>configure</application> flag that appends custom text to the
+ <envar>PG_VERSION</envar> string (Oskari Saarenmaa)
</para>
<para>
<listitem>
<para>
- Improve DocBook <acronym>XML</> validity (Peter Eisentraut)
+ Improve DocBook <acronym>XML</acronym> validity (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Fix various minor security and sanity issues reported by the
- <productname>Coverity</> scanner (Stephen Frost)
+ <productname>Coverity</productname> scanner (Stephen Frost)
</para>
</listitem>
<listitem>
<para>
Improve detection of invalid memory usage when testing
- <productname>PostgreSQL</> with <application>Valgrind</>
+ <productname>PostgreSQL</productname> with <application>Valgrind</application>
(Noah Misch)
</para>
</listitem>
<listitem>
<para>
- Improve sample <application>Emacs</> configuration file
- <filename>emacs.samples</> (Peter Eisentraut)
+ Improve sample <application>Emacs</application> configuration file
+ <filename>emacs.samples</filename> (Peter Eisentraut)
</para>
<para>
- Also add <filename>.dir-locals.el</> to the top of the source tree.
+ Also add <filename>.dir-locals.el</filename> to the top of the source tree.
</para>
</listitem>
<listitem>
<para>
- Allow <application>pgindent</> to accept a command-line list
+ Allow <application>pgindent</application> to accept a command-line list
of typedefs (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Make <application>pgindent</> smarter about blank lines
+ Make <application>pgindent</application> smarter about blank lines
around preprocessor conditionals (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Avoid most uses of <command>dlltool</command>
- in <productname>Cygwin</> and
- <productname>Mingw</> builds (Marco Atzeri, Hiroshi Inoue)
+ in <productname>Cygwin</productname> and
+ <productname>Mingw</productname> builds (Marco Atzeri, Hiroshi Inoue)
</para>
</listitem>
<listitem>
<para>
- Support client-only installs in <acronym>MSVC</> (Windows) builds
+ Support client-only installs in <acronym>MSVC</acronym> (Windows) builds
(MauMau)
</para>
</listitem>
<listitem>
<para>
- Add <acronym>UUID</> random number generator
- <function>gen_random_uuid()</> to <xref linkend="pgcrypto">
+ Add <acronym>UUID</acronym> random number generator
+ <function>gen_random_uuid()</function> to <xref linkend="pgcrypto">
(Oskari Saarenmaa)
</para>
<para>
- This allows creation of version 4 <acronym>UUID</>s without
+ This allows creation of version 4 <acronym>UUID</acronym>s without
requiring installation of <xref linkend="uuid-ossp">.
</para>
</listitem>
<listitem>
<para>
Allow <xref linkend="uuid-ossp"> to work with
- the <systemitem>BSD</> or <systemitem>e2fsprogs</> UUID libraries,
- not only the <systemitem>OSSP</> UUID library (Matteo Beccati)
+ the <systemitem>BSD</systemitem> or <systemitem>e2fsprogs</systemitem> UUID libraries,
+ not only the <systemitem>OSSP</systemitem> UUID library (Matteo Beccati)
</para>
<para>
- This improves the <application>uuid-ossp</> module's portability
+ This improves the <application>uuid-ossp</application> module's portability
since it no longer has to have the increasingly-obsolete OSSP
library. The module's name is now rather a misnomer, but we won't
change it.
<listitem>
<para>
- Allow <link linkend="pgwaldump"><application>pg_xlogdump</></>
- to report a live log stream with <option>--follow</>
+ Allow <link linkend="pgwaldump"><application>pg_xlogdump</application></link>
+ to report a live log stream with <option>--follow</option>
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
- Pass <xref linkend="pgupgrade">'s user name (<option>-U</>) option to
+ Pass <xref linkend="pgupgrade">'s user name (<option>-U</option>) option to
generated analyze scripts (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
- Remove line length limit for <application>pgbench</> scripts (Sawada
+ Remove line length limit for <application>pgbench</application> scripts (Sawada
Masahiko)
</para>
<para>
- The previous line limit was <envar>BUFSIZ</>.
+ The previous line limit was <envar>BUFSIZ</envar>.
</para>
</listitem>
<listitem>
<para>
- Add long option names to <application>pgbench</> (Fabien Coelho)
+ Add long option names to <application>pgbench</application> (Fabien Coelho)
</para>
</listitem>
<listitem>
<para>
- Add <application>pgbench</> option <option>--rate</> to control
+ Add <application>pgbench</application> option <option>--rate</option> to control
the transaction rate (Fabien Coelho)
</para>
</listitem>
<listitem>
<para>
- Add <application>pgbench</> option <option>--progress</> to
+ Add <application>pgbench</application> option <option>--progress</option> to
print periodic progress reports
(Fabien Coelho)
</para>
<listitem>
<para>
- Make <application>pg_stat_statements</> use a file, rather than
+ Make <application>pg_stat_statements</application> use a file, rather than
shared memory, for query text storage (Peter Geoghegan)
</para>
<listitem>
<para>
- Allow reporting of <application>pg_stat_statements</>'s internal
+ Allow reporting of <application>pg_stat_statements</application>'s internal
query hash identifier (Daniel Farina, Sameer Thakur, Peter
Geoghegan)
</para>
<listitem>
<para>
- Add the ability to retrieve all <application>pg_stat_statements</>
+ Add the ability to retrieve all <application>pg_stat_statements</application>
information except the query text (Peter Geoghegan)
</para>
<listitem>
<para>
- Make <application>pg_stat_statements</> ignore <command>DEALLOCATE</>
+ Make <application>pg_stat_statements</application> ignore <command>DEALLOCATE</command>
commands (Fabien Coelho)
</para>
<para>
- It already ignored <command>PREPARE</>, as well as planning time in
+ It already ignored <command>PREPARE</command>, as well as planning time in
general, so this seems more consistent.
</para>
</listitem>
<listitem>
<para>
- Save the statistics file into <filename>$PGDATA/pg_stat</> at server
- shutdown, rather than <filename>$PGDATA/global</> (Fujii Masao)
+ Save the statistics file into <filename>$PGDATA/pg_stat</filename> at server
+ shutdown, rather than <filename>$PGDATA/global</filename> (Fujii Masao)
</para>
</listitem>
<!-- doc/src/sgml/release-9.5.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+ <sect1 id="release-9-5-10">
+ <title>Release 9.5.10</title>
+
+ <formalpara>
+ <title>Release date:</title>
+ <para>2017-11-09</para>
+ </formalpara>
+
+ <para>
+ This release contains a variety of fixes from 9.5.9.
+ For information about new features in the 9.5 major release, see
+ <xref linkend="release-9-5">.
+ </para>
+
+ <sect2>
+ <title>Migration to Version 9.5.10</title>
+
+ <para>
+ A dump/restore is not required for those running 9.5.X.
+ </para>
+
+ <para>
+ However, if you use BRIN indexes, see the first changelog entry below.
+ </para>
+
+ <para>
+ Also, if you are upgrading from a version earlier than 9.5.8,
+ see <xref linkend="release-9-5-8">.
+ </para>
+ </sect2>
+
+ <sect2>
+ <title>Changes</title>
+
+ <itemizedlist>
+
+ <listitem>
+ <para>
+ Fix BRIN index summarization to handle concurrent table extension
+ correctly (Álvaro Herrera)
+ </para>
+
+ <para>
+ Previously, a race condition allowed some table rows to be omitted from
+ the index. It may be necessary to reindex existing BRIN indexes to
+ recover from past occurrences of this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix possible failures during concurrent updates of a BRIN index
+ (Tom Lane)
+ </para>
+
+ <para>
+ These race conditions could result in errors like <quote>invalid index
+ offnum</quote> or <quote>inconsistent range map</quote>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix crash when logical decoding is invoked from a SPI-using function,
+ in particular any function written in a PL language
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <function>json_build_array()</function>,
+ <function>json_build_object()</function>, and their <type>jsonb</type>
+ equivalents to handle explicit <literal>VARIADIC</literal> arguments
+ correctly (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Properly reject attempts to convert infinite float values to
+ type <type>numeric</type> (Tom Lane, KaiGai Kohei)
+ </para>
+
+ <para>
+ Previously the behavior was platform-dependent.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix corner-case crashes when columns have been added to the end of a
+ view (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Record proper dependencies when a view or rule
+ contains <structname>FieldSelect</structname>
+ or <structname>FieldStore</structname> expression nodes (Tom Lane)
+ </para>
+
+ <para>
+ Lack of these dependencies could allow a column or data
+ type <command>DROP</command> to go through when it ought to fail,
+ thereby causing later uses of the view or rule to get errors.
+ This patch does not do anything to protect existing views/rules,
+ only ones created in the future.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly detect hashability of range data types (Tom Lane)
+ </para>
+
+ <para>
+ The planner mistakenly assumed that any range type could be hashed
+ for use in hash joins or hash aggregation, but actually it must check
+ whether the range's subtype has hash support. This does not affect any
+ of the built-in range types, since they're all hashable anyway.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly ignore <structname>RelabelType</structname> expression nodes
+ when determining relation distinctness (David Rowley)
+ </para>
+
+ <para>
+ This allows the intended optimization to occur when a subquery has
+ a result column of type <type>varchar</type>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix low-probability loss of <command>NOTIFY</command> messages due to
+ XID wraparound (Marko Tiikkaja, Tom Lane)
+ </para>
+
+ <para>
+ If a session executed no queries, but merely listened for
+ notifications, for more than 2 billion transactions, it started to miss
+ some notifications from concurrently-committing transactions.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Avoid <systemitem>SIGBUS</systemitem> crash on Linux when a DSM memory
+ request exceeds the space available in <systemitem>tmpfs</systemitem>
+ (Thomas Munro)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Prevent low-probability crash in processing of nested trigger firings
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Allow <command>COPY</command>'s <literal>FREEZE</literal> option to
+ work when the transaction isolation level is <literal>REPEATABLE
+ READ</literal> or higher (Noah Misch)
+ </para>
+
+ <para>
+ This case was unintentionally broken by a previous bug fix.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly restore the umask setting when file creation fails
+ in <command>COPY</command> or <function>lo_export()</function>
+ (Peter Eisentraut)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Give a better error message for duplicate column names
+ in <command>ANALYZE</command> (Nathan Bossart)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix mis-parsing of the last line in a
+ non-newline-terminated <filename>pg_hba.conf</filename> file
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>pg_basebackup</application>'s matching of tablespace
+ paths to canonicalize both paths before comparing (Michael Paquier)
+ </para>
+
+ <para>
+ This is particularly helpful on Windows.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to not require user's home
+ directory to exist (Tom Lane)
+ </para>
+
+ <para>
+ In v10, failure to find the home directory while trying to
+ read <filename>~/.pgpass</filename> was treated as a hard error,
+ but it should just cause that file to not be found. Both v10 and
+ previous release branches made the same mistake when
+ reading <filename>~/.pg_service.conf</filename>, though this was less
+ obvious since that file is not sought unless a service name is
+ specified.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to guard against integer
+ overflow in the row count of a <structname>PGresult</structname>
+ (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>ecpg</application>'s handling of out-of-scope cursor
+ declarations with pointer or array variables (Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ In ecpglib, correctly handle backslashes in string literals depending
+ on whether <varname>standard_conforming_strings</varname> is set
+ (Tsunakawa Takayuki)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Make ecpglib's Informix-compatibility mode ignore fractional digits in
+ integer input strings, as expected (Gao Zengqi, Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Sync our copy of the timezone library with IANA release tzcode2017c
+ (Tom Lane)
+ </para>
+
+ <para>
+ This fixes various issues; the only one likely to be user-visible
+ is that the default DST rules for a POSIX-style zone name, if
+ no <filename>posixrules</filename> file exists in the timezone data
+ directory, now match current US law rather than what it was a dozen
+ years ago.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Update time zone data files to <application>tzdata</application>
+ release 2017c for DST law changes in Fiji, Namibia, Northern Cyprus,
+ Sudan, Tonga, and Turks & Caicos Islands, plus historical
+ corrections for Alaska, Apia, Burma, Calcutta, Detroit, Ireland,
+ Namibia, and Pago Pago.
+ </para>
+ </listitem>
+
+ </itemizedlist>
+
+ </sect2>
+ </sect1>
+
<sect1 id="release-9-5-9">
<title>Release 9.5.9</title>
<listitem>
<para>
Show foreign tables
- in <structname>information_schema</>.<structname>table_privileges</>
+ in <structname>information_schema</structname>.<structname>table_privileges</structname>
view (Peter Eisentraut)
</para>
<para>
- All other relevant <structname>information_schema</> views include
+ All other relevant <structname>information_schema</structname> views include
foreign tables, but this one ignored them.
</para>
<para>
- Since this view definition is installed by <application>initdb</>,
+ Since this view definition is installed by <application>initdb</application>,
merely upgrading will not fix the problem. If you need to fix this
in an existing installation, you can, as a superuser, do this
- in <application>psql</>:
+ in <application>psql</application>:
<programlisting>
SET search_path TO information_schema;
CREATE OR REPLACE VIEW table_privileges AS
OR grantee.rolname = 'PUBLIC');
</programlisting>
This must be repeated in each database to be fixed,
- including <literal>template0</>.
+ including <literal>template0</literal>.
</para>
</listitem>
<listitem>
<para>
Clean up handling of a fatal exit (e.g., due to receipt
- of <systemitem>SIGTERM</>) that occurs while trying to execute
- a <command>ROLLBACK</> of a failed transaction (Tom Lane)
+ of <systemitem>SIGTERM</systemitem>) that occurs while trying to execute
+ a <command>ROLLBACK</command> of a failed transaction (Tom Lane)
</para>
<para>
This situation could result in an assertion failure. In production
builds, the exit would still occur, but it would log an unexpected
- message about <quote>cannot drop active portal</>.
+ message about <quote>cannot drop active portal</quote>.
</para>
</listitem>
</para>
<para>
- Certain <command>ALTER</> commands that change the definition of a
+ Certain <command>ALTER</command> commands that change the definition of a
composite type or domain type are supposed to fail if there are any
stored values of that type in the database, because they lack the
infrastructure needed to update or check such values. Previously,
<listitem>
<para>
- Fix crash in <application>pg_restore</> when using parallel mode and
+ Fix crash in <application>pg_restore</application> when using parallel mode and
using a list file to select a subset of items to restore
(Fabrízio de Royes Mello)
</para>
<listitem>
<para>
- Change <application>ecpg</>'s parser to allow <literal>RETURNING</>
+ Change <application>ecpg</application>'s parser to allow <literal>RETURNING</literal>
clauses without attached C variables (Michael Meskes)
</para>
<para>
- This allows <application>ecpg</> programs to contain SQL constructs
- that use <literal>RETURNING</> internally (for example, inside a CTE)
+ This allows <application>ecpg</application> programs to contain SQL constructs
+ that use <literal>RETURNING</literal> internally (for example, inside a CTE)
rather than using it to define values to be returned to the client.
</para>
</listitem>
<para>
This fix avoids possible crashes of PL/Perl due to inconsistent
- assumptions about the width of <type>time_t</> values.
+ assumptions about the width of <type>time_t</type> values.
A side-effect that may be visible to extension developers is
- that <literal>_USE_32BIT_TIME_T</> is no longer defined globally
- in <productname>PostgreSQL</> Windows builds. This is not expected
- to cause problems, because type <type>time_t</> is not used
- in any <productname>PostgreSQL</> API definitions.
+ that <literal>_USE_32BIT_TIME_T</literal> is no longer defined globally
+ in <productname>PostgreSQL</productname> Windows builds. This is not expected
+ to cause problems, because type <type>time_t</type> is not used
+ in any <productname>PostgreSQL</productname> API definitions.
</para>
</listitem>
<listitem>
<para>
- Fix <literal>make check</> to behave correctly when invoked via a
+ Fix <literal>make check</literal> to behave correctly when invoked via a
non-GNU make program (Thomas Munro)
</para>
</listitem>
<listitem>
<para>
Further restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Noah Misch)
</para>
<para>
The fix for CVE-2017-7486 was incorrect: it allowed a user
to see the options in her own user mapping, even if she did not
- have <literal>USAGE</> permission on the associated foreign server.
+ have <literal>USAGE</literal> permission on the associated foreign server.
Such options might include a password that had been provided by the
server owner rather than the user herself.
- Since <structname>information_schema.user_mapping_options</> does not
- show the options in such cases, <structname>pg_user_mappings</>
+ Since <structname>information_schema.user_mapping_options</structname> does not
+ show the options in such cases, <structname>pg_user_mappings</structname>
should not either.
(CVE-2017-7547)
</para>
<step>
<para>
Restart the postmaster after adding <literal>allow_system_table_mods
- = true</> to <filename>postgresql.conf</>. (In versions
- supporting <command>ALTER SYSTEM</>, you can use that to make the
+ = true</literal> to <filename>postgresql.conf</filename>. (In versions
+ supporting <command>ALTER SYSTEM</command>, you can use that to make the
configuration change, but you'll still need a restart.)
</para>
</step>
<step>
<para>
- In <emphasis>each</> database of the cluster,
+ In <emphasis>each</emphasis> database of the cluster,
run the following commands as superuser:
<programlisting>
SET search_path = pg_catalog;
<step>
<para>
- Do not forget to include the <literal>template0</>
- and <literal>template1</> databases, or the vulnerability will still
- exist in databases you create later. To fix <literal>template0</>,
+ Do not forget to include the <literal>template0</literal>
+ and <literal>template1</literal> databases, or the vulnerability will still
+ exist in databases you create later. To fix <literal>template0</literal>,
you'll need to temporarily make it accept connections.
- In <productname>PostgreSQL</> 9.5 and later, you can use
+ In <productname>PostgreSQL</productname> 9.5 and later, you can use
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS true;
</programlisting>
- and then after fixing <literal>template0</>, undo that with
+ and then after fixing <literal>template0</literal>, undo that with
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS false;
</programlisting>
<step>
<para>
- Finally, remove the <literal>allow_system_table_mods</> configuration
+ Finally, remove the <literal>allow_system_table_mods</literal> configuration
setting, and again restart the postmaster.
</para>
</step>
</para>
<para>
- <application>libpq</> ignores empty password specifications, and does
+ <application>libpq</application> ignores empty password specifications, and does
not transmit them to the server. So, if a user's password has been
set to the empty string, it's impossible to log in with that password
- via <application>psql</> or other <application>libpq</>-based
+ via <application>psql</application> or other <application>libpq</application>-based
clients. An administrator might therefore believe that setting the
password to empty is equivalent to disabling password login.
- However, with a modified or non-<application>libpq</>-based client,
+ However, with a modified or non-<application>libpq</application>-based client,
logging in could be possible, depending on which authentication
method is configured. In particular the most common
- method, <literal>md5</>, accepted empty passwords.
+ method, <literal>md5</literal>, accepted empty passwords.
Change the server to reject empty passwords in all cases.
(CVE-2017-7546)
</para>
<listitem>
<para>
- Make <function>lo_put()</> check for <literal>UPDATE</> privilege on
+ Make <function>lo_put()</function> check for <literal>UPDATE</literal> privilege on
the target large object (Tom Lane, Michael Paquier)
</para>
<para>
- <function>lo_put()</> should surely require the same permissions
- as <function>lowrite()</>, but the check was missing, allowing any
+ <function>lo_put()</function> should surely require the same permissions
+ as <function>lowrite()</function>, but the check was missing, allowing any
user to change the data in a large object.
(CVE-2017-7548)
</para>
<listitem>
<para>
Correct the documentation about the process for upgrading standby
- servers with <application>pg_upgrade</> (Bruce Momjian)
+ servers with <application>pg_upgrade</application> (Bruce Momjian)
</para>
<para>
The previous documentation instructed users to start/stop the primary
- server after running <application>pg_upgrade</> but before syncing
+ server after running <application>pg_upgrade</application> but before syncing
the standby servers. This sequence is unsafe.
</para>
</listitem>
<listitem>
<para>
Fix possible creation of an invalid WAL segment when a standby is
- promoted just after it processes an <literal>XLOG_SWITCH</> WAL
+ promoted just after it processes an <literal>XLOG_SWITCH</literal> WAL
record (Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix <application>walsender</> to exit promptly when client requests
+ Fix <application>walsender</application> to exit promptly when client requests
shutdown (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <systemitem>SIGHUP</> and <systemitem>SIGUSR1</> handling in
+ Fix <systemitem>SIGHUP</systemitem> and <systemitem>SIGUSR1</systemitem> handling in
walsender processes (Petr Jelinek, Andres Freund)
</para>
</listitem>
<listitem>
<para>
- Fix unnecessarily slow restarts of <application>walreceiver</>
+ Fix unnecessarily slow restarts of <application>walreceiver</application>
processes due to race condition in postmaster (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix cases where an <command>INSERT</> or <command>UPDATE</> assigns
+ Fix cases where an <command>INSERT</command> or <command>UPDATE</command> assigns
to more than one element of a column that is of domain-over-array
type (Tom Lane)
</para>
<listitem>
<para>
- Allow window functions to be used in sub-<literal>SELECT</>s that
+ Allow window functions to be used in sub-<literal>SELECT</literal>s that
are within the arguments of an aggregate function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Move autogenerated array types out of the way during
- <command>ALTER ... RENAME</> (Vik Fearing)
+ <command>ALTER ... RENAME</command> (Vik Fearing)
</para>
<para>
Previously, we would rename a conflicting autogenerated array type
- out of the way during <command>CREATE</>; this fix extends that
+ out of the way during <command>CREATE</command>; this fix extends that
behavior to renaming operations.
</para>
</listitem>
<listitem>
<para>
- Fix dangling pointer in <command>ALTER TABLE</> when there is a
+ Fix dangling pointer in <command>ALTER TABLE</command> when there is a
comment on a constraint belonging to the table (David Rowley)
</para>
<listitem>
<para>
- Ensure that <command>ALTER USER ... SET</> accepts all the syntax
- variants that <command>ALTER ROLE ... SET</> does (Peter Eisentraut)
+ Ensure that <command>ALTER USER ... SET</command> accepts all the syntax
+ variants that <command>ALTER ROLE ... SET</command> does (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Properly update dependency info when changing a datatype I/O
- function's argument or return type from <type>opaque</> to the
+ function's argument or return type from <type>opaque</type> to the
correct type (Heikki Linnakangas)
</para>
<para>
- <command>CREATE TYPE</> updates I/O functions declared in this
+ <command>CREATE TYPE</command> updates I/O functions declared in this
long-obsolete style, but it forgot to record a dependency on the
- type, allowing a subsequent <command>DROP TYPE</> to leave broken
+ type, allowing a subsequent <command>DROP TYPE</command> to leave broken
function definitions behind.
</para>
</listitem>
<listitem>
<para>
- Reduce memory usage when <command>ANALYZE</> processes
- a <type>tsvector</> column (Heikki Linnakangas)
+ Reduce memory usage when <command>ANALYZE</command> processes
+ a <type>tsvector</type> column (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Fix unnecessary precision loss and sloppy rounding when multiplying
- or dividing <type>money</> values by integers or floats (Tom Lane)
+ or dividing <type>money</type> values by integers or floats (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Tighten checks for whitespace in functions that parse identifiers,
- such as <function>regprocedurein()</> (Tom Lane)
+ such as <function>regprocedurein()</function> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Use relevant <literal>#define</> symbols from Perl while
- compiling <application>PL/Perl</> (Ashutosh Sharma, Tom Lane)
+ Use relevant <literal>#define</literal> symbols from Perl while
+ compiling <application>PL/Perl</application> (Ashutosh Sharma, Tom Lane)
</para>
<para>
This avoids portability problems, typically manifesting as
- a <quote>handshake</> mismatch during library load, when working with
+ a <quote>handshake</quote> mismatch during library load, when working with
recent Perl versions.
</para>
</listitem>
<listitem>
<para>
- In <application>libpq</>, reset GSS/SASL and SSPI authentication
+ In <application>libpq</application>, reset GSS/SASL and SSPI authentication
state properly after a failed connection attempt (Michael Paquier)
</para>
<listitem>
<para>
- In <application>psql</>, fix failure when <command>COPY FROM STDIN</>
+ In <application>psql</application>, fix failure when <command>COPY FROM STDIN</command>
is ended with a keyboard EOF signal and then another <command>COPY
- FROM STDIN</> is attempted (Thomas Munro)
+ FROM STDIN</command> is attempted (Thomas Munro)
</para>
<para>
<listitem>
<para>
- Fix <application>pg_dump</> and <application>pg_restore</> to
- emit <command>REFRESH MATERIALIZED VIEW</> commands last (Tom Lane)
+ Fix <application>pg_dump</application> and <application>pg_restore</application> to
+ emit <command>REFRESH MATERIALIZED VIEW</command> commands last (Tom Lane)
</para>
<para>
<listitem>
<para>
- Improve <application>pg_dump</>/<application>pg_restore</>'s
- reporting of error conditions originating in <application>zlib</>
+ Improve <application>pg_dump</application>/<application>pg_restore</application>'s
+ reporting of error conditions originating in <application>zlib</application>
(Vladimir Kunschikov, Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> with the <option>--clean</> option to
+ Fix <application>pg_dump</application> with the <option>--clean</option> option to
drop event triggers as expected (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_dump</> to not emit invalid SQL for an empty
+ Fix <application>pg_dump</application> to not emit invalid SQL for an empty
operator class (Daniel Gustafsson)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> output to stdout on Windows (Kuntal Ghosh)
+ Fix <application>pg_dump</application> output to stdout on Windows (Kuntal Ghosh)
</para>
<para>
<listitem>
<para>
- Fix <function>pg_get_ruledef()</> to print correct output for
- the <literal>ON SELECT</> rule of a view whose columns have been
+ Fix <function>pg_get_ruledef()</function> to print correct output for
+ the <literal>ON SELECT</literal> rule of a view whose columns have been
renamed (Tom Lane)
</para>
<para>
- In some corner cases, <application>pg_dump</> relies
- on <function>pg_get_ruledef()</> to dump views, so that this error
+ In some corner cases, <application>pg_dump</application> relies
+ on <function>pg_get_ruledef()</function> to dump views, so that this error
could result in dump/reload failures.
</para>
</listitem>
<listitem>
<para>
Fix dumping of outer joins with empty constraints, such as the result
- of a <literal>NATURAL LEFT JOIN</> with no common columns (Tom Lane)
+ of a <literal>NATURAL LEFT JOIN</literal> with no common columns (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix dumping of function expressions in the <literal>FROM</> clause in
+ Fix dumping of function expressions in the <literal>FROM</literal> clause in
cases where the expression does not deparse into something that looks
like a function call (Tom Lane)
</para>
<listitem>
<para>
- Fix <application>pg_basebackup</> output to stdout on Windows
+ Fix <application>pg_basebackup</application> output to stdout on Windows
(Haribabu Kommi)
</para>
<listitem>
<para>
- Fix <application>pg_rewind</> to correctly handle files exceeding 2GB
+ Fix <application>pg_rewind</application> to correctly handle files exceeding 2GB
(Kuntal Ghosh, Michael Paquier)
</para>
<para>
- Ordinarily such files won't appear in <productname>PostgreSQL</> data
+ Ordinarily such files won't appear in <productname>PostgreSQL</productname> data
directories, but they could be present in some cases.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to ensure that the ending WAL record
- does not have <xref linkend="guc-wal-level"> = <literal>minimum</>
+ Fix <application>pg_upgrade</application> to ensure that the ending WAL record
+ does not have <xref linkend="guc-wal-level"> = <literal>minimum</literal>
(Bruce Momjian)
</para>
<listitem>
<para>
- Fix <application>pg_xlogdump</>'s computation of WAL record length
+ Fix <application>pg_xlogdump</application>'s computation of WAL record length
(Andres Freund)
</para>
</listitem>
<listitem>
<para>
- In <filename>postgres_fdw</>, re-establish connections to remote
- servers after <command>ALTER SERVER</> or <command>ALTER USER
- MAPPING</> commands (Kyotaro Horiguchi)
+ In <filename>postgres_fdw</filename>, re-establish connections to remote
+ servers after <command>ALTER SERVER</command> or <command>ALTER USER
+ MAPPING</command> commands (Kyotaro Horiguchi)
</para>
<para>
<listitem>
<para>
- In <filename>postgres_fdw</>, allow cancellation of remote
+ In <filename>postgres_fdw</filename>, allow cancellation of remote
transaction control commands (Robert Haas, Rafia Sabih)
</para>
<listitem>
<para>
- Increase <literal>MAX_SYSCACHE_CALLBACKS</> to provide more room for
+ Increase <literal>MAX_SYSCACHE_CALLBACKS</literal> to provide more room for
extensions (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Always use <option>-fPIC</>, not <option>-fpic</>, when building
+ Always use <option>-fPIC</option>, not <option>-fpic</option>, when building
shared libraries with gcc (Tom Lane)
</para>
<listitem>
<para>
- In MSVC builds, handle the case where the <application>openssl</>
- library is not within a <filename>VC</> subdirectory (Andrew Dunstan)
+ In MSVC builds, handle the case where the <application>openssl</application>
+ library is not within a <filename>VC</filename> subdirectory (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- In MSVC builds, add proper include path for <application>libxml2</>
+ In MSVC builds, add proper include path for <application>libxml2</application>
header files (Andrew Dunstan)
</para>
<para>
This fixes a former need to move things around in standard Windows
- installations of <application>libxml2</>.
+ installations of <application>libxml2</application>.
</para>
</listitem>
<listitem>
<para>
In MSVC builds, recognize a Tcl library that is
- named <filename>tcl86.lib</> (Noah Misch)
+ named <filename>tcl86.lib</filename> (Noah Misch)
</para>
</listitem>
<listitem>
<para>
- In MSVC builds, honor <literal>PROVE_FLAGS</> settings
- on <filename>vcregress.pl</>'s command line (Andrew Dunstan)
+ In MSVC builds, honor <literal>PROVE_FLAGS</literal> settings
+ on <filename>vcregress.pl</filename>'s command line (Andrew Dunstan)
</para>
</listitem>
<para>
Also, if you are using third-party replication tools that depend
- on <quote>logical decoding</>, see the fourth changelog entry below.
+ on <quote>logical decoding</quote>, see the fourth changelog entry below.
</para>
<para>
<listitem>
<para>
Restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Michael Paquier, Feike Steenbergen)
</para>
<para>
The previous coding allowed the owner of a foreign server object,
- or anyone he has granted server <literal>USAGE</> permission to,
+ or anyone he has granted server <literal>USAGE</literal> permission to,
to see the options for all user mappings associated with that server.
This might well include passwords for other users.
Adjust the view definition to match the behavior of
- <structname>information_schema.user_mapping_options</>, namely that
+ <structname>information_schema.user_mapping_options</structname>, namely that
these options are visible to the user being mapped, or if the mapping
is for <literal>PUBLIC</literal> and the current user is the server
owner, or if the current user is a superuser.
<para>
Some selectivity estimation functions in the planner will apply
user-defined operators to values obtained
- from <structname>pg_statistic</>, such as most common values and
+ from <structname>pg_statistic</structname>, such as most common values and
histogram entries. This occurs before table permissions are checked,
so a nefarious user could exploit the behavior to obtain these values
for table columns he does not have permission to read. To fix,
<listitem>
<para>
- Restore <application>libpq</>'s recognition of
- the <envar>PGREQUIRESSL</> environment variable (Daniel Gustafsson)
+ Restore <application>libpq</application>'s recognition of
+ the <envar>PGREQUIRESSL</envar> environment variable (Daniel Gustafsson)
</para>
<para>
Processing of this environment variable was unintentionally dropped
- in <productname>PostgreSQL</> 9.3, but its documentation remained.
+ in <productname>PostgreSQL</productname> 9.3, but its documentation remained.
This creates a security hazard, since users might be relying on the
environment variable to force SSL-encrypted connections, but that
would no longer be guaranteed. Restore handling of the variable,
- but give it lower priority than <envar>PGSSLMODE</>, to avoid
+ but give it lower priority than <envar>PGSSLMODE</envar>, to avoid
breaking configurations that work correctly with post-9.3 code.
(CVE-2017-7485)
</para>
<listitem>
<para>
- Fix possible corruption of <quote>init forks</> of unlogged indexes
+ Fix possible corruption of <quote>init forks</quote> of unlogged indexes
(Robert Haas, Michael Paquier)
</para>
<listitem>
<para>
- Fix incorrect reconstruction of <structname>pg_subtrans</> entries
+ Fix incorrect reconstruction of <structname>pg_subtrans</structname> entries
when a standby server replays a prepared but uncommitted two-phase
transaction (Tom Lane)
</para>
<para>
In most cases this turned out to have no visible ill effects, but in
corner cases it could result in circular references
- in <structname>pg_subtrans</>, potentially causing infinite loops
+ in <structname>pg_subtrans</structname>, potentially causing infinite loops
in queries that examine rows modified by the two-phase transaction.
</para>
</listitem>
<listitem>
<para>
- Avoid possible crash in <application>walsender</> due to failure
+ Avoid possible crash in <application>walsender</application> due to failure
to initialize a string buffer (Stas Kelvich, Fujii Masao)
</para>
</listitem>
<listitem>
<para>
- Fix postmaster's handling of <function>fork()</> failure for a
+ Fix postmaster's handling of <function>fork()</function> failure for a
background worker process (Tom Lane)
</para>
Branch: REL9_5_STABLE [7be3678a8] 2017-04-24 07:53:05 +0100
-->
<para>
- Fix crash or wrong answers when a <literal>GROUPING SETS</> column's
+ Fix crash or wrong answers when a <literal>GROUPING SETS</literal> column's
data type is hashable but not sortable (Pavan Deolasee)
</para>
</listitem>
<listitem>
<para>
- Avoid applying <quote>physical targetlist</> optimization to custom
+ Avoid applying <quote>physical targetlist</quote> optimization to custom
scans (Dmitry Ivanov, Tom Lane)
</para>
<listitem>
<para>
- Use the correct sub-expression when applying a <literal>FOR ALL</>
+ Use the correct sub-expression when applying a <literal>FOR ALL</literal>
row-level-security policy (Stephen Frost)
</para>
<para>
- In some cases the <literal>WITH CHECK</> restriction would be applied
- when the <literal>USING</> restriction is more appropriate.
+ In some cases the <literal>WITH CHECK</literal> restriction would be applied
+ when the <literal>USING</literal> restriction is more appropriate.
</para>
</listitem>
Due to lack of a cache flush step between commands in an extension
script file, non-utility queries might not see the effects of an
immediately preceding catalog change, such as <command>ALTER TABLE
- ... RENAME</>.
+ ... RENAME</command>.
</para>
</listitem>
<listitem>
<para>
Skip tablespace privilege checks when <command>ALTER TABLE ... ALTER
- COLUMN TYPE</> rebuilds an existing index (Noah Misch)
+ COLUMN TYPE</command> rebuilds an existing index (Noah Misch)
</para>
<para>
The command failed if the calling user did not currently have
- <literal>CREATE</> privilege for the tablespace containing the index.
+ <literal>CREATE</literal> privilege for the tablespace containing the index.
That behavior seems unhelpful, so skip the check, allowing the
index to be rebuilt where it is.
</para>
<listitem>
<para>
- Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</> to not recurse
- to child tables when the constraint is marked <literal>NO INHERIT</>
+ Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</command> to not recurse
+ to child tables when the constraint is marked <literal>NO INHERIT</literal>
(Amit Langote)
</para>
<para>
- This fix prevents unwanted <quote>constraint does not exist</> failures
+ This fix prevents unwanted <quote>constraint does not exist</quote> failures
when no matching constraint is present in the child tables.
</para>
</listitem>
<listitem>
<para>
- Avoid dangling pointer in <command>COPY ... TO</> when row-level
+ Avoid dangling pointer in <command>COPY ... TO</command> when row-level
security is active for the source table (Tom Lane)
</para>
<listitem>
<para>
- Avoid accessing an already-closed relcache entry in <command>CLUSTER</>
- and <command>VACUUM FULL</> (Tom Lane)
+ Avoid accessing an already-closed relcache entry in <command>CLUSTER</command>
+ and <command>VACUUM FULL</command> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <command>VACUUM</> to account properly for pages that could not
+ Fix <command>VACUUM</command> to account properly for pages that could not
be scanned due to conflicting page pins (Andrew Gierth)
</para>
<para>
This tended to lead to underestimation of the number of tuples in
the table. In the worst case of a small heavily-contended
- table, <command>VACUUM</> could incorrectly report that the table
+ table, <command>VACUUM</command> could incorrectly report that the table
contained no tuples, leading to very bad planning choices.
</para>
</listitem>
<listitem>
<para>
- Fix integer-overflow problems in <type>interval</> comparison (Kyotaro
+ Fix integer-overflow problems in <type>interval</type> comparison (Kyotaro
Horiguchi, Tom Lane)
</para>
<para>
- The comparison operators for type <type>interval</> could yield wrong
+ The comparison operators for type <type>interval</type> could yield wrong
answers for intervals larger than about 296000 years. Indexes on
columns containing such large values should be reindexed, since they
may be corrupt.
<listitem>
<para>
- Fix <function>cursor_to_xml()</> to produce valid output
- with <replaceable>tableforest</> = false
+ Fix <function>cursor_to_xml()</function> to produce valid output
+ with <replaceable>tableforest</replaceable> = false
(Thomas Munro, Peter Eisentraut)
</para>
<para>
- Previously it failed to produce a wrapping <literal><table></>
+ Previously it failed to produce a wrapping <literal><table></literal>
element.
</para>
</listitem>
<listitem>
<para>
- Fix roundoff problems in <function>float8_timestamptz()</>
- and <function>make_interval()</> (Tom Lane)
+ Fix roundoff problems in <function>float8_timestamptz()</function>
+ and <function>make_interval()</function> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix <function>pg_get_object_address()</> to handle members of operator
+ Fix <function>pg_get_object_address()</function> to handle members of operator
families correctly (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
- Improve performance of <structname>pg_timezone_names</> view
+ Improve performance of <structname>pg_timezone_names</structname> view
(Tom Lane, David Rowley)
</para>
</listitem>
<listitem>
<para>
- Fix sloppy handling of corner-case errors from <function>lseek()</>
- and <function>close()</> (Tom Lane)
+ Fix sloppy handling of corner-case errors from <function>lseek()</function>
+ and <function>close()</function> (Tom Lane)
</para>
<para>
Neither of these system calls are likely to fail in typical situations,
- but if they did, <filename>fd.c</> could get quite confused.
+ but if they did, <filename>fd.c</filename> could get quite confused.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</> to support <command>COMMIT PREPARED</>
- and <command>ROLLBACK PREPARED</> (Masahiko Sawada)
+ Fix <application>ecpg</application> to support <command>COMMIT PREPARED</command>
+ and <command>ROLLBACK PREPARED</command> (Masahiko Sawada)
</para>
</listitem>
<listitem>
<para>
Fix a double-free error when processing dollar-quoted string literals
- in <application>ecpg</> (Michael Meskes)
+ in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_dump</>, fix incorrect schema and owner marking for
+ In <application>pg_dump</application>, fix incorrect schema and owner marking for
comments and security labels of some types of database objects
(Giuseppe Broccolo, Tom Lane)
</para>
<listitem>
<para>
- Avoid emitting an invalid list file in <literal>pg_restore -l</>
+ Avoid emitting an invalid list file in <literal>pg_restore -l</literal>
when SQL object names contain newlines (Tom Lane)
</para>
<para>
Replace newlines by spaces, which is sufficient to make the output
- valid for <literal>pg_restore -L</>'s purposes.
+ valid for <literal>pg_restore -L</literal>'s purposes.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_upgrade</> to transfer comments and security labels
- attached to <quote>large objects</> (blobs) (Stephen Frost)
+ Fix <application>pg_upgrade</application> to transfer comments and security labels
+ attached to <quote>large objects</quote> (blobs) (Stephen Frost)
</para>
<para>
<listitem>
<para>
Improve error handling
- in <filename>contrib/adminpack</>'s <function>pg_file_write()</>
+ in <filename>contrib/adminpack</filename>'s <function>pg_file_write()</function>
function (Noah Misch)
</para>
<para>
Notably, it failed to detect errors reported
- by <function>fclose()</>.
+ by <function>fclose()</function>.
</para>
</listitem>
<listitem>
<para>
- In <filename>contrib/dblink</>, avoid leaking the previous unnamed
+ In <filename>contrib/dblink</filename>, avoid leaking the previous unnamed
connection when establishing a new unnamed connection (Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Fix <filename>contrib/pg_trgm</>'s extraction of trigrams from regular
+ Fix <filename>contrib/pg_trgm</filename>'s extraction of trigrams from regular
expressions (Tom Lane)
</para>
Branch: REL9_3_STABLE [3aa16b117] 2017-05-06 22:17:35 -0400
-->
<para>
- In <filename>contrib/postgres_fdw</>,
+ In <filename>contrib/postgres_fdw</filename>,
transmit query cancellation requests to the remote server
(Michael Paquier, Etsuro Fujita)
</para>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2017b
+ Update time zone data files to <application>tzdata</application> release 2017b
for DST law changes in Chile, Haiti, and Mongolia, plus historical
corrections for Ecuador, Kazakhstan, Liberia, and Spain.
Switch to numeric abbreviations for numerous time zones in South
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
</listitem>
<para>
The Microsoft MSVC build scripts neglected to install
- the <filename>posixrules</> file in the timezone directory tree.
+ the <filename>posixrules</filename> file in the timezone directory tree.
This resulted in the timezone code falling back to its built-in
rule about what DST behavior to assume for a POSIX-style time zone
name. For historical reasons that still corresponds to the DST rules
the USA was using before 2007 (i.e., change on first Sunday in April
and last Sunday in October). With this fix, a POSIX-style zone name
will use the current and historical DST transition dates of
- the <literal>US/Eastern</> zone. If you don't want that, remove
- the <filename>posixrules</> file, or replace it with a copy of some
+ the <literal>US/Eastern</literal> zone. If you don't want that, remove
+ the <filename>posixrules</filename> file, or replace it with a copy of some
other zone file (see <xref linkend="datatype-timezones">). Note that
due to caching, you may need to restart the server to get such changes
to take effect.
<listitem>
<para>
Fix a race condition that could cause indexes built
- with <command>CREATE INDEX CONCURRENTLY</> to be corrupt
+ with <command>CREATE INDEX CONCURRENTLY</command> to be corrupt
(Pavan Deolasee, Tom Lane)
</para>
<para>
- If <command>CREATE INDEX CONCURRENTLY</> was used to build an index
+ If <command>CREATE INDEX CONCURRENTLY</command> was used to build an index
that depends on a column not previously indexed, then rows
updated by transactions that ran concurrently with
- the <command>CREATE INDEX</> command could have received incorrect
+ the <command>CREATE INDEX</command> command could have received incorrect
index entries. If you suspect this may have happened, the most
reliable solution is to rebuild affected indexes after installing
this update.
Backends failed to account for this snapshot when advertising their
oldest xmin, potentially allowing concurrent vacuuming operations to
remove data that was still needed. This led to transient failures
- along the lines of <quote>cache lookup failed for relation 1255</>.
+ along the lines of <quote>cache lookup failed for relation 1255</quote>.
</para>
</listitem>
</para>
<para>
- The WAL record emitted for a BRIN <quote>revmap</> page when moving an
+ The WAL record emitted for a BRIN <quote>revmap</quote> page when moving an
index tuple to a different page was incorrect. Replay would make the
related portion of the index useless, forcing it to be recomputed.
</para>
<listitem>
<para>
- Unconditionally WAL-log creation of the <quote>init fork</> for an
+ Unconditionally WAL-log creation of the <quote>init fork</quote> for an
unlogged table (Michael Paquier)
</para>
<para>
Previously, this was skipped when <xref linkend="guc-wal-level">
- = <literal>minimal</>, but actually it's necessary even in that case
+ = <literal>minimal</literal>, but actually it's necessary even in that case
to ensure that the unlogged table is properly reset to empty after a
crash.
</para>
<listitem>
<para>
- Make sure <command>ALTER TABLE</> preserves index tablespace
+ Make sure <command>ALTER TABLE</command> preserves index tablespace
assignments when rebuilding indexes (Tom Lane, Michael Paquier)
</para>
<para>
Fix incorrect updating of trigger function properties when changing a
foreign-key constraint's deferrability properties with <command>ALTER
- TABLE ... ALTER CONSTRAINT</> (Tom Lane)
+ TABLE ... ALTER CONSTRAINT</command> (Tom Lane)
</para>
<para>
</para>
<para>
- This avoids <quote>could not find trigger <replaceable>NNN</></quote>
- or <quote>relation <replaceable>NNN</> has no triggers</quote> errors.
+ This avoids <quote>could not find trigger <replaceable>NNN</replaceable></quote>
+ or <quote>relation <replaceable>NNN</replaceable> has no triggers</quote> errors.
</para>
</listitem>
<listitem>
<para>
- Fix <command>ALTER TABLE ... SET DATA TYPE ... USING</> when child
+ Fix <command>ALTER TABLE ... SET DATA TYPE ... USING</command> when child
table has different column ordering than the parent
(Álvaro Herrera)
</para>
<para>
- Failure to adjust the column numbering in the <literal>USING</>
+ Failure to adjust the column numbering in the <literal>USING</literal>
expression led to errors,
- typically <quote>attribute <replaceable>N</> has wrong type</quote>.
+ typically <quote>attribute <replaceable>N</replaceable> has wrong type</quote>.
</para>
</listitem>
<listitem>
<para>
Fix processing of OID column when a table with OIDs is associated to
- a parent with OIDs via <command>ALTER TABLE ... INHERIT</> (Amit
+ a parent with OIDs via <command>ALTER TABLE ... INHERIT</command> (Amit
Langote)
</para>
<listitem>
<para>
- Fix <command>CREATE OR REPLACE VIEW</> to update the view query
+ Fix <command>CREATE OR REPLACE VIEW</command> to update the view query
before attempting to apply the new view options (Dean Rasheed)
</para>
<listitem>
<para>
Report correct object identity during <command>ALTER TEXT SEARCH
- CONFIGURATION</> (Artur Zakirov)
+ CONFIGURATION</command> (Artur Zakirov)
</para>
<para>
<listitem>
<para>
Fix commit timestamp mechanism to not fail when queried about
- the special XIDs <literal>FrozenTransactionId</>
- and <literal>BootstrapTransactionId</> (Craig Ringer)
+ the special XIDs <literal>FrozenTransactionId</literal>
+ and <literal>BootstrapTransactionId</literal> (Craig Ringer)
</para>
</listitem>
<para>
The symptom was spurious <quote>ON CONFLICT is not supported on table
- ... used as a catalog table</> errors when the target
- of <command>INSERT ... ON CONFLICT</> is a view with cascade option.
+ ... used as a catalog table</quote> errors when the target
+ of <command>INSERT ... ON CONFLICT</command> is a view with cascade option.
</para>
</listitem>
<listitem>
<para>
- Fix incorrect <quote>target lists can have at most <replaceable>N</>
- entries</quote> complaint when using <literal>ON CONFLICT</> with
+ Fix incorrect <quote>target lists can have at most <replaceable>N</replaceable>
+ entries</quote> complaint when using <literal>ON CONFLICT</literal> with
wide tables (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Prevent multicolumn expansion of <replaceable>foo</><literal>.*</> in
- an <command>UPDATE</> source expression (Tom Lane)
+ Prevent multicolumn expansion of <replaceable>foo</replaceable><literal>.*</literal> in
+ an <command>UPDATE</command> source expression (Tom Lane)
</para>
<para>
This led to <quote>UPDATE target count mismatch --- internal
- error</>. Now the syntax is understood as a whole-row variable,
+ error</quote>. Now the syntax is understood as a whole-row variable,
as it would be in other contexts.
</para>
</listitem>
<listitem>
<para>
Ensure that column typmods are determined accurately for
- multi-row <literal>VALUES</> constructs (Tom Lane)
+ multi-row <literal>VALUES</literal> constructs (Tom Lane)
</para>
<para>
This fixes problems occurring when the first value in a column has a
- determinable typmod (e.g., length for a <type>varchar</> value) but
+ determinable typmod (e.g., length for a <type>varchar</type> value) but
later values don't share the same limit.
</para>
</listitem>
Normally, a Unicode surrogate leading character must be followed by a
Unicode surrogate trailing character, but the check for this was
missed if the leading character was the last character in a Unicode
- string literal (<literal>U&'...'</>) or Unicode identifier
- (<literal>U&"..."</>).
+ string literal (<literal>U&'...'</literal>) or Unicode identifier
+ (<literal>U&"..."</literal>).
</para>
</listitem>
<listitem>
<para>
Ensure that a purely negative text search query, such
- as <literal>!foo</>, matches empty <type>tsvector</>s (Tom Dunstan)
+ as <literal>!foo</literal>, matches empty <type>tsvector</type>s (Tom Dunstan)
</para>
<para>
<listitem>
<para>
- Prevent crash when <function>ts_rewrite()</> replaces a non-top-level
+ Prevent crash when <function>ts_rewrite()</function> replaces a non-top-level
subtree with an empty query (Artur Zakirov)
</para>
</listitem>
<listitem>
<para>
- Fix performance problems in <function>ts_rewrite()</> (Tom Lane)
+ Fix performance problems in <function>ts_rewrite()</function> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>ts_rewrite()</>'s handling of nested NOT operators
+ Fix <function>ts_rewrite()</function>'s handling of nested NOT operators
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve speed of user-defined aggregates that
- use <function>array_append()</> as transition function (Tom Lane)
+ use <function>array_append()</function> as transition function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <function>array_fill()</> to handle empty arrays properly (Tom Lane)
+ Fix <function>array_fill()</function> to handle empty arrays properly (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix possible crash in <function>array_position()</>
- or <function>array_positions()</> when processing arrays of records
+ Fix possible crash in <function>array_position()</function>
+ or <function>array_positions()</function> when processing arrays of records
(Junseok Yang)
</para>
</listitem>
<listitem>
<para>
- Fix one-byte buffer overrun in <function>quote_literal_cstr()</>
+ Fix one-byte buffer overrun in <function>quote_literal_cstr()</function>
(Heikki Linnakangas)
</para>
<listitem>
<para>
- Prevent multiple calls of <function>pg_start_backup()</>
- and <function>pg_stop_backup()</> from running concurrently (Michael
+ Prevent multiple calls of <function>pg_start_backup()</function>
+ and <function>pg_stop_backup()</function> from running concurrently (Michael
Paquier)
</para>
<listitem>
<para>
Disable transform that attempted to remove no-op <literal>AT TIME
- ZONE</> conversions (Tom Lane)
+ ZONE</literal> conversions (Tom Lane)
</para>
<para>
<listitem>
<para>
- Avoid discarding <type>interval</>-to-<type>interval</> casts
+ Avoid discarding <type>interval</type>-to-<type>interval</type> casts
that aren't really no-ops (Tom Lane)
</para>
<para>
In some cases, a cast that should result in zeroing out
- low-order <type>interval</> fields was mistakenly deemed to be a
+ low-order <type>interval</type> fields was mistakenly deemed to be a
no-op and discarded. An example is that casting from <type>INTERVAL
- MONTH</> to <type>INTERVAL YEAR</> failed to clear the months field.
+ MONTH</type> to <type>INTERVAL YEAR</type> failed to clear the months field.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_dump</> to dump user-defined casts and transforms
+ Fix <application>pg_dump</application> to dump user-defined casts and transforms
that use built-in functions (Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_restore</> with <option>--create --if-exists</>
+ Fix <application>pg_restore</application> with <option>--create --if-exists</option>
to behave more sanely if an archive contains
- unrecognized <command>DROP</> commands (Tom Lane)
+ unrecognized <command>DROP</command> commands (Tom Lane)
</para>
<para>
This doesn't fix any live bug, but it may improve the behavior in
- future if <application>pg_restore</> is used with an archive
- generated by a later <application>pg_dump</> version.
+ future if <application>pg_restore</application> is used with an archive
+ generated by a later <application>pg_dump</application> version.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pg_basebackup</>'s rate limiting in the presence of
+ Fix <application>pg_basebackup</application>'s rate limiting in the presence of
slow I/O (Antonin Houska)
</para>
<listitem>
<para>
- Fix <application>pg_basebackup</>'s handling of
- symlinked <filename>pg_stat_tmp</> and <filename>pg_replslot</>
+ Fix <application>pg_basebackup</application>'s handling of
+ symlinked <filename>pg_stat_tmp</filename> and <filename>pg_replslot</filename>
subdirectories (Magnus Hagander, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Fix possible <application>pg_basebackup</> failure on standby
+ Fix possible <application>pg_basebackup</application> failure on standby
server when including WAL files (Amit Kapila, Robert Haas)
</para>
</listitem>
<listitem>
<para>
Fix possible mishandling of expanded arrays in domain check
- constraints and <literal>CASE</> execution (Tom Lane)
+ constraints and <literal>CASE</literal> execution (Tom Lane)
</para>
<para>
<listitem>
<para>
- Fix PL/Tcl to support triggers on tables that have <literal>.tupno</>
+ Fix PL/Tcl to support triggers on tables that have <literal>.tupno</literal>
as a column name (Tom Lane)
</para>
<para>
This matches the (previously undocumented) behavior of
- PL/Tcl's <command>spi_exec</> and <command>spi_execp</> commands,
- namely that a magic <literal>.tupno</> column is inserted only if
+ PL/Tcl's <command>spi_exec</command> and <command>spi_execp</command> commands,
+ namely that a magic <literal>.tupno</literal> column is inserted only if
there isn't a real column named that.
</para>
</listitem>
<listitem>
<para>
- Allow DOS-style line endings in <filename>~/.pgpass</> files,
+ Allow DOS-style line endings in <filename>~/.pgpass</filename> files,
even on Unix (Vik Fearing)
</para>
<listitem>
<para>
- Fix one-byte buffer overrun if <application>ecpg</> is given a file
+ Fix one-byte buffer overrun if <application>ecpg</application> is given a file
name that ends with a dot (Takayuki Tsunakawa)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for <command>ALTER DEFAULT
- PRIVILEGES</> (Gilles Darold, Stephen Frost)
+ Fix <application>psql</application>'s tab completion for <command>ALTER DEFAULT
+ PRIVILEGES</command> (Gilles Darold, Stephen Frost)
</para>
</listitem>
<listitem>
<para>
- In <application>psql</>, treat an empty or all-blank setting of
- the <envar>PAGER</> environment variable as meaning <quote>no
- pager</> (Tom Lane)
+ In <application>psql</application>, treat an empty or all-blank setting of
+ the <envar>PAGER</envar> environment variable as meaning <quote>no
+ pager</quote> (Tom Lane)
</para>
<para>
<listitem>
<para>
- Improve <filename>contrib/dblink</>'s reporting of
- low-level <application>libpq</> errors, such as out-of-memory
+ Improve <filename>contrib/dblink</filename>'s reporting of
+ low-level <application>libpq</application> errors, such as out-of-memory
(Joe Conway)
</para>
</listitem>
<listitem>
<para>
- Teach <filename>contrib/dblink</> to ignore irrelevant server options
- when it uses a <filename>contrib/postgres_fdw</> foreign server as
+ Teach <filename>contrib/dblink</filename> to ignore irrelevant server options
+ when it uses a <filename>contrib/postgres_fdw</filename> foreign server as
the source of connection options (Corey Huinker)
</para>
<para>
Previously, if the foreign server object had options that were not
- also <application>libpq</> connection options, an error occurred.
+ also <application>libpq</application> connection options, an error occurred.
</para>
</listitem>
<listitem>
<para>
- Fix portability problems in <filename>contrib/pageinspect</>'s
+ Fix portability problems in <filename>contrib/pageinspect</filename>'s
functions for GIN indexes (Peter Eisentraut, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016j
+ Update time zone data files to <application>tzdata</application> release 2016j
for DST law changes in northern Cyprus (adding a new zone
Asia/Famagusta), Russia (adding a new zone Europe/Saratov), Tonga,
and Antarctica/Casey.
crash recovery, or to be written incorrectly on a standby server.
Bogus entries in a free space map could lead to attempts to access
pages that have been truncated away from the relation itself, typically
- producing errors like <quote>could not read block <replaceable>XXX</>:
+ producing errors like <quote>could not read block <replaceable>XXX</replaceable>:
read only 0 of 8192 bytes</quote>. Checksum failures in the
visibility map are also possible, if checksumming is enabled.
</para>
<para>
Procedures for determining whether there is a problem and repairing it
if so are discussed at
- <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></>.
+ <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></ulink>.
</para>
</listitem>
</para>
<para>
- The typical symptom was <quote>unexpected GIN leaf action</> errors
+ The typical symptom was <quote>unexpected GIN leaf action</quote> errors
during WAL replay.
</para>
</listitem>
Branch: REL9_3_STABLE [dfe7121df] 2016-09-09 15:54:29 -0300
-->
<para>
- Fix <command>SELECT FOR UPDATE/SHARE</> to correctly lock tuples that
+ Fix <command>SELECT FOR UPDATE/SHARE</command> to correctly lock tuples that
have been updated by a subsequently-aborted transaction
(Álvaro Herrera)
</para>
<para>
- In 9.5 and later, the <command>SELECT</> would sometimes fail to
+ In 9.5 and later, the <command>SELECT</command> would sometimes fail to
return such tuples at all. A failure has not been proven to occur in
earlier releases, but might be possible with concurrent updates.
</para>
-->
<para>
Fix deletion of speculatively inserted TOAST tuples when backing out
- of <command>INSERT ... ON CONFLICT</> (Oskari Saarenmaa)
+ of <command>INSERT ... ON CONFLICT</command> (Oskari Saarenmaa)
</para>
<para>
In the race condition where two transactions try to insert conflicting
tuples at about the same time, the loser would fail with
- an <quote>attempted to delete invisible tuple</> error if its
+ an <quote>attempted to delete invisible tuple</quote> error if its
insertion included any TOAST'ed fields.
</para>
</listitem>
<listitem>
<para>
Don't throw serialization errors for self-conflicting insertions
- in <command>INSERT ... ON CONFLICT</> (Thomas Munro, Peter Geoghegan)
+ in <command>INSERT ... ON CONFLICT</command> (Thomas Munro, Peter Geoghegan)
</para>
</listitem>
Branch: REL9_4_STABLE [566afa15c] 2016-08-24 22:20:01 -0400
-->
<para>
- Fix query-lifespan memory leak in a bulk <command>UPDATE</> on a table
- with a <literal>PRIMARY KEY</> or <literal>REPLICA IDENTITY</> index
+ Fix query-lifespan memory leak in a bulk <command>UPDATE</command> on a table
+ with a <literal>PRIMARY KEY</literal> or <literal>REPLICA IDENTITY</literal> index
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix <command>COPY</> with a column name list from a table that has
+ Fix <command>COPY</command> with a column name list from a table that has
row-level security enabled (Adam Brightwell)
</para>
</listitem>
<listitem>
<para>
- Fix <command>EXPLAIN</> to emit valid XML when
+ Fix <command>EXPLAIN</command> to emit valid XML when
<xref linkend="guc-track-io-timing"> is on (Markus Winand)
</para>
<para>
Previously the XML output-format option produced syntactically invalid
- tags such as <literal><I/O-Read-Time></>. That is now
- rendered as <literal><I-O-Read-Time></>.
+ tags such as <literal><I/O-Read-Time></literal>. That is now
+ rendered as <literal><I-O-Read-Time></literal>.
</para>
</listitem>
-->
<para>
Suppress printing of zeroes for unmeasured times
- in <command>EXPLAIN</> (Maksim Milyutin)
+ in <command>EXPLAIN</command> (Maksim Milyutin)
</para>
<para>
Certain option combinations resulted in printing zero values for times
that actually aren't ever measured in that combination. Our general
- policy in <command>EXPLAIN</> is not to print such fields at all, so
+ policy in <command>EXPLAIN</command> is not to print such fields at all, so
do that consistently in all cases.
</para>
</listitem>
<listitem>
<para>
- Fix statistics update for <command>TRUNCATE</> in a prepared
+ Fix statistics update for <command>TRUNCATE</command> in a prepared
transaction (Stas Kelvich)
</para>
</listitem>
Branch: REL9_1_STABLE [3ed7f54bc] 2016-09-09 11:46:03 +0100
-->
<para>
- Fix timeout length when <command>VACUUM</> is waiting for exclusive
+ Fix timeout length when <command>VACUUM</command> is waiting for exclusive
table lock so that it can truncate the table (Simon Riggs)
</para>
<para>
The timeout was meant to be 50 milliseconds, but it was actually only
- 50 microseconds, causing <command>VACUUM</> to give up on truncation
+ 50 microseconds, causing <command>VACUUM</command> to give up on truncation
much more easily than intended. Set it to the intended value.
</para>
</listitem>
<listitem>
<para>
- Fix bugs in merging inherited <literal>CHECK</> constraints while
+ Fix bugs in merging inherited <literal>CHECK</literal> constraints while
creating or altering a table (Tom Lane, Amit Langote)
</para>
<para>
- Allow identical <literal>CHECK</> constraints to be added to a parent
+ Allow identical <literal>CHECK</literal> constraints to be added to a parent
and child table in either order. Prevent merging of a valid
- constraint from the parent table with a <literal>NOT VALID</>
+ constraint from the parent table with a <literal>NOT VALID</literal>
constraint on the child. Likewise, prevent merging of a <literal>NO
- INHERIT</> child constraint with an inherited constraint.
+ INHERIT</literal> child constraint with an inherited constraint.
</para>
</listitem>
<listitem>
<para>
Show a sensible value
- in <structname>pg_settings</>.<structfield>unit</>
- for <varname>min_wal_size</> and <varname>max_wal_size</> (Tom Lane)
+ in <structname>pg_settings</structname>.<structfield>unit</structfield>
+ for <varname>min_wal_size</varname> and <varname>max_wal_size</varname> (Tom Lane)
</para>
</listitem>
-->
<para>
Remove artificial restrictions on the values accepted
- by <function>numeric_in()</> and <function>numeric_recv()</>
+ by <function>numeric_in()</function> and <function>numeric_recv()</function>
(Tom Lane)
</para>
<para>
We allow numeric values up to the limit of the storage format (more
- than <literal>1e100000</>), so it seems fairly pointless
- that <function>numeric_in()</> rejected scientific-notation exponents
- above 1000. Likewise, it was silly for <function>numeric_recv()</> to
+ than <literal>1e100000</literal>), so it seems fairly pointless
+ that <function>numeric_in()</function> rejected scientific-notation exponents
+ above 1000. Likewise, it was silly for <function>numeric_recv()</function> to
reject more than 1000 digits in an input value.
</para>
</listitem>
<para>
In the worst case, this could result in a corrupt btree index, which
- would need to be rebuilt using <command>REINDEX</>. However, the
+ would need to be rebuilt using <command>REINDEX</command>. However, the
situation is believed to be rare.
</para>
</listitem>
Branch: REL9_1_STABLE [e3439a455] 2016-08-31 08:52:13 -0400
-->
<para>
- Disallow starting a standalone backend with <literal>standby_mode</>
+ Disallow starting a standalone backend with <literal>standby_mode</literal>
turned on (Michael Paquier)
</para>
<para>
This failure to reset all of the fields of the slot could
- prevent <command>VACUUM</> from removing dead tuples.
+ prevent <command>VACUUM</command> from removing dead tuples.
</para>
</listitem>
</para>
<para>
- This avoids possible failures during <function>munmap()</> on systems
+ This avoids possible failures during <function>munmap()</function> on systems
with atypical default huge page sizes. Except in crash-recovery
cases, there were no ill effects other than a log message.
</para>
<para>
Previously, the same value would be chosen every time, because it was
- derived from <function>random()</> but <function>srandom()</> had not
+ derived from <function>random()</function> but <function>srandom()</function> had not
yet been called. While relatively harmless, this was not the intended
behavior.
</para>
</para>
<para>
- Windows sometimes returns <literal>ERROR_ACCESS_DENIED</> rather
- than <literal>ERROR_ALREADY_EXISTS</> when there is an existing
+ Windows sometimes returns <literal>ERROR_ACCESS_DENIED</literal> rather
+ than <literal>ERROR_ALREADY_EXISTS</literal> when there is an existing
segment. This led to postmaster startup failure due to believing that
the former was an unrecoverable error.
</para>
Branch: REL9_5_STABLE [a8fc19505] 2016-08-18 14:48:51 -0400
-->
<para>
- Fix <application>PL/pgSQL</> to not misbehave with parameters and
- local variables of type <type>int2vector</> or <type>oidvector</>
+ Fix <application>PL/pgSQL</application> to not misbehave with parameters and
+ local variables of type <type>int2vector</type> or <type>oidvector</type>
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
Don't try to share SSL contexts across multiple connections
- in <application>libpq</> (Heikki Linnakangas)
+ in <application>libpq</application> (Heikki Linnakangas)
</para>
<para>
<listitem>
<para>
- Avoid corner-case memory leak in <application>libpq</> (Tom Lane)
+ Avoid corner-case memory leak in <application>libpq</application> (Tom Lane)
</para>
<para>
The reported problem involved leaking an error report
- during <function>PQreset()</>, but there might be related cases.
+ during <function>PQreset()</function>, but there might be related cases.
</para>
</listitem>
Branch: REL9_1_STABLE [ed29d2de2] 2016-09-18 14:07:30 +0300
-->
<para>
- Make <application>ecpg</>'s <option>--help</> and <option>--version</>
+ Make <application>ecpg</application>'s <option>--help</option> and <option>--version</option>
options work consistently with our other executables (Haribabu Kommi)
</para>
</listitem>
Branch: REL9_4_STABLE [f16d4a241] 2016-09-21 13:16:24 +0300
-->
<para>
- Fix <application>pgbench</>'s calculation of average latency
+ Fix <application>pgbench</application>'s calculation of average latency
(Fabien Coelho)
</para>
<para>
- The calculation was incorrect when there were <literal>\sleep</>
+ The calculation was incorrect when there were <literal>\sleep</literal>
commands in the script, or when the test duration was specified in
number of transactions rather than total time.
</para>
<listitem>
<para>
- In <application>pg_upgrade</>, check library loadability in name order
+ In <application>pg_upgrade</application>, check library loadability in name order
(Tom Lane)
</para>
Branch: REL9_2_STABLE [53b29d986] 2016-09-23 13:49:27 -0400
-->
<para>
- In <application>pg_dump</>, never dump range constructor functions
+ In <application>pg_dump</application>, never dump range constructor functions
(Tom Lane)
</para>
<para>
- This oversight led to <application>pg_upgrade</> failures with
+ This oversight led to <application>pg_upgrade</application> failures with
extensions containing range types, due to duplicate creation of the
constructor functions.
</para>
Branch: REL9_5_STABLE [142a110b3] 2016-09-08 10:48:03 -0400
-->
<para>
- In <application>pg_dump</> with <option>-C</>,
- suppress <literal>TABLESPACE</> clause of <command>CREATE DATABASE</>
- if <option>--no-tablespaces</> is specified (Tom Lane)
+ In <application>pg_dump</application> with <option>-C</option>,
+ suppress <literal>TABLESPACE</literal> clause of <command>CREATE DATABASE</command>
+ if <option>--no-tablespaces</option> is specified (Tom Lane)
</para>
</listitem>
Branch: REL9_5_STABLE [3aa233f82] 2016-08-29 18:12:04 -0300
-->
<para>
- Make <application>pg_receivexlog</> work correctly
- with <option>--synchronous</> without slots (Gabriele Bartolini)
+ Make <application>pg_receivexlog</application> work correctly
+ with <option>--synchronous</option> without slots (Gabriele Bartolini)
</para>
</listitem>
<listitem>
<para>
- Disallow specifying both <option>--source-server</>
- and <option>--source-target</> options to <application>pg_rewind</>
+ Disallow specifying both <option>--source-server</option>
+ and <option>--source-target</option> options to <application>pg_rewind</application>
(Michael Banck)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_rewind</> turn off <varname>synchronous_commit</>
+ Make <application>pg_rewind</application> turn off <varname>synchronous_commit</varname>
in its session on the source server (Michael Banck, Michael Paquier)
</para>
<para>
- This allows <application>pg_rewind</> to work even when the source
+ This allows <application>pg_rewind</application> to work even when the source
server is using synchronous replication that is not working for some
reason.
</para>
<listitem>
<para>
- In <application>pg_xlogdump</>, retry opening new WAL segments when
- using <option>--follow</> option (Magnus Hagander)
+ In <application>pg_xlogdump</application>, retry opening new WAL segments when
+ using <option>--follow</option> option (Magnus Hagander)
</para>
<para>
Branch: REL9_3_STABLE [5833306dd] 2016-08-29 15:51:30 +0900
-->
<para>
- Fix <application>pg_xlogdump</> to cope with a WAL file that begins
+ Fix <application>pg_xlogdump</application> to cope with a WAL file that begins
with a continuation record spanning more than one page (Pavan
Deolasee)
</para>
Branch: REL9_4_STABLE [1336bd986] 2016-09-15 09:22:52 -0400
-->
<para>
- Fix <filename>contrib/pg_buffercache</> to work
- when <varname>shared_buffers</> exceeds 256GB (KaiGai Kohei)
+ Fix <filename>contrib/pg_buffercache</filename> to work
+ when <varname>shared_buffers</varname> exceeds 256GB (KaiGai Kohei)
</para>
</listitem>
Branch: REL9_1_STABLE [9942376a5] 2016-08-17 15:51:11 -0400
-->
<para>
- Fix <filename>contrib/intarray/bench/bench.pl</> to print the results
- of the <command>EXPLAIN</> it does when given the <option>-e</> option
+ Fix <filename>contrib/intarray/bench/bench.pl</filename> to print the results
+ of the <command>EXPLAIN</command> it does when given the <option>-e</option> option
(Daniel Gustafsson)
</para>
</listitem>
</para>
<para>
- When <productname>PostgreSQL</> has been configured
- with <option>--enable-tap-tests</>, <quote>make install</> will now
+ When <productname>PostgreSQL</productname> has been configured
+ with <option>--enable-tap-tests</option>, <quote>make install</quote> will now
install the Perl support files for TAP testing where PGXS can find
them. This allows non-core extensions to
- use <literal>$(prove_check)</> without extra tests.
+ use <literal>$(prove_check)</literal> without extra tests.
</para>
</listitem>
Branch: REL9_4_STABLE [ca93b816f] 2016-09-19 14:27:13 -0400
-->
<para>
- In MSVC builds, include <application>pg_recvlogical</> in a
+ In MSVC builds, include <application>pg_recvlogical</application> in a
client-only installation (MauMau)
</para>
</listitem>
If a dynamic time zone abbreviation does not match any entry in the
referenced time zone, treat it as equivalent to the time zone name.
This avoids unexpected failures when IANA removes abbreviations from
- their time zone database, as they did in <application>tzdata</>
+ their time zone database, as they did in <application>tzdata</application>
release 2016f and seem likely to do again in the future. The
consequences were not limited to not recognizing the individual
abbreviation; any mismatch caused
- the <structname>pg_timezone_abbrevs</> view to fail altogether.
+ the <structname>pg_timezone_abbrevs</structname> view to fail altogether.
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016h
+ Update time zone data files to <application>tzdata</application> release 2016h
for DST law changes in Palestine and Turkey, plus historical
corrections for Turkey and some regions of Russia.
Switch to numeric abbreviations for some time zones in Antarctica,
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
<para>
- In this update, <literal>AMT</> is no longer shown as being in use to
- mean Armenia Time. Therefore, we have changed the <literal>Default</>
+ In this update, <literal>AMT</literal> is no longer shown as being in use to
+ mean Armenia Time. Therefore, we have changed the <literal>Default</literal>
abbreviation set to interpret it as Amazon Time, thus UTC-4 not UTC+4.
</para>
</listitem>
-->
<para>
Fix possible mis-evaluation of
- nested <literal>CASE</>-<literal>WHEN</> expressions (Heikki
+ nested <literal>CASE</literal>-<literal>WHEN</literal> expressions (Heikki
Linnakangas, Michael Paquier, Tom Lane)
</para>
<para>
- A <literal>CASE</> expression appearing within the test value
- subexpression of another <literal>CASE</> could become confused about
+ A <literal>CASE</literal> expression appearing within the test value
+ subexpression of another <literal>CASE</literal> could become confused about
whether its own test value was null or not. Also, inlining of a SQL
function implementing the equality operator used by
- a <literal>CASE</> expression could result in passing the wrong test
- value to functions called within a <literal>CASE</> expression in the
+ a <literal>CASE</literal> expression could result in passing the wrong test
+ value to functions called within a <literal>CASE</literal> expression in the
SQL function's body. If the test values were of different data
types, a crash might result; moreover such situations could be abused
to allow disclosure of portions of server memory. (CVE-2016-5423)
</para>
<para>
- Numerous places in <application>vacuumdb</> and other client programs
+ Numerous places in <application>vacuumdb</application> and other client programs
could become confused by database and role names containing double
quotes or backslashes. Tighten up quoting rules to make that safe.
Also, ensure that when a conninfo string is used as a database name
<para>
Fix handling of paired double quotes
- in <application>psql</>'s <command>\connect</>
- and <command>\password</> commands to match the documentation.
+ in <application>psql</application>'s <command>\connect</command>
+ and <command>\password</command> commands to match the documentation.
</para>
<para>
- Introduce a new <option>-reuse-previous</> option
- in <application>psql</>'s <command>\connect</> command to allow
+ Introduce a new <option>-reuse-previous</option> option
+ in <application>psql</application>'s <command>\connect</command> command to allow
explicit control of whether to re-use connection parameters from a
previous connection. (Without this, the choice is based on whether
the database name looks like a conninfo string, as before.) This
allows secure handling of database names containing special
- characters in <application>pg_dumpall</> scripts.
+ characters in <application>pg_dumpall</application> scripts.
</para>
<para>
- <application>pg_dumpall</> now refuses to deal with database and role
+ <application>pg_dumpall</application> now refuses to deal with database and role
names containing carriage returns or newlines, as it seems impractical
to quote those characters safely on Windows. In future we may reject
such names on the server side, but that step has not been taken yet.
These are considered security fixes because crafted object names
containing special characters could have been used to execute
commands with superuser privileges the next time a superuser
- executes <application>pg_dumpall</> or other routine maintenance
+ executes <application>pg_dumpall</application> or other routine maintenance
operations. (CVE-2016-5424)
</para>
</listitem>
Branch: REL9_1_STABLE [c0e5096fc] 2016-07-28 16:09:15 -0400
-->
<para>
- Fix corner-case misbehaviors for <literal>IS NULL</>/<literal>IS NOT
- NULL</> applied to nested composite values (Andrew Gierth, Tom Lane)
+ Fix corner-case misbehaviors for <literal>IS NULL</literal>/<literal>IS NOT
+ NULL</literal> applied to nested composite values (Andrew Gierth, Tom Lane)
</para>
<para>
- The SQL standard specifies that <literal>IS NULL</> should return
+ The SQL standard specifies that <literal>IS NULL</literal> should return
TRUE for a row of all null values (thus <literal>ROW(NULL,NULL) IS
- NULL</> yields TRUE), but this is not meant to apply recursively
- (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</> yields FALSE).
+ NULL</literal> yields TRUE), but this is not meant to apply recursively
+ (thus <literal>ROW(NULL, ROW(NULL,NULL)) IS NULL</literal> yields FALSE).
The core executor got this right, but certain planner optimizations
treated the test as recursive (thus producing TRUE in both cases),
- and <filename>contrib/postgres_fdw</> could produce remote queries
+ and <filename>contrib/postgres_fdw</filename> could produce remote queries
that misbehaved similarly.
</para>
</listitem>
Branch: REL9_5_STABLE [e504d915b] 2016-05-23 19:23:36 -0400
-->
<para>
- Fix <quote>unrecognized node type</> error for <command>INSERT ... ON
- CONFLICT</> within a recursive CTE (a <literal>WITH</> item) (Peter
+ Fix <quote>unrecognized node type</quote> error for <command>INSERT ... ON
+ CONFLICT</command> within a recursive CTE (a <literal>WITH</literal> item) (Peter
Geoghegan)
</para>
</listitem>
Branch: REL9_5_STABLE [58d802410] 2016-05-11 16:20:03 -0400
-->
<para>
- Fix <command>INSERT ... ON CONFLICT</> to successfully match index
+ Fix <command>INSERT ... ON CONFLICT</command> to successfully match index
expressions or index predicates that are simplified during the
planner's expression preprocessing phase (Tom Lane)
</para>
-->
<para>
Correctly handle violations of exclusion constraints that apply to
- the target table of an <literal>INSERT ... ON CONFLICT</> command,
+ the target table of an <literal>INSERT ... ON CONFLICT</literal> command,
but are not one of the selected arbiter indexes (Tom Lane)
</para>
Branch: REL9_5_STABLE [428484ce1] 2016-05-11 17:06:53 -0400
-->
<para>
- Fix <command>INSERT ... ON CONFLICT</> to not fail if the target
+ Fix <command>INSERT ... ON CONFLICT</command> to not fail if the target
table has a unique index on OID (Tom Lane)
</para>
</listitem>
Branch: REL9_1_STABLE [7b97dafa2] 2016-06-16 17:16:58 -0400
-->
<para>
- Make the <type>inet</> and <type>cidr</> data types properly reject
+ Make the <type>inet</type> and <type>cidr</type> data types properly reject
IPv6 addresses with too many colon-separated fields (Tom Lane)
</para>
</listitem>
Branch: REL9_1_STABLE [608cc0c41] 2016-07-16 14:42:37 -0400
-->
<para>
- Prevent crash in <function>close_ps()</>
- (the <type>point</> <literal>##</> <type>lseg</> operator)
+ Prevent crash in <function>close_ps()</function>
+ (the <type>point</type> <literal>##</literal> <type>lseg</type> operator)
for NaN input coordinates (Tom Lane)
</para>
Branch: REL9_3_STABLE [b0f20c2ea] 2016-07-01 11:40:22 -0400
-->
<para>
- Avoid possible crash in <function>pg_get_expr()</> when inconsistent
+ Avoid possible crash in <function>pg_get_expr()</function> when inconsistent
values are passed to it (Michael Paquier, Thomas Munro)
</para>
</listitem>
Branch: REL9_1_STABLE [d555d2642] 2016-08-08 11:13:51 -0400
-->
<para>
- Fix several one-byte buffer over-reads in <function>to_number()</>
+ Fix several one-byte buffer over-reads in <function>to_number()</function>
(Peter Eisentraut)
</para>
<para>
- In several cases the <function>to_number()</> function would read one
+ In several cases the <function>to_number()</function> function would read one
more character than it should from the input string. There is a
small chance of a crash, if the input happens to be adjacent to the
end of memory.
-->
<para>
Do not run the planner on the query contained in <literal>CREATE
- MATERIALIZED VIEW</> or <literal>CREATE TABLE AS</>
- when <literal>WITH NO DATA</> is specified (Michael Paquier,
+ MATERIALIZED VIEW</literal> or <literal>CREATE TABLE AS</literal>
+ when <literal>WITH NO DATA</literal> is specified (Michael Paquier,
Tom Lane)
</para>
-->
<para>
Avoid unsafe intermediate state during expensive paths
- through <function>heap_update()</> (Masahiko Sawada, Andres Freund)
+ through <function>heap_update()</function> (Masahiko Sawada, Andres Freund)
</para>
<para>
Branch: REL9_3_STABLE [6c243f90a] 2016-07-15 14:17:20 -0400
-->
<para>
- Avoid unnecessary <quote>could not serialize access</> errors when
- acquiring <literal>FOR KEY SHARE</> row locks in serializable mode
+ Avoid unnecessary <quote>could not serialize access</quote> errors when
+ acquiring <literal>FOR KEY SHARE</literal> row locks in serializable mode
(Álvaro Herrera)
</para>
</listitem>
Branch: REL9_5_STABLE [8355897ff] 2016-06-03 18:07:14 -0400
-->
<para>
- Make sure <quote>expanded</> datums returned by a plan node are
+ Make sure <quote>expanded</quote> datums returned by a plan node are
read-only (Tom Lane)
</para>
<para>
This avoids failures in some cases where the result of a lower plan
node is referenced in multiple places in upper nodes. So far as
- core <productname>PostgreSQL</> is concerned, only array values
+ core <productname>PostgreSQL</productname> is concerned, only array values
returned by PL/pgSQL functions are at risk; but extensions might
use expanded datums for other things.
</para>
Branch: REL9_2_STABLE [dd41661d2] 2016-06-22 11:55:35 -0400
-->
<para>
- Avoid crash in <literal>postgres -C</> when the specified variable
+ Avoid crash in <literal>postgres -C</literal> when the specified variable
has a null string value (Michael Paquier)
</para>
</listitem>
Branch: REL9_1_STABLE [5551dac59] 2016-05-24 15:47:51 -0400
-->
<para>
- Avoid consuming a transaction ID during <command>VACUUM</>
+ Avoid consuming a transaction ID during <command>VACUUM</command>
(Alexander Korotkov)
</para>
<para>
- Some cases in <command>VACUUM</> unnecessarily caused an XID to be
+ Some cases in <command>VACUUM</command> unnecessarily caused an XID to be
assigned to the current transaction. Normally this is negligible,
but if one is up against the XID wraparound limit, consuming more
XIDs during anti-wraparound vacuums is a very bad thing.
<para>
The usual symptom of this bug is errors
- like <quote>MultiXactId <replaceable>NNN</> has not been created
+ like <quote>MultiXactId <replaceable>NNN</replaceable> has not been created
yet -- apparent wraparound</quote>.
</para>
</listitem>
Branch: REL9_1_STABLE [32ceb8dfb] 2016-06-06 17:44:18 -0400
-->
<para>
- When a manual <command>ANALYZE</> specifies a column list, don't
- reset the table's <literal>changes_since_analyze</> counter
+ When a manual <command>ANALYZE</command> specifies a column list, don't
+ reset the table's <literal>changes_since_analyze</literal> counter
(Tom Lane)
</para>
Branch: REL9_1_STABLE [a449ad095] 2016-08-07 18:52:02 -0400
-->
<para>
- Fix <command>ANALYZE</>'s overestimation of <literal>n_distinct</>
+ Fix <command>ANALYZE</command>'s overestimation of <literal>n_distinct</literal>
for a unique or nearly-unique column with many null entries (Tom
Lane)
</para>
</para>
<para>
- This mistake prevented <command>VACUUM</> from completing in some
+ This mistake prevented <command>VACUUM</command> from completing in some
cases involving corrupt b-tree indexes.
</para>
</listitem>
Branch: REL9_5_STABLE [07f69137b] 2016-06-24 16:57:36 -0400
-->
<para>
- Fix building of large (bigger than <varname>shared_buffers</>)
+ Fix building of large (bigger than <varname>shared_buffers</varname>)
hash indexes (Tom Lane)
</para>
Branch: REL9_5_STABLE [a7aa61ffe] 2016-06-05 11:53:06 -0400
-->
<para>
- Fix possible crash during a nearest-neighbor (<literal>ORDER BY</>
- distance) indexscan on a <filename>contrib/btree_gist</> index on
- an <type>interval</> column (Peter Geoghegan)
+ Fix possible crash during a nearest-neighbor (<literal>ORDER BY</literal>
+ distance) indexscan on a <filename>contrib/btree_gist</filename> index on
+ an <type>interval</type> column (Peter Geoghegan)
</para>
</listitem>
Branch: REL9_5_STABLE [2973d7d02] 2016-05-30 14:47:22 -0400
-->
<para>
- Fix <quote>PANIC: failed to add BRIN tuple</> error when attempting
+ Fix <quote>PANIC: failed to add BRIN tuple</quote> error when attempting
to update a BRIN index entry (Álvaro Herrera)
</para>
</listitem>
Branch: REL9_5_STABLE [a0943dbbe] 2016-07-12 18:06:50 -0400
-->
<para>
- Fix PL/pgSQL's handling of the <literal>INTO</> clause
- within <command>IMPORT FOREIGN SCHEMA</> commands (Tom Lane)
+ Fix PL/pgSQL's handling of the <literal>INTO</literal> clause
+ within <command>IMPORT FOREIGN SCHEMA</command> commands (Tom Lane)
</para>
</listitem>
Branch: REL9_1_STABLE [84d679204] 2016-07-17 09:41:08 -0400
-->
<para>
- Fix <filename>contrib/btree_gin</> to handle the smallest
- possible <type>bigint</> value correctly (Peter Eisentraut)
+ Fix <filename>contrib/btree_gin</filename> to handle the smallest
+ possible <type>bigint</type> value correctly (Peter Eisentraut)
</para>
</listitem>
<para>
It's planned to switch to two-part instead of three-part server
version numbers for releases after 9.6. Make sure
- that <function>PQserverVersion()</> returns the correct value for
+ that <function>PQserverVersion()</function> returns the correct value for
such cases.
</para>
</listitem>
Branch: REL9_1_STABLE [c15f502b6] 2016-08-01 15:08:36 +0200
-->
<para>
- Fix <application>ecpg</>'s code for <literal>unsigned long long</>
+ Fix <application>ecpg</application>'s code for <literal>unsigned long long</literal>
array elements (Michael Meskes)
</para>
</listitem>
Branch: REL9_2_STABLE [a5a7caaa1] 2016-08-02 12:49:15 -0400
-->
<para>
- In <application>pg_dump</> with both <option>-c</> and <option>-C</>
- options, avoid emitting an unwanted <literal>CREATE SCHEMA public</>
+ In <application>pg_dump</application> with both <option>-c</option> and <option>-C</option>
+ options, avoid emitting an unwanted <literal>CREATE SCHEMA public</literal>
command (David Johnston, Tom Lane)
</para>
</listitem>
Branch: REL9_3_STABLE [4a21c6fd7] 2016-06-03 11:29:20 -0400
-->
<para>
- Improve handling of <systemitem>SIGTERM</>/control-C in
- parallel <application>pg_dump</> and <application>pg_restore</> (Tom
+ Improve handling of <systemitem>SIGTERM</systemitem>/control-C in
+ parallel <application>pg_dump</application> and <application>pg_restore</application> (Tom
Lane)
</para>
<para>
Make sure that the worker processes will exit promptly, and also arrange
to send query-cancel requests to the connected backends, in case they
- are doing something long-running such as a <command>CREATE INDEX</>.
+ are doing something long-running such as a <command>CREATE INDEX</command>.
</para>
</listitem>
Branch: REL9_3_STABLE [1c8205159] 2016-05-25 12:39:57 -0400
-->
<para>
- Fix error reporting in parallel <application>pg_dump</>
- and <application>pg_restore</> (Tom Lane)
+ Fix error reporting in parallel <application>pg_dump</application>
+ and <application>pg_restore</application> (Tom Lane)
</para>
<para>
- Previously, errors reported by <application>pg_dump</>
- or <application>pg_restore</> worker processes might never make it to
+ Previously, errors reported by <application>pg_dump</application>
+ or <application>pg_restore</application> worker processes might never make it to
the user's console, because the messages went through the master
process, and there were various deadlock scenarios that would prevent
the master process from passing on the messages. Instead, just print
- everything to <literal>stderr</>. In some cases this will result in
+ everything to <literal>stderr</literal>. In some cases this will result in
duplicate messages (for instance, if all the workers report a server
shutdown), but that seems better than no message.
</para>
Branch: REL9_3_STABLE [b9784e1f7] 2016-05-26 10:50:46 -0400
-->
<para>
- Ensure that parallel <application>pg_dump</>
- or <application>pg_restore</> on Windows will shut down properly
+ Ensure that parallel <application>pg_dump</application>
+ or <application>pg_restore</application> on Windows will shut down properly
after an error (Kyotaro Horiguchi)
</para>
Branch: REL9_5_STABLE [47e596976] 2016-05-26 22:18:04 +0200
-->
<para>
- Make parallel <application>pg_dump</> fail cleanly when run against a
+ Make parallel <application>pg_dump</application> fail cleanly when run against a
standby server (Magnus Hagander)
</para>
<para>
This usage is not supported
- unless <option>--no-synchronized-snapshots</> is specified, but the
+ unless <option>--no-synchronized-snapshots</option> is specified, but the
error was not handled very well.
</para>
</listitem>
Branch: REL9_3_STABLE [99565a1ef] 2016-05-26 11:51:20 -0400
-->
<para>
- Make <application>pg_dump</> behave better when built without zlib
+ Make <application>pg_dump</application> behave better when built without zlib
support (Kyotaro Horiguchi)
</para>
Branch: REL9_1_STABLE [366f4a962] 2016-08-01 17:38:05 +0900
-->
<para>
- Make <application>pg_basebackup</> accept <literal>-Z 0</> as
+ Make <application>pg_basebackup</application> accept <literal>-Z 0</literal> as
specifying no compression (Fujii Masao)
</para>
</listitem>
Branch: REL9_3_STABLE [1f1e70a87] 2016-05-27 10:40:20 -0400
-->
<para>
- Be more predictable about reporting <quote>statement timeout</>
- versus <quote>lock timeout</> (Tom Lane)
+ Be more predictable about reporting <quote>statement timeout</quote>
+ versus <quote>lock timeout</quote> (Tom Lane)
</para>
<para>
On heavily loaded machines, the regression tests sometimes failed due
- to reporting <quote>lock timeout</> even though the statement timeout
+ to reporting <quote>lock timeout</quote> even though the statement timeout
should have occurred first.
</para>
</listitem>
-->
<para>
Update our copy of the timezone code to match
- IANA's <application>tzcode</> release 2016c (Tom Lane)
+ IANA's <application>tzcode</application> release 2016c (Tom Lane)
</para>
<para>
Branch: REL9_1_STABLE [a44388ffe] 2016-08-05 12:59:02 -0400
-->
<para>
- Update time zone data files to <application>tzdata</> release 2016f
+ Update time zone data files to <application>tzdata</application> release 2016f
for DST law changes in Kemerovo and Novosibirsk, plus historical
corrections for Azerbaijan, Belarus, and Morocco.
</para>
using OpenSSL within a single process and not all the code involved
follows the same rules for when to clear the error queue.
Failures have been reported specifically when a client application
- uses SSL connections in <application>libpq</> concurrently with
+ uses SSL connections in <application>libpq</application> concurrently with
SSL connections using the PHP, Python, or Ruby wrappers for OpenSSL.
It's possible for similar problems to arise within the server as well,
if an extension module establishes an outgoing SSL connection.
Branch: REL9_1_STABLE [6882dbd34] 2016-04-21 20:05:58 -0400
-->
<para>
- Fix <quote>failed to build any <replaceable>N</>-way joins</quote>
+ Fix <quote>failed to build any <replaceable>N</replaceable>-way joins</quote>
planner error with a full join enclosed in the right-hand side of a
left join (Tom Lane)
</para>
<para>
Given a three-or-more-way equivalence class of variables, such
- as <literal>X.X = Y.Y = Z.Z</>, it was possible for the planner to omit
+ as <literal>X.X = Y.Y = Z.Z</literal>, it was possible for the planner to omit
some of the tests needed to enforce that all the variables are actually
equal, leading to join rows being output that didn't satisfy
- the <literal>WHERE</> clauses. For various reasons, erroneous plans
+ the <literal>WHERE</literal> clauses. For various reasons, erroneous plans
were seldom selected in practice, so that this bug has gone undetected
for a long time.
</para>
</para>
<para>
- An example is that <literal>SELECT (ARRAY[])::text[]</> gave an error,
+ An example is that <literal>SELECT (ARRAY[])::text[]</literal> gave an error,
though it worked without the parentheses.
</para>
</listitem>
<para>
The memory leak would typically not amount to much in simple queries,
but it could be very substantial during a large GIN index build with
- high <varname>maintenance_work_mem</>.
+ high <varname>maintenance_work_mem</varname>.
</para>
</listitem>
Branch: REL9_1_STABLE [7bad282c3] 2016-05-06 12:09:20 -0400
-->
<para>
- Fix possible misbehavior of <literal>TH</>, <literal>th</>,
- and <literal>Y,YYY</> format codes in <function>to_timestamp()</>
+ Fix possible misbehavior of <literal>TH</literal>, <literal>th</literal>,
+ and <literal>Y,YYY</literal> format codes in <function>to_timestamp()</function>
(Tom Lane)
</para>
Branch: REL9_1_STABLE [663624e60] 2016-04-21 14:20:18 -0400
-->
<para>
- Fix dumping of rules and views in which the <replaceable>array</>
- argument of a <literal><replaceable>value</> <replaceable>operator</>
- ANY (<replaceable>array</>)</literal> construct is a sub-SELECT
+ Fix dumping of rules and views in which the <replaceable>array</replaceable>
+ argument of a <literal><replaceable>value</replaceable> <replaceable>operator</replaceable>
+ ANY (<replaceable>array</replaceable>)</literal> construct is a sub-SELECT
(Tom Lane)
</para>
</listitem>
Branch: REL9_4_STABLE [28148e258] 2016-04-04 18:05:24 -0400
-->
<para>
- Disallow newlines in <command>ALTER SYSTEM</> parameter values
+ Disallow newlines in <command>ALTER SYSTEM</command> parameter values
(Tom Lane)
</para>
<para>
The configuration-file parser doesn't support embedded newlines in
string literals, so we mustn't allow them in values to be inserted
- by <command>ALTER SYSTEM</>.
+ by <command>ALTER SYSTEM</command>.
</para>
</listitem>
Branch: REL9_4_STABLE [8eed31ffb] 2016-04-15 12:11:27 -0400
-->
<para>
- Fix <command>ALTER TABLE ... REPLICA IDENTITY USING INDEX</> to
+ Fix <command>ALTER TABLE ... REPLICA IDENTITY USING INDEX</command> to
work properly if an index on OID is selected (David Rowley)
</para>
</listitem>
Branch: REL9_1_STABLE [4c1c9f80b] 2016-04-20 23:48:13 -0400
-->
<para>
- Make <application>pg_regress</> use a startup timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if that's set (Tom Lane)
+ Make <application>pg_regress</application> use a startup timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if that's set (Tom Lane)
</para>
<para>
This is for consistency with a behavior recently added
- to <application>pg_ctl</>; it eases automated testing on slow machines.
+ to <application>pg_ctl</application>; it eases automated testing on slow machines.
</para>
</listitem>
Branch: REL9_1_STABLE [3ef1f3a3e] 2016-04-13 18:57:52 -0400
-->
<para>
- Fix <application>pg_upgrade</> to correctly restore extension
+ Fix <application>pg_upgrade</application> to correctly restore extension
membership for operator families containing only one operator class
(Tom Lane)
</para>
<para>
In such a case, the operator family was restored into the new database,
but it was no longer marked as part of the extension. This had no
- immediate ill effects, but would cause later <application>pg_dump</>
+ immediate ill effects, but would cause later <application>pg_dump</application>
runs to emit output that would cause (harmless) errors on restore.
</para>
</listitem>
Branch: REL9_3_STABLE [e1d88f983] 2016-05-06 22:05:51 -0400
-->
<para>
- Fix <application>pg_upgrade</> to not fail when new-cluster TOAST rules
+ Fix <application>pg_upgrade</application> to not fail when new-cluster TOAST rules
differ from old (Tom Lane)
</para>
<para>
- <application>pg_upgrade</> had special-case code to handle the
- situation where the new <productname>PostgreSQL</> version thinks that
+ <application>pg_upgrade</application> had special-case code to handle the
+ situation where the new <productname>PostgreSQL</productname> version thinks that
a table should have a TOAST table while the old version did not. That
code was broken, so remove it, and instead do nothing in such cases;
there seems no reason to believe that we can't get along fine without
-->
<para>
Reduce the number of SysV semaphores used by a build configured with
- <option>--disable-spinlocks</> (Tom Lane)
+ <option>--disable-spinlocks</option> (Tom Lane)
</para>
</listitem>
Branch: REL9_1_STABLE [cbff4b708] 2016-04-23 16:53:15 -0400
-->
<para>
- Rename internal function <function>strtoi()</>
- to <function>strtoint()</> to avoid conflict with a NetBSD library
+ Rename internal function <function>strtoi()</function>
+ to <function>strtoint()</function> to avoid conflict with a NetBSD library
function (Thomas Munro)
</para>
</listitem>
Branch: REL9_1_STABLE [9028f404e] 2016-04-21 16:59:17 -0400
-->
<para>
- Fix reporting of errors from <function>bind()</>
- and <function>listen()</> system calls on Windows (Tom Lane)
+ Fix reporting of errors from <function>bind()</function>
+ and <function>listen()</function> system calls on Windows (Tom Lane)
</para>
</listitem>
Branch: REL9_3_STABLE [ab5c6d01f] 2016-04-22 05:20:18 -0400
-->
<para>
- Fix <function>putenv()</> to work properly with Visual Studio 2013
+ Fix <function>putenv()</function> to work properly with Visual Studio 2013
(Michael Paquier)
</para>
</listitem>
Branch: REL9_1_STABLE [6cd30292b] 2016-03-29 11:54:58 -0400
-->
<para>
- Avoid possibly-unsafe use of Windows' <function>FormatMessage()</>
+ Avoid possibly-unsafe use of Windows' <function>FormatMessage()</function>
function (Christian Ullrich)
</para>
<para>
- Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</> flag where
+ Use the <literal>FORMAT_MESSAGE_IGNORE_INSERTS</literal> flag where
appropriate. No live bug is known to exist here, but it seems like a
good idea to be careful.
</para>
Branch: REL9_1_STABLE [bfc39da64] 2016-05-05 20:09:32 -0400
-->
<para>
- Update time zone data files to <application>tzdata</> release 2016d
+ Update time zone data files to <application>tzdata</application> release 2016d
for DST law changes in Russia and Venezuela. There are new zone
- names <literal>Europe/Kirov</> and <literal>Asia/Tomsk</> to reflect
+ names <literal>Europe/Kirov</literal> and <literal>Asia/Tomsk</literal> to reflect
the fact that these regions now have different time zone histories from
adjacent regions.
</para>
</para>
<para>
- However, you may need to <command>REINDEX</> some indexes after applying
+ However, you may need to <command>REINDEX</command> some indexes after applying
the update, as per the first changelog entry below.
</para>
</sect2>
<listitem>
<para>
- Disable abbreviated keys for string sorting in non-<literal>C</>
+ Disable abbreviated keys for string sorting in non-<literal>C</literal>
locales (Robert Haas)
</para>
<para>
- <productname>PostgreSQL</> 9.5 introduced logic for speeding up
+ <productname>PostgreSQL</productname> 9.5 introduced logic for speeding up
comparisons of string data types by using the standard C library
- function <function>strxfrm()</> as a substitute
- for <function>strcoll()</>. It now emerges that most versions of
+ function <function>strxfrm()</function> as a substitute
+ for <function>strcoll()</function>. It now emerges that most versions of
glibc (Linux's implementation of the C library) have buggy
- implementations of <function>strxfrm()</> that, in some locales,
+ implementations of <function>strxfrm()</function> that, in some locales,
can produce string comparison results that do not
- match <function>strcoll()</>. Until this problem can be better
- characterized, disable the optimization in all non-<literal>C</>
- locales. (<literal>C</> locale is safe since it uses
- neither <function>strcoll()</> nor <function>strxfrm()</>.)
+ match <function>strcoll()</function>. Until this problem can be better
+ characterized, disable the optimization in all non-<literal>C</literal>
+ locales. (<literal>C</literal> locale is safe since it uses
+ neither <function>strcoll()</function> nor <function>strxfrm()</function>.)
</para>
<para>
Unfortunately, this problem affects not only sorting but also entry
ordering in B-tree indexes, which means that B-tree indexes
- on <type>text</>, <type>varchar</>, or <type>char</> columns may now
+ on <type>text</type>, <type>varchar</type>, or <type>char</type> columns may now
be corrupt if they sort according to an affected locale and were
- built or modified under <productname>PostgreSQL</> 9.5.0 or 9.5.1.
- Users should <command>REINDEX</> indexes that might be affected.
+ built or modified under <productname>PostgreSQL</productname> 9.5.0 or 9.5.1.
+ Users should <command>REINDEX</command> indexes that might be affected.
</para>
<para>
It is not possible at this time to give an exhaustive list of
- known-affected locales. <literal>C</> locale is known safe, and
+ known-affected locales. <literal>C</literal> locale is known safe, and
there is no evidence of trouble in English-based locales such
- as <literal>en_US</>, but some other popular locales such
- as <literal>de_DE</> are affected in most glibc versions.
+ as <literal>en_US</literal>, but some other popular locales such
+ as <literal>de_DE</literal> are affected in most glibc versions.
</para>
</listitem>
<listitem>
<para>
Add must-be-superuser checks to some
- new <filename>contrib/pageinspect</> functions (Andreas Seltenreich)
+ new <filename>contrib/pageinspect</filename> functions (Andreas Seltenreich)
</para>
<para>
- Most functions in the <filename>pageinspect</> extension that
- inspect <type>bytea</> values disallow calls by non-superusers,
- but <function>brin_page_type()</> and <function>brin_metapage_info()</>
- failed to do so. Passing contrived <type>bytea</> values to them might
+ Most functions in the <filename>pageinspect</filename> extension that
+ inspect <type>bytea</type> values disallow calls by non-superusers,
+ but <function>brin_page_type()</function> and <function>brin_metapage_info()</function>
+ failed to do so. Passing contrived <type>bytea</type> values to them might
crash the server or disclose a few bytes of server memory. Add the
missing permissions checks to prevent misuse.
(CVE-2016-3065)
<listitem>
<para>
- Fix incorrect handling of indexed <literal>ROW()</> comparisons
+ Fix incorrect handling of indexed <literal>ROW()</literal> comparisons
(Simon Riggs)
</para>
<para>
Flaws in a minor optimization introduced in 9.5 caused incorrect
- results if the <literal>ROW()</> comparison matches the index ordering
+ results if the <literal>ROW()</literal> comparison matches the index ordering
partially but not exactly (for example, differing column order, or the
- index contains both <literal>ASC</> and <literal>DESC</> columns).
+ index contains both <literal>ASC</literal> and <literal>DESC</literal> columns).
Pending a better solution, the optimization has been removed.
</para>
</listitem>
<listitem>
<para>
Fix incorrect handling of NULL index entries in
- indexed <literal>ROW()</> comparisons (Tom Lane)
+ indexed <literal>ROW()</literal> comparisons (Tom Lane)
</para>
<para>
An index search using a row comparison such as <literal>ROW(a, b) >
- ROW('x', 'y')</> would stop upon reaching a NULL entry in
- the <structfield>b</> column, ignoring the fact that there might be
- non-NULL <structfield>b</> values associated with later values
- of <structfield>a</>.
+ ROW('x', 'y')</literal> would stop upon reaching a NULL entry in
+ the <structfield>b</structfield> column, ignoring the fact that there might be
+ non-NULL <structfield>b</structfield> values associated with later values
+ of <structfield>a</structfield>.
</para>
</listitem>
<listitem>
<para>
Avoid unlikely data-loss scenarios due to renaming files without
- adequate <function>fsync()</> calls before and after (Michael Paquier,
+ adequate <function>fsync()</function> calls before and after (Michael Paquier,
Tomas Vondra, Andres Freund)
</para>
</listitem>
<listitem>
<para>
Fix incorrect behavior when rechecking a just-modified row in a query
- that does <command>SELECT FOR UPDATE/SHARE</> and contains some
+ that does <command>SELECT FOR UPDATE/SHARE</command> and contains some
relations that need not be locked (Tom Lane)
</para>
<para>
Rows from non-locked relations were incorrectly treated as containing
all NULLs during the recheck, which could result in incorrectly
- deciding that the updated row no longer passes the <literal>WHERE</>
+ deciding that the updated row no longer passes the <literal>WHERE</literal>
condition, or in incorrectly outputting NULLs.
</para>
</listitem>
<listitem>
<para>
- Fix bug in <function>json_to_record()</> when a field of its input
+ Fix bug in <function>json_to_record()</function> when a field of its input
object contains a sub-object with a field name matching one of the
requested output column names (Tom Lane)
</para>
<listitem>
<para>
Fix nonsense result from two-argument form
- of <function>jsonb_object()</> when called with empty arrays
+ of <function>jsonb_object()</function> when called with empty arrays
(Michael Paquier, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Fix misbehavior in <function>jsonb_set()</> when converting a path
+ Fix misbehavior in <function>jsonb_set()</function> when converting a path
array element into an integer for use as an array subscript
(Michael Paquier)
</para>
<listitem>
<para>
Fix misformatting of negative time zone offsets
- by <function>to_char()</>'s <literal>OF</> format code
+ by <function>to_char()</function>'s <literal>OF</literal> format code
(Thomas Munro, Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix possible incorrect logging of waits done by
- <command>INSERT ... ON CONFLICT</> (Peter Geoghegan)
+ <command>INSERT ... ON CONFLICT</command> (Peter Geoghegan)
</para>
<para>
<para>
Previously, standby servers would delay application of WAL records in
- response to <varname>recovery_min_apply_delay</> even while replaying
+ response to <varname>recovery_min_apply_delay</varname> even while replaying
the initial portion of WAL needed to make their database state valid.
Since the standby is useless until it's reached a consistent database
state, this was deemed unhelpful.
<listitem>
<para>
- Correctly handle cases where <literal>pg_subtrans</> is close to XID
+ Correctly handle cases where <literal>pg_subtrans</literal> is close to XID
wraparound during server startup (Jeff Janes)
</para>
</listitem>
<para>
Trouble cases included tuples larger than one page when replica
- identity is <literal>FULL</>, <command>UPDATE</>s that change a
+ identity is <literal>FULL</literal>, <command>UPDATE</command>s that change a
primary key within a transaction large enough to be spooled to disk,
incorrect reports of <quote>subxact logged without previous toplevel
- record</>, and incorrect reporting of a transaction's commit time.
+ record</quote>, and incorrect reporting of a transaction's commit time.
</para>
</listitem>
<listitem>
<para>
Fix planner error with nested security barrier views when the outer
- view has a <literal>WHERE</> clause containing a correlated subquery
+ view has a <literal>WHERE</literal> clause containing a correlated subquery
(Dean Rasheed)
</para>
</listitem>
<listitem>
<para>
- Fix corner-case crash due to trying to free <function>localeconv()</>
+ Fix corner-case crash due to trying to free <function>localeconv()</function>
output strings more than once (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Fix parsing of affix files for <literal>ispell</> dictionaries
+ Fix parsing of affix files for <literal>ispell</literal> dictionaries
(Tom Lane)
</para>
<para>
The code could go wrong if the affix file contained any characters
whose byte length changes during case-folding, for
- example <literal>I</> in Turkish UTF8 locales.
+ example <literal>I</literal> in Turkish UTF8 locales.
</para>
</listitem>
<listitem>
<para>
- Avoid use of <function>sscanf()</> to parse <literal>ispell</>
+ Avoid use of <function>sscanf()</function> to parse <literal>ispell</literal>
dictionary files (Artur Zakirov)
</para>
<listitem>
<para>
- Fix <application>psql</>'s tab completion logic to handle multibyte
+ Fix <application>psql</application>'s tab completion logic to handle multibyte
characters properly (Kyotaro Horiguchi, Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s tab completion for
- <literal>SECURITY LABEL</> (Tom Lane)
+ Fix <application>psql</application>'s tab completion for
+ <literal>SECURITY LABEL</literal> (Tom Lane)
</para>
<para>
- Pressing TAB after <literal>SECURITY LABEL</> might cause a crash
+ Pressing TAB after <literal>SECURITY LABEL</literal> might cause a crash
or offering of inappropriate keywords.
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_ctl</> accept a wait timeout from the
- <envar>PGCTLTIMEOUT</> environment variable, if none is specified on
+ Make <application>pg_ctl</application> accept a wait timeout from the
+ <envar>PGCTLTIMEOUT</envar> environment variable, if none is specified on
the command line (Noah Misch)
</para>
<listitem>
<para>
Fix incorrect test for Windows service status
- in <application>pg_ctl</> (Manuel Mathar)
+ in <application>pg_ctl</application> (Manuel Mathar)
</para>
<para>
The previous set of minor releases attempted to
- fix <application>pg_ctl</> to properly determine whether to send log
+ fix <application>pg_ctl</application> to properly determine whether to send log
messages to Window's Event Log, but got the test backwards.
</para>
</listitem>
<listitem>
<para>
- Fix <application>pgbench</> to correctly handle the combination
- of <literal>-C</> and <literal>-M prepared</> options (Tom Lane)
+ Fix <application>pgbench</application> to correctly handle the combination
+ of <literal>-C</literal> and <literal>-M prepared</literal> options (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_upgrade</>, skip creating a deletion script when
+ In <application>pg_upgrade</application>, skip creating a deletion script when
the new data directory is inside the old data directory (Bruce
Momjian)
</para>
<listitem>
<para>
Fix multiple mistakes in the statistics returned
- by <filename>contrib/pgstattuple</>'s <function>pgstatindex()</>
+ by <filename>contrib/pgstattuple</filename>'s <function>pgstatindex()</function>
function (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Remove dependency on <literal>psed</> in MSVC builds, since it's no
+ Remove dependency on <literal>psed</literal> in MSVC builds, since it's no
longer provided by core Perl (Michael Paquier, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016c
+ Update time zone data files to <application>tzdata</application> release 2016c
for DST law changes in Azerbaijan, Chile, Haiti, Palestine, and Russia
(Altai, Astrakhan, Kirov, Sakhalin, Ulyanovsk regions), plus
historical corrections for Lithuania, Moldova, and Russia
<listitem>
<para>
- Avoid pushdown of <literal>HAVING</> clauses when grouping sets are
+ Avoid pushdown of <literal>HAVING</literal> clauses when grouping sets are
used (Andrew Gierth)
</para>
</listitem>
<listitem>
<para>
- Fix deparsing of <literal>ON CONFLICT</> arbiter <literal>WHERE</>
+ Fix deparsing of <literal>ON CONFLICT</literal> arbiter <literal>WHERE</literal>
clauses (Peter Geoghegan)
</para>
</listitem>
<listitem>
<para>
- Make <literal>%h</> and <literal>%r</> escapes
- in <varname>log_line_prefix</> work for messages emitted due
- to <varname>log_connections</> (Tom Lane)
+ Make <literal>%h</literal> and <literal>%r</literal> escapes
+ in <varname>log_line_prefix</varname> work for messages emitted due
+ to <varname>log_connections</varname> (Tom Lane)
</para>
<para>
- Previously, <literal>%h</>/<literal>%r</> started to work just after a
- new session had emitted the <quote>connection received</> log message;
+ Previously, <literal>%h</literal>/<literal>%r</literal> started to work just after a
+ new session had emitted the <quote>connection received</quote> log message;
now they work for that message too.
</para>
</listitem>
<listitem>
<para>
- Fix <application>psql</>'s <literal>\det</> command to interpret its
- pattern argument the same way as other <literal>\d</> commands with
+ Fix <application>psql</application>'s <literal>\det</literal> command to interpret its
+ pattern argument the same way as other <literal>\d</literal> commands with
potentially schema-qualified patterns do (Reece Hart)
</para>
</listitem>
<listitem>
<para>
- In <application>pg_ctl</> on Windows, check service status to decide
+ In <application>pg_ctl</application> on Windows, check service status to decide
where to send output, rather than checking if standard output is a
terminal (Michael Paquier)
</para>
<listitem>
<para>
- Fix assorted corner-case bugs in <application>pg_dump</>'s processing
+ Fix assorted corner-case bugs in <application>pg_dump</application>'s processing
of extension member objects (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Fix improper quoting of domain constraint names
- in <application>pg_dump</> (Elvis Pranskevichus)
+ in <application>pg_dump</application> (Elvis Pranskevichus)
</para>
</listitem>
<listitem>
<para>
- Make <application>pg_dump</> mark a view's triggers as needing to be
+ Make <application>pg_dump</application> mark a view's triggers as needing to be
processed after its rule, to prevent possible failure during
- parallel <application>pg_restore</> (Tom Lane)
+ parallel <application>pg_restore</application> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Install guards in <application>pgbench</> against corner-case overflow
+ Install guards in <application>pgbench</application> against corner-case overflow
conditions during evaluation of script-specified division or modulo
operators (Fabien Coelho, Michael Paquier)
</para>
<listitem>
<para>
- Suppress useless warning message when <application>pg_receivexlog</>
+ Suppress useless warning message when <application>pg_receivexlog</application>
connects to a pre-9.4 server (Marco Nenciarini)
</para>
</listitem>
<listitem>
<para>
- Avoid dump/reload problems when using both <application>plpython2</>
- and <application>plpython3</> (Tom Lane)
+ Avoid dump/reload problems when using both <application>plpython2</application>
+ and <application>plpython3</application> (Tom Lane)
</para>
<para>
- In principle, both versions of <application>PL/Python</> can be used in
+ In principle, both versions of <application>PL/Python</application> can be used in
the same database, though not in the same session (because the two
- versions of <application>libpython</> cannot safely be used concurrently).
- However, <application>pg_restore</> and <application>pg_upgrade</> both
+ versions of <application>libpython</application> cannot safely be used concurrently).
+ However, <application>pg_restore</application> and <application>pg_upgrade</application> both
do things that can fall foul of the same-session restriction. Work
around that by changing the timing of the check.
</para>
<listitem>
<para>
- Fix <application>PL/Python</> regression tests to pass with Python 3.5
+ Fix <application>PL/Python</application> regression tests to pass with Python 3.5
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
- Prevent certain <application>PL/Java</> parameters from being set by
+ Prevent certain <application>PL/Java</application> parameters from being set by
non-superusers (Noah Misch)
</para>
<para>
- This change mitigates a <application>PL/Java</> security bug
- (CVE-2016-0766), which was fixed in <application>PL/Java</> by marking
+ This change mitigates a <application>PL/Java</application> security bug
+ (CVE-2016-0766), which was fixed in <application>PL/Java</application> by marking
these parameters as superuser-only. To fix the security hazard for
- sites that update <productname>PostgreSQL</> more frequently
- than <application>PL/Java</>, make the core code aware of them also.
+ sites that update <productname>PostgreSQL</productname> more frequently
+ than <application>PL/Java</application>, make the core code aware of them also.
</para>
</listitem>
<listitem>
<para>
- Fix <application>ecpg</>-supplied header files to not contain comments
+ Fix <application>ecpg</application>-supplied header files to not contain comments
continued from a preprocessor directive line onto the next line
(Michael Meskes)
</para>
<para>
- Such a comment is rejected by <application>ecpg</>. It's not yet clear
- whether <application>ecpg</> itself should be changed.
+ Such a comment is rejected by <application>ecpg</application>. It's not yet clear
+ whether <application>ecpg</application> itself should be changed.
</para>
</listitem>
<listitem>
<para>
- Fix <function>hstore_to_json_loose()</>'s test for whether
- an <type>hstore</> value can be converted to a JSON number (Tom Lane)
+ Fix <function>hstore_to_json_loose()</function>'s test for whether
+ an <type>hstore</type> value can be converted to a JSON number (Tom Lane)
</para>
<para>
<listitem>
<para>
- In <filename>contrib/postgres_fdw</>, fix bugs triggered by use
- of <literal>tableoid</> in data-modifying commands (Etsuro Fujita,
+ In <filename>contrib/postgres_fdw</filename>, fix bugs triggered by use
+ of <literal>tableoid</literal> in data-modifying commands (Etsuro Fujita,
Robert Haas)
</para>
</listitem>
<listitem>
<para>
- Fix ill-advised restriction of <literal>NAMEDATALEN</> to be less
+ Fix ill-advised restriction of <literal>NAMEDATALEN</literal> to be less
than 256 (Robert Haas, Tom Lane)
</para>
</listitem>
<listitem>
<para>
- Ensure that <filename>dynloader.h</> is included in the installed
+ Ensure that <filename>dynloader.h</filename> is included in the installed
header files in MSVC builds (Bruce Momjian, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
- Update time zone data files to <application>tzdata</> release 2016a for
+ Update time zone data files to <application>tzdata</application> release 2016a for
DST law changes in Cayman Islands, Metlakatla, and Trans-Baikal
Territory (Zabaykalsky Krai), plus historical corrections for Pakistan.
</para>
<title>Overview</title>
<para>
- Major enhancements in <productname>PostgreSQL</> 9.5 include:
+ Major enhancements in <productname>PostgreSQL</productname> 9.5 include:
</para>
<!-- This list duplicates items below, but without authors or details-->
<listitem>
<para>
- Allow <link linkend="sql-on-conflict"><command>INSERT</></>s
+ Allow <link linkend="sql-on-conflict"><command>INSERT</command></link>s
that would generate constraint conflicts to be turned into
- <command>UPDATE</>s or ignored
+ <command>UPDATE</command>s or ignored
</para>
</listitem>
<listitem>
<para>
- Add <literal>GROUP BY</> analysis features <link
- linkend="queries-grouping-sets"><literal>GROUPING SETS</></>,
- <link linkend="queries-grouping-sets"><literal>CUBE</></> and
- <link linkend="queries-grouping-sets"><literal>ROLLUP</></>
+ Add <literal>GROUP BY</literal> analysis features <link
+ linkend="queries-grouping-sets"><literal>GROUPING SETS</literal></link>,
+ <link linkend="queries-grouping-sets"><literal>CUBE</literal></link> and
+ <link linkend="queries-grouping-sets"><literal>ROLLUP</literal></link>
</para>
</listitem>
<listitem>
<para>
- Add <link linkend="ddl-rowsecurity">row-level security control</>
+ Add <link linkend="ddl-rowsecurity">row-level security control</link>
</para>
</listitem>
<listitem>
<para>
Create mechanisms for tracking
- the <link linkend="replication-origins">progress of replication</>,
+ the <link linkend="replication-origins">progress of replication</link>,
including methods for identifying the origin of individual changes
during logical replication
</para>
<listitem>
<para>
- Add <link linkend="BRIN">Block Range Indexes</> (<acronym>BRIN</>)
+ Add <link linkend="brin">Block Range Indexes</link> (<acronym>BRIN</acronym>)
</para>
</listitem>
2015-03-11 [c6b3c93] Tom Lane: Make operator precedence follow the SQL standar..
-->
<para>
- Adjust <link linkend="sql-precedence">operator precedence</>
- to match the <acronym>SQL</> standard (Tom Lane)
+ Adjust <link linkend="sql-precedence">operator precedence</link>
+ to match the <acronym>SQL</acronym> standard (Tom Lane)
</para>
<para>
The precedence of <literal><=</literal>, <literal>>=</literal>
and <literal><></literal> has been reduced to match that of
<literal><</literal>, <literal>></literal>
- and <literal>=</literal>. The precedence of <literal>IS</> tests
- (e.g., <replaceable>x</> <literal>IS NULL</>) has been reduced to be
+ and <literal>=</literal>. The precedence of <literal>IS</literal> tests
+ (e.g., <replaceable>x</replaceable> <literal>IS NULL</literal>) has been reduced to be
just below these six comparison operators.
- Also, multi-keyword operators beginning with <literal>NOT</> now have
+ Also, multi-keyword operators beginning with <literal>NOT</literal> now have
the precedence of their base operator (for example, <literal>NOT
- BETWEEN</> now has the same precedence as <literal>BETWEEN</>) whereas
- before they had inconsistent precedence, behaving like <literal>NOT</>
+ BETWEEN</literal> now has the same precedence as <literal>BETWEEN</literal>) whereas
+ before they had inconsistent precedence, behaving like <literal>NOT</literal>
with respect to their left operand but like their base operator with
respect to their right operand. The new configuration
parameter <xref linkend="guc-operator-precedence-warning"> can be
-->
<para>
Change <xref linkend="app-pg-ctl">'s default shutdown mode from
- <literal>smart</> to <literal>fast</> (Bruce Momjian)
+ <literal>smart</literal> to <literal>fast</literal> (Bruce Momjian)
</para>
<para>
-->
<para>
Use assignment cast behavior for data type conversions
- in <application>PL/pgSQL</> assignments, rather than converting to and
+ in <application>PL/pgSQL</application> assignments, rather than converting to and
from text (Tom Lane)
</para>
<para>
This change causes conversions of Booleans to strings to
- produce <literal>true</> or <literal>false</>, not <literal>t</>
- or <literal>f</>. Other type conversions may succeed in more cases
- than before; for example, assigning a numeric value <literal>3.9</> to
+ produce <literal>true</literal> or <literal>false</literal>, not <literal>t</literal>
+ or <literal>f</literal>. Other type conversions may succeed in more cases
+ than before; for example, assigning a numeric value <literal>3.9</literal> to
an integer variable will now assign 4 rather than failing. If no
assignment-grade cast is defined for the particular source and
- destination types, <application>PL/pgSQL</> will fall back to its old
+ destination types, <application>PL/pgSQL</application> will fall back to its old
I/O conversion behavior.
</para>
</listitem>
-->
<para>
Allow characters in <link linkend="libpq-connect-options">server
- command-line options</> to be escaped with a backslash (Andres Freund)
+ command-line options</link> to be escaped with a backslash (Andres Freund)
</para>
<para>
Formerly, spaces in the options string always separated options, so
there was no way to include a space in an option value. Including
- a backslash in an option value now requires writing <literal>\\</>.
+ a backslash in an option value now requires writing <literal>\\</literal>.
</para>
</listitem>
-->
<para>
Change the default value of the GSSAPI <link
- linkend="gssapi-auth"><varname>include_realm</></> parameter to 1, so
- that by default the realm is not removed from a <acronym>GSS</>
- or <acronym>SSPI</> principal name (Stephen Frost)
+ linkend="gssapi-auth"><varname>include_realm</varname></link> parameter to 1, so
+ that by default the realm is not removed from a <acronym>GSS</acronym>
+ or <acronym>SSPI</acronym> principal name (Stephen Frost)
</para>
</listitem>
2015-06-29 [d661532] Heikki..: Also trigger restartpoints based on max_wal_siz..
-->
<para>
- Replace configuration parameter <varname>checkpoint_segments</>
+ Replace configuration parameter <varname>checkpoint_segments</varname>
with <xref linkend="guc-min-wal-size">
and <xref linkend="guc-max-wal-size"> (Heikki Linnakangas)
</para>
2014-06-18 [df8b7bc] Tom Lane: Improve our mechanism for controlling the Linux..
-->
<para>
- Control the Linux <acronym>OOM</> killer via new environment
+ Control the Linux <acronym>OOM</acronym> killer via new environment
variables <link
- linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_FILE</></>
+ linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_FILE</envar></link>
and <link
- linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_VALUE</></>,
- instead of compile-time options <literal>LINUX_OOM_SCORE_ADJ</> and
- <literal>LINUX_OOM_ADJ</>
+ linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_VALUE</envar></link>,
+ instead of compile-time options <literal>LINUX_OOM_SCORE_ADJ</literal> and
+ <literal>LINUX_OOM_ADJ</literal>
(Gurjeet Singh)
</para>
</listitem>
-->
<para>
Decommission server configuration
- parameter <varname>ssl_renegotiation_limit</>, which was deprecated
+ parameter <varname>ssl_renegotiation_limit</varname>, which was deprecated
in earlier releases (Andres Freund)
</para>
While SSL renegotiation is a good idea in theory, it has caused enough
bugs to be considered a net negative in practice, and it is due to be
removed from future versions of the relevant standards. We have
- therefore removed support for it from <productname>PostgreSQL</>.
- The <varname>ssl_renegotiation_limit</> parameter still exists, but
+ therefore removed support for it from <productname>PostgreSQL</productname>.
+ The <varname>ssl_renegotiation_limit</varname> parameter still exists, but
cannot be set to anything but zero (disabled). It's not documented
anymore, either.
</para>
2014-11-05 [525a489] Tom Lane: Remove the last vestige of server-side autocomm..
-->
<para>
- Remove server configuration parameter <varname>autocommit</>, which
+ Remove server configuration parameter <varname>autocommit</varname>, which
was already deprecated and non-operational (Tom Lane)
</para>
</listitem>
2015-03-06 [bb8582a] Peter ..: Remove rolcatupdate
-->
<para>
- Remove the <link linkend="catalog-pg-authid"><structname>pg_authid</></>
- catalog's <structfield>rolcatupdate</> field, as it had no usefulness
+ Remove the <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>
+ catalog's <structfield>rolcatupdate</structfield> field, as it had no usefulness
(Adam Brightwell)
</para>
</listitem>
-->
<para>
The <link
- linkend="monitoring-stats-views-table"><structname>pg_stat_replication</></link>
- system view's <structfield>sent</> field is now NULL, not zero, when
+ linkend="monitoring-stats-views-table"><structname>pg_stat_replication</structname></link>
+ system view's <structfield>sent</structfield> field is now NULL, not zero, when
it has no valid value (Magnus Hagander)
</para>
</listitem>
2015-07-17 [89ddd29] Andrew..: Support JSON negative array subscripts everywh..
-->
<para>
- Allow <type>json</> and <type>jsonb</> array extraction operators to
+ Allow <type>json</type> and <type>jsonb</type> array extraction operators to
accept negative subscripts, which count from the end of JSON arrays
(Peter Geoghegan, Andrew Dunstan)
</para>
<para>
- Previously, these operators returned <literal>NULL</> for negative
+ Previously, these operators returned <literal>NULL</literal> for negative
subscripts.
</para>
</listitem>
2015-05-15 [b0b7be6] Alvaro..: Add BRIN infrastructure for "inclusion" opclasses
-->
<para>
- Add <link linkend="BRIN">Block Range Indexes</> (<acronym>BRIN</>)
+ Add <link linkend="brin">Block Range Indexes</link> (<acronym>BRIN</acronym>)
(Álvaro Herrera)
</para>
<para>
- <acronym>BRIN</> indexes store only summary data (such as minimum
+ <acronym>BRIN</acronym> indexes store only summary data (such as minimum
and maximum values) for ranges of heap blocks. They are therefore
very compact and cheap to update; but if the data is naturally
clustered, they can still provide substantial speedup of searches.
<para>
Allow queries to perform accurate distance filtering of
bounding-box-indexed objects (polygons, circles) using <link
- linkend="GiST">GiST</> indexes (Alexander Korotkov, Heikki
+ linkend="gist">GiST</link> indexes (Alexander Korotkov, Heikki
Linnakangas)
</para>
2015-03-30 [0633a60] Heikki..: Add index-only scan support to range type GiST ..
-->
<para>
- Allow <link linkend="GiST">GiST</> indexes to perform index-only
+ Allow <link linkend="gist">GiST</link> indexes to perform index-only
scans (Anastasia Lubennikova, Heikki Linnakangas, Andreas Karlsson)
</para>
</listitem>
-->
<para>
Add configuration parameter <xref linkend="guc-gin-pending-list-limit">
- to control the size of <acronym>GIN</> pending lists (Fujii Masao)
+ to control the size of <acronym>GIN</acronym> pending lists (Fujii Masao)
</para>
<para>
This value can also be set on a per-index basis as an index storage
parameter. Previously the pending-list size was controlled
by <xref linkend="guc-work-mem">, which was awkward because
- appropriate values for <varname>work_mem</> are often much too large
+ appropriate values for <varname>work_mem</varname> are often much too large
for this purpose.
</para>
</listitem>
-->
<para>
Issue a warning during the creation of <link
- linkend="indexes-types">hash</> indexes because they are not
+ linkend="indexes-types">hash</link> indexes because they are not
crash-safe (Bruce Momjian)
</para>
</listitem>
2015-05-13 [78efd5c] Robert..: Extend abbreviated key infrastructure to datum ..
-->
<para>
- Improve the speed of sorting of <type>varchar</>, <type>text</>,
- and <type>numeric</> fields via <quote>abbreviated</> keys
+ Improve the speed of sorting of <type>varchar</type>, <type>text</type>,
+ and <type>numeric</type> fields via <quote>abbreviated</quote> keys
(Peter Geoghegan, Andrew Gierth, Robert Haas)
</para>
</listitem>
<para>
Extend the infrastructure that allows sorting to be performed by
inlined, non-<acronym>SQL</acronym>-callable comparison functions to
- cover <command>CREATE INDEX</>, <command>REINDEX</>, and
- <command>CLUSTER</> (Peter Geoghegan)
+ cover <command>CREATE INDEX</command>, <command>REINDEX</command>, and
+ <command>CLUSTER</command> (Peter Geoghegan)
</para>
</listitem>
<para>
This particularly addresses scalability problems when running on
- systems with multiple <acronym>CPU</> sockets.
+ systems with multiple <acronym>CPU</acronym> sockets.
</para>
</listitem>
-->
<para>
Allow pushdown of query restrictions into subqueries with <link
- linkend="tutorial-window">window functions</>, where appropriate
+ linkend="tutorial-window">window functions</link>, where appropriate
(David Rowley)
</para>
</listitem>
<para>
Teach the planner to use statistics obtained from an expression
index on a boolean-returning function, when a matching function call
- appears in <literal>WHERE</> (Tom Lane)
+ appears in <literal>WHERE</literal> (Tom Lane)
</para>
</listitem>
2015-09-23 [cfb2024] Tom Lane: Make ANALYZE compute basic statistics even for..
-->
<para>
- Make <command>ANALYZE</> compute basic statistics (null fraction and
+ Make <command>ANALYZE</command> compute basic statistics (null fraction and
average column width) even for columns whose data type lacks an
equality function (Oleksandr Shulgin)
</para>
-->
<para>
- Speed up <acronym>CRC</> (cyclic redundancy check) computations
+ Speed up <acronym>CRC</acronym> (cyclic redundancy check) computations
and switch to CRC-32C (Abhijit Menon-Sen, Heikki Linnakangas)
</para>
</listitem>
2014-07-01 [9f03ca9] Robert..: Avoid copying index tuples when building an ind..
-->
<para>
- Speed up <command>CREATE INDEX</> by avoiding unnecessary memory
+ Speed up <command>CREATE INDEX</command> by avoiding unnecessary memory
copies (Robert Haas)
</para>
</listitem>
-->
<para>
Add per-table autovacuum logging control via new
- <varname>log_autovacuum_min_duration</> storage parameter
+ <varname>log_autovacuum_min_duration</varname> storage parameter
(Michael Paquier)
</para>
</listitem>
<para>
This string, typically set in <link
- linkend="config-setting-configuration-file"><filename>postgresql.conf</></>,
+ linkend="config-setting-configuration-file"><filename>postgresql.conf</filename></link>,
allows clients to identify the cluster. This name also appears
in the process title of all server processes, allowing for easier
identification of processes belonging to the same cluster.
</sect4>
<sect4>
- <title><acronym>SSL</></title>
+ <title><acronym>SSL</acronym></title>
<itemizedlist>
-->
<para>
Check <link linkend="libpq-ssl"><quote>Subject Alternative
- Names</></> in <acronym>SSL</> server certificates, if present
+ Names</quote></link> in <acronym>SSL</acronym> server certificates, if present
(Alexey Klyukin)
</para>
<para>
When they are present, this replaces checks against the certificate's
- <quote>Common Name</>.
+ <quote>Common Name</quote>.
</para>
</listitem>
-->
<para>
Add system view <link
- linkend="pg-stat-ssl-view"><structname>pg_stat_ssl</></> to report
- <acronym>SSL</> connection information (Magnus Hagander)
+ linkend="pg-stat-ssl-view"><structname>pg_stat_ssl</structname></link> to report
+ <acronym>SSL</acronym> connection information (Magnus Hagander)
</para>
</listitem>
2015-02-03 [91fa7b4] Heikki..: Add API functions to libpq to interrogate SSL ..
-->
<para>
- Add <application>libpq</> functions to return <acronym>SSL</>
+ Add <application>libpq</application> functions to return <acronym>SSL</acronym>
information in an implementation-independent way (Heikki Linnakangas)
</para>
<para>
- While <link linkend="libpq-pqgetssl"><function>PQgetssl()</></> can
- still be used to call <productname>OpenSSL</> functions, it is now
+ While <link linkend="libpq-pqgetssl"><function>PQgetssl()</function></link> can
+ still be used to call <productname>OpenSSL</productname> functions, it is now
considered deprecated because future versions
- of <application>libpq</> might support other <acronym>SSL</>
+ of <application>libpq</application> might support other <acronym>SSL</acronym>
implementations. When possible, use the new
functions <link
- linkend="libpq-pqsslattribute"><function>PQsslAttribute()</></>, <link
- linkend="libpq-pqsslattributenames"><function>PQsslAttributeNames()</></>,
- and <link linkend="libpq-pqsslinuse"><function>PQsslInUse()</></>
- to obtain <acronym>SSL</> information in
- an <acronym>SSL</>-implementation-independent way.
+ linkend="libpq-pqsslattribute"><function>PQsslAttribute()</function></link>, <link
+ linkend="libpq-pqsslattributenames"><function>PQsslAttributeNames()</function></link>,
+ and <link linkend="libpq-pqsslinuse"><function>PQsslInUse()</function></link>
+ to obtain <acronym>SSL</acronym> information in
+ an <acronym>SSL</acronym>-implementation-independent way.
</para>
</listitem>
2015-04-09 [8a0d34e4] Peter ..: libpq: Don't overwrite existing OpenSSL thread..
-->
<para>
- Make <application>libpq</> honor any <productname>OpenSSL</>
+ Make <application>libpq</application> honor any <productname>OpenSSL</productname>
thread callbacks (Jan Urbanski)
</para>
2015-06-29 [d661532] Heikki..: Also trigger restartpoints based on max_wal_siz..
-->
<para>
- Replace configuration parameter <varname>checkpoint_segments</>
+ Replace configuration parameter <varname>checkpoint_segments</varname>
with <xref linkend="guc-min-wal-size">
and <xref linkend="guc-max-wal-size"> (Heikki Linnakangas)
</para>
<para>
- This change allows the allocation of a large number of <acronym>WAL</>
+ This change allows the allocation of a large number of <acronym>WAL</acronym>
files without keeping them after they are no longer needed.
- Therefore the default for <varname>max_wal_size</> has been set
- to <literal>1GB</>, much larger than the old default
- for <varname>checkpoint_segments</>.
+ Therefore the default for <varname>max_wal_size</varname> has been set
+ to <literal>1GB</literal>, much larger than the old default
+ for <varname>checkpoint_segments</varname>.
Also note that standby servers perform restartpoints to try to limit
- their WAL space consumption to <varname>max_wal_size</>; previously
- they did not pay any attention to <varname>checkpoint_segments</>.
+ their WAL space consumption to <varname>max_wal_size</varname>; previously
+ they did not pay any attention to <varname>checkpoint_segments</varname>.
</para>
</listitem>
2014-06-18 [df8b7bc] Tom Lane: Improve our mechanism for controlling the Linux..
-->
<para>
- Control the Linux <acronym>OOM</> killer via new environment
+ Control the Linux <acronym>OOM</acronym> killer via new environment
variables <link
- linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_FILE</></>
+ linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_FILE</envar></link>
and <link
- linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_VALUE</></>
+ linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_VALUE</envar></link>
(Gurjeet Singh)
</para>
<para>
- The previous <acronym>OOM</> control infrastructure involved
- compile-time options <literal>LINUX_OOM_SCORE_ADJ</> and
- <literal>LINUX_OOM_ADJ</>, which are no longer supported.
+ The previous <acronym>OOM</acronym> control infrastructure involved
+ compile-time options <literal>LINUX_OOM_SCORE_ADJ</literal> and
+ <literal>LINUX_OOM_ADJ</literal>, which are no longer supported.
The new behavior is available in all builds.
</para>
</listitem>
<para>
Time stamp information can be accessed using functions <link
- linkend="functions-commit-timestamp"><function>pg_xact_commit_timestamp()</></>
- and <function>pg_last_committed_xact()</>.
+ linkend="functions-commit-timestamp"><function>pg_xact_commit_timestamp()</function></link>
+ and <function>pg_last_committed_xact()</function>.
</para>
</listitem>
-->
<para>
Allow <xref linkend="guc-local-preload-libraries"> to be set
- by <command>ALTER ROLE SET</> (Peter Eisentraut, Kyotaro Horiguchi)
+ by <command>ALTER ROLE SET</command> (Peter Eisentraut, Kyotaro Horiguchi)
</para>
</listitem>
2015-04-03 [a75fb9b] Alvaro..: Have autovacuum workers listen to SIGHUP, too
-->
<para>
- Allow <link linkend="autovacuum">autovacuum workers</>
+ Allow <link linkend="autovacuum">autovacuum workers</link>
to respond to configuration parameter changes during a run
(Michael Paquier)
</para>
This means that assertions can no longer be turned
off if they were enabled at compile time, allowing for more
efficient code optimization. This change also removes the <link
- linkend="app-postgres-options">postgres</> <option>-A</> option.
+ linkend="app-postgres-options">postgres</link> <option>-A</option> option.
</para>
</listitem>
-->
<para>
Add system view <link
- linkend="view-pg-file-settings"><structname>pg_file_settings</></>
+ linkend="view-pg-file-settings"><structname>pg_file_settings</structname></link>
to show the contents of the server's configuration files
(Sawada Masahiko)
</para>
2015-05-14 [a486e35] Peter ..: Add pg_settings.pending_restart column
-->
<para>
- Add <structname>pending_restart</> to the system view <link
- linkend="view-pg-settings"><structname>pg_settings</></> to
+ Add <structname>pending_restart</structname> to the system view <link
+ linkend="view-pg-settings"><structname>pg_settings</structname></link> to
indicate a change has been made but will not take effect until a
database restart (Peter Eisentraut)
</para>
2014-09-02 [bd3b7a9] Fujii ..: Support ALTER SYSTEM RESET command.
-->
<para>
- Allow <link linkend="SQL-ALTERSYSTEM"><command>ALTER SYSTEM</></>
- values to be reset with <command>ALTER SYSTEM RESET</> (Vik
+ Allow <link linkend="sql-altersystem"><command>ALTER SYSTEM</command></link>
+ values to be reset with <command>ALTER SYSTEM RESET</command> (Vik
Fearing)
</para>
<para>
This command removes the specified setting
- from <filename>postgresql.auto.conf</>.
+ from <filename>postgresql.auto.conf</filename>.
</para>
</listitem>
-->
<para>
Create mechanisms for tracking
- the <link linkend="replication-origins">progress of replication</>,
+ the <link linkend="replication-origins">progress of replication</link>,
including methods for identifying the origin of individual changes
during logical replication (Andres Freund)
</para>
2015-03-15 [51c11a7] Andres..: Remove pause_at_recovery_target recovery.conf s..
-->
<para>
- Add <link linkend="recovery-config"><filename>recovery.conf</></>
+ Add <link linkend="recovery-config"><filename>recovery.conf</filename></link>
parameter <link
- linkend="recovery-target-action"><varname>recovery_target_action</></>
+ linkend="recovery-target-action"><varname>recovery_target_action</varname></link>
to control post-recovery activity (Petr Jelínek)
</para>
<para>
- This replaces the old parameter <varname>pause_at_recovery_target</>.
+ This replaces the old parameter <varname>pause_at_recovery_target</varname>.
</para>
</listitem>
-->
<para>
Add new <xref linkend="guc-archive-mode"> value
- <literal>always</> to allow standbys to always archive received
- <acronym>WAL</> files (Fujii Masao)
+ <literal>always</literal> to allow standbys to always archive received
+ <acronym>WAL</acronym> files (Fujii Masao)
</para>
</listitem>
<para>
Add configuration
parameter <xref linkend="guc-wal-retrieve-retry-interval"> to
- control <acronym>WAL</> read retry after failure
+ control <acronym>WAL</acronym> read retry after failure
(Alexey Vasiliev, Michael Paquier)
</para>
2015-03-11 [57aa5b2] Fujii ..: Add GUC to enable compression of full page imag..
-->
<para>
- Allow compression of full-page images stored in <acronym>WAL</>
+ Allow compression of full-page images stored in <acronym>WAL</acronym>
(Rahila Syed, Michael Paquier)
</para>
2015-05-08 [de76884] Heikki..: At promotion, archive last segment from old tim..
-->
<para>
- Archive <acronym>WAL</> files with suffix <literal>.partial</>
+ Archive <acronym>WAL</acronym> files with suffix <literal>.partial</literal>
during standby promotion (Heikki Linnakangas)
</para>
</listitem>
<para>
By default, replication commands, e.g. <link
- linkend="protocol-replication"><literal>IDENTIFY_SYSTEM</></>,
+ linkend="protocol-replication"><literal>IDENTIFY_SYSTEM</literal></link>,
are not logged, even when <xref linkend="guc-log-statement"> is set
- to <literal>all</>.
+ to <literal>all</literal>.
</para>
</listitem>
-->
<para>
Report the processes holding replication slots in <link
- linkend="view-pg-replication-slots"><structname>pg_replication_slots</></>
+ linkend="view-pg-replication-slots"><structname>pg_replication_slots</structname></link>
(Craig Ringer)
</para>
<para>
- The new output column is <structname>active_pid</>.
+ The new output column is <structname>active_pid</structname>.
</para>
</listitem>
2014-11-25 [b3fc672] Heikki..: Allow using connection URI in primary_conninfo.
-->
<para>
- Allow <filename>recovery.conf</>'s <link
- linkend="primary-conninfo"><varname>primary_conninfo</></> setting to
- use connection <acronym>URI</>s, e.g. <literal>postgres://</>
+ Allow <filename>recovery.conf</filename>'s <link
+ linkend="primary-conninfo"><varname>primary_conninfo</varname></link> setting to
+ use connection <acronym>URI</acronym>s, e.g. <literal>postgres://</literal>
(Alexander Shulgin)
</para>
</listitem>
2015-05-08 [2c8f483] Andres..: Represent columns requiring insert and update p..
-->
<para>
- Allow <link linkend="sql-on-conflict"><command>INSERT</></>s
+ Allow <link linkend="sql-on-conflict"><command>INSERT</command></link>s
that would generate constraint conflicts to be turned into
- <command>UPDATE</>s or ignored (Peter Geoghegan, Heikki
+ <command>UPDATE</command>s or ignored (Peter Geoghegan, Heikki
Linnakangas, Andres Freund)
</para>
<para>
- The syntax is <command>INSERT ... ON CONFLICT DO NOTHING/UPDATE</>.
+ The syntax is <command>INSERT ... ON CONFLICT DO NOTHING/UPDATE</command>.
This is the Postgres implementation of the popular
- <command>UPSERT</> command.
+ <command>UPSERT</command> command.
</para>
</listitem>
2015-05-16 [f3d3118] Andres..: Support GROUPING SETS, CUBE and ROLLUP.
-->
<para>
- Add <literal>GROUP BY</> analysis features <link
- linkend="queries-grouping-sets"><literal>GROUPING SETS</></>,
- <link linkend="queries-grouping-sets"><literal>CUBE</></> and
- <link linkend="queries-grouping-sets"><literal>ROLLUP</></>
+ Add <literal>GROUP BY</literal> analysis features <link
+ linkend="queries-grouping-sets"><literal>GROUPING SETS</literal></link>,
+ <link linkend="queries-grouping-sets"><literal>CUBE</literal></link> and
+ <link linkend="queries-grouping-sets"><literal>ROLLUP</literal></link>
(Andrew Gierth, Atri Sharma)
</para>
</listitem>
-->
<para>
Allow setting multiple target columns in
- an <link linkend="SQL-UPDATE"><command>UPDATE</></> from the result of
+ an <link linkend="sql-update"><command>UPDATE</command></link> from the result of
a single sub-SELECT (Tom Lane)
</para>
<para>
This is accomplished using the syntax <command>UPDATE tab SET
- (col1, col2, ...) = (SELECT ...)</>.
+ (col1, col2, ...) = (SELECT ...)</command>.
</para>
</listitem>
2014-10-07 [df630b0] Alvaro..: Implement SKIP LOCKED for row-level locks
-->
<para>
- Add <link linkend="SQL-SELECT"><command>SELECT</></> option
- <literal>SKIP LOCKED</> to skip locked rows (Thomas Munro)
+ Add <link linkend="sql-select"><command>SELECT</command></link> option
+ <literal>SKIP LOCKED</literal> to skip locked rows (Thomas Munro)
</para>
<para>
This does not throw an error for locked rows like
- <literal>NOWAIT</> does.
+ <literal>NOWAIT</literal> does.
</para>
</listitem>
2015-05-15 [f6d208d] Simon ..: TABLESAMPLE, SQL Standard and extensible
-->
<para>
- Add <link linkend="SQL-SELECT"><command>SELECT</></> option
- <literal>TABLESAMPLE</> to return a subset of a table (Petr
+ Add <link linkend="sql-select"><command>SELECT</command></link> option
+ <literal>TABLESAMPLE</literal> to return a subset of a table (Petr
Jelínek)
</para>
This feature supports the SQL-standard table sampling methods.
In addition, there are provisions
for <link linkend="tablesample-method">user-defined
- table sampling methods</>.
+ table sampling methods</link>.
</para>
</listitem>
-->
<para>
Add more details about sort ordering in <link
- linkend="SQL-EXPLAIN"><command>EXPLAIN</></> output (Marius Timmer,
+ linkend="sql-explain"><command>EXPLAIN</command></link> output (Marius Timmer,
Lukas Kreft, Arne Scheffer)
</para>
<para>
- Details include <literal>COLLATE</>, <literal>DESC</>,
- <literal>USING</>, and <literal>NULLS FIRST</><literal>/LAST</>.
+ Details include <literal>COLLATE</literal>, <literal>DESC</literal>,
+ <literal>USING</literal>, and <literal>NULLS FIRST</literal><literal>/LAST</literal>.
</para>
</listitem>
2014-12-18 [35192f0] Alvaro..: Have VACUUM log number of skipped pages due to ..
-->
<para>
- Make <link linkend="SQL-VACUUM"><command>VACUUM</></> log the
+ Make <link linkend="sql-vacuum"><command>VACUUM</command></link> log the
number of pages skipped due to pins (Jim Nasby)
</para>
</listitem>
2015-02-20 [d42358e] Alvaro..: Have TRUNCATE update pgstat tuple counters
-->
<para>
- Make <link linkend="SQL-TRUNCATE"><command>TRUNCATE</></> properly
- update the <literal>pg_stat</>* tuple counters (Alexander Shulgin)
+ Make <link linkend="sql-truncate"><command>TRUNCATE</command></link> properly
+ update the <literal>pg_stat</literal>* tuple counters (Alexander Shulgin)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><xref linkend="SQL-REINDEX"></title>
+ <title><xref linkend="sql-reindex"></title>
<itemizedlist>
2014-12-09 [fe263d1] Simon ..: REINDEX SCHEMA
-->
<para>
- Allow <command>REINDEX</> to reindex an entire schema using the
- <literal>SCHEMA</> option (Sawada Masahiko)
+ Allow <command>REINDEX</command> to reindex an entire schema using the
+ <literal>SCHEMA</literal> option (Sawada Masahiko)
</para>
</listitem>
2015-05-15 [ecd222e] Fujii ..: Support VERBOSE option in REINDEX command.
-->
<para>
- Add <literal>VERBOSE</> option to <command>REINDEX</> (Sawada
+ Add <literal>VERBOSE</literal> option to <command>REINDEX</command> (Sawada
Masahiko)
</para>
</listitem>
2014-12-09 [ae4e688] Simon ..: Silence REINDEX
-->
<para>
- Prevent <command>REINDEX DATABASE</> and <command>SCHEMA</>
- from outputting object names, unless <literal>VERBOSE</> is used
+ Prevent <command>REINDEX DATABASE</command> and <command>SCHEMA</command>
+ from outputting object names, unless <literal>VERBOSE</literal> is used
(Simon Riggs)
</para>
</listitem>
2015-04-09 [17d436d] Fujii ..: Remove obsolete FORCE option from REINDEX.
-->
<para>
- Remove obsolete <literal>FORCE</> option from <command>REINDEX</>
+ Remove obsolete <literal>FORCE</literal> option from <command>REINDEX</command>
(Fujii Masao)
</para>
</listitem>
2014-09-19 [491c029] Stephe..: Row-Level Security Policies (RLS)
-->
<para>
- Add <link linkend="ddl-rowsecurity">row-level security control</>
+ Add <link linkend="ddl-rowsecurity">row-level security control</link>
(Craig Ringer, KaiGai Kohei, Adam Brightwell, Dean Rasheed,
Stephen Frost)
</para>
<para>
This feature allows row-by-row control over which users can add,
modify, or even see rows in a table. This is controlled by new
- commands <link linkend="SQL-CREATEPOLICY"><command>CREATE</></>/<link
- linkend="SQL-ALTERPOLICY"><command>ALTER</></>/<link
- linkend="SQL-DROPPOLICY"><command>DROP POLICY</></> and <link
- linkend="SQL-ALTERTABLE"><command>ALTER TABLE ... ENABLE/DISABLE
- ROW SECURITY</></>.
+ commands <link linkend="sql-createpolicy"><command>CREATE</command></link>/<link
+ linkend="sql-alterpolicy"><command>ALTER</command></link>/<link
+ linkend="sql-droppolicy"><command>DROP POLICY</command></link> and <link
+ linkend="sql-altertable"><command>ALTER TABLE ... ENABLE/DISABLE
+ ROW SECURITY</command></link>.
</para>
</listitem>
<para>
Allow changing of the <acronym>WAL</acronym>
logging status of a table after creation with <link
- linkend="SQL-ALTERTABLE"><command>ALTER TABLE ... SET LOGGED /
- UNLOGGED</></> (Fabrízio de Royes Mello)
+ linkend="sql-altertable"><command>ALTER TABLE ... SET LOGGED /
+ UNLOGGED</command></link> (Fabrízio de Royes Mello)
</para>
</listitem>
2014-12-13 [e39b6f9] Andrew..: Add CINE option for CREATE TABLE AS and CREATE ..
-->
<para>
- Add <literal>IF NOT EXISTS</> clause to <link
- linkend="SQL-CREATETABLEAS"><command>CREATE TABLE AS</></>,
- <link linkend="SQL-CREATEINDEX"><command>CREATE INDEX</></>,
- <link linkend="SQL-CREATESEQUENCE"><command>CREATE SEQUENCE</></>,
- and <link linkend="SQL-CREATEMATERIALIZEDVIEW"><command>CREATE
- MATERIALIZED VIEW</></> (Fabrízio de Royes Mello)
+ Add <literal>IF NOT EXISTS</literal> clause to <link
+ linkend="sql-createtableas"><command>CREATE TABLE AS</command></link>,
+ <link linkend="sql-createindex"><command>CREATE INDEX</command></link>,
+ <link linkend="sql-createsequence"><command>CREATE SEQUENCE</command></link>,
+ and <link linkend="sql-creatematerializedview"><command>CREATE
+ MATERIALIZED VIEW</command></link> (Fabrízio de Royes Mello)
</para>
</listitem>
2015-03-24 [1d8198b] Bruce ..: Add support for ALTER TABLE IF EXISTS ... RENAM..
-->
<para>
- Add support for <literal>IF EXISTS</> to <link
- linkend="SQL-ALTERTABLE"><command>ALTER TABLE ... RENAME
- CONSTRAINT</></> (Bruce Momjian)
+ Add support for <literal>IF EXISTS</literal> to <link
+ linkend="sql-altertable"><command>ALTER TABLE ... RENAME
+ CONSTRAINT</command></link> (Bruce Momjian)
</para>
</listitem>
2015-03-09 [31eae60] Alvaro..: Allow CURRENT/SESSION_USER to be used in certai..
-->
<para>
- Allow some DDL commands to accept <literal>CURRENT_USER</>
- or <literal>SESSION_USER</>, meaning the current user or session
+ Allow some DDL commands to accept <literal>CURRENT_USER</literal>
+ or <literal>SESSION_USER</literal>, meaning the current user or session
user, in place of a specific user name (Kyotaro Horiguchi,
Álvaro Herrera)
</para>
<para>
This feature is now supported in
- <xref linkend="SQL-ALTERUSER">, <xref linkend="SQL-ALTERGROUP">,
- <xref linkend="SQL-ALTERROLE">, <xref linkend="SQL-GRANT">,
- and <command>ALTER <replaceable>object</> OWNER TO</> commands.
+ <xref linkend="sql-alteruser">, <xref linkend="sql-altergroup">,
+ <xref linkend="sql-alterrole">, <xref linkend="sql-grant">,
+ and <command>ALTER <replaceable>object</replaceable> OWNER TO</command> commands.
</para>
</listitem>
2014-12-23 [7eca575] Alvaro..: get_object_address: separate domain constraints..
-->
<para>
- Support comments on <link linkend="SQL-CREATEDOMAIN">domain
- constraints</> (Álvaro Herrera)
+ Support comments on <link linkend="sql-createdomain">domain
+ constraints</link> (Álvaro Herrera)
</para>
</listitem>
2015-05-11 [fa26424] Stephe..: Allow LOCK TABLE .. ROW EXCLUSIVE MODE with IN..
-->
<para>
- Allow <link linkend="SQL-LOCK"><command>LOCK TABLE ... ROW EXCLUSIVE
- MODE</></> for those with <command>INSERT</> privileges on the
+ Allow <link linkend="sql-lock"><command>LOCK TABLE ... ROW EXCLUSIVE
+ MODE</command></link> for those with <command>INSERT</command> privileges on the
target table (Stephen Frost)
</para>
<para>
- Previously this command required <command>UPDATE</>, <command>DELETE</>,
- or <command>TRUNCATE</> privileges.
+ Previously this command required <command>UPDATE</command>, <command>DELETE</command>,
+ or <command>TRUNCATE</command> privileges.
</para>
</listitem>
2015-03-23 [e5f455f] Tom Lane: Apply table and domain CHECK constraints in nam.
-->
<para>
- Apply table and domain <literal>CHECK</> constraints in order by name
+ Apply table and domain <literal>CHECK</literal> constraints in order by name
(Tom Lane)
</para>
-->
<para>
Allow <link
- linkend="SQL-CREATEDATABASE"><command>CREATE</></>/<link
- linkend="SQL-ALTERDATABASE"><command>ALTER DATABASE</></>
- to manipulate <structname>datistemplate</> and
- <structname>datallowconn</> (Vik Fearing)
+ linkend="sql-createdatabase"><command>CREATE</command></link>/<link
+ linkend="sql-alterdatabase"><command>ALTER DATABASE</command></link>
+ to manipulate <structname>datistemplate</structname> and
+ <structname>datallowconn</structname> (Vik Fearing)
</para>
<para>
This allows these per-database settings to be
changed without manually modifying the <link
- linkend="catalog-pg-database"><structname>pg_database</></>
+ linkend="catalog-pg-database"><structname>pg_database</structname></link>
system catalog.
</para>
</listitem>
2014-07-10 [59efda3] Tom Lane: Implement IMPORT FOREIGN SCHEMA.
-->
<para>
- Add support for <xref linkend="SQL-IMPORTFOREIGNSCHEMA">
+ Add support for <xref linkend="sql-importforeignschema">
(Ronan Dunklau, Michael Paquier, Tom Lane)
</para>
2014-12-17 [fc2ac1f] Tom Lane: Allow CHECK constraints to be placed on foreign..
-->
<para>
- Allow <literal>CHECK</> constraints to be placed on foreign tables
+ Allow <literal>CHECK</literal> constraints to be placed on foreign tables
(Shigeru Hanada, Etsuro Fujita)
</para>
and are not enforced locally. However, they are assumed to hold for
purposes of query optimization, such
as <link linkend="ddl-partitioning-constraint-exclusion">constraint
- exclusion</>.
+ exclusion</link>.
</para>
</listitem>
<para>
To let this work naturally, foreign tables are now allowed to have
check constraints marked as not valid, and to set storage
- and <type>OID</> characteristics, even though these operations are
+ and <type>OID</type> characteristics, even though these operations are
effectively no-ops for a foreign table.
</para>
</listitem>
2015-05-11 [b488c58] Alvaro..: Allow on-the-fly capture of DDL event details
-->
<para>
- Whenever a <literal>ddl_command_end</> event trigger is installed,
- capture details of <acronym>DDL</> activity for it to inspect
+ Whenever a <literal>ddl_command_end</literal> event trigger is installed,
+ capture details of <acronym>DDL</acronym> activity for it to inspect
(Álvaro Herrera)
</para>
<para>
This information is available through a set-returning function <link
- linkend="pg-event-trigger-ddl-command-end-functions"><function>pg_event_trigger_ddl_commands()</></link>,
+ linkend="pg-event-trigger-ddl-command-end-functions"><function>pg_event_trigger_ddl_commands()</function></link>,
or by inspection of C data structures if that function doesn't
provide enough detail.
</para>
-->
<para>
Allow event triggers on table rewrites caused by <link
- linkend="SQL-ALTERTABLE"><command>ALTER TABLE</></> (Dimitri
+ linkend="sql-altertable"><command>ALTER TABLE</command></link> (Dimitri
Fontaine)
</para>
</listitem>
-->
<para>
Add event trigger support for database-level <link
- linkend="SQL-COMMENT"><command>COMMENT</></>, <link
- linkend="SQL-SECURITY-LABEL"><command>SECURITY LABEL</></>,
- and <link linkend="SQL-GRANT"><command>GRANT</></>/<link
- linkend="SQL-REVOKE"><command>REVOKE</></> (Álvaro Herrera)
+ linkend="sql-comment"><command>COMMENT</command></link>, <link
+ linkend="sql-security-label"><command>SECURITY LABEL</command></link>,
+ and <link linkend="sql-grant"><command>GRANT</command></link>/<link
+ linkend="sql-revoke"><command>REVOKE</command></link> (Álvaro Herrera)
</para>
</listitem>
-->
<para>
Add columns to the output of <link
- linkend="pg-event-trigger-sql-drop-functions"><function>pg_event_trigger_dropped_objects</></>
+ linkend="pg-event-trigger-sql-drop-functions"><function>pg_event_trigger_dropped_objects</function></link>
(Álvaro Herrera)
</para>
2014-09-09 [57b1085] Peter ..: Allow empty content in xml type
-->
<para>
- Allow the <link linkend="datatype-xml"><type>xml</></> data type
+ Allow the <link linkend="datatype-xml"><type>xml</type></link> data type
to accept empty or all-whitespace content values (Peter Eisentraut)
</para>
<para>
- This is required by the <acronym>SQL</>/<acronym>XML</>
+ This is required by the <acronym>SQL</acronym>/<acronym>XML</acronym>
specification.
</para>
</listitem>
2014-10-21 [6f04368] Peter ..: Allow input format xxxx-xxxx-xxxx for macaddr ..
-->
<para>
- Allow <link linkend="datatype-macaddr"><type>macaddr</></> input
- using the format <literal>xxxx-xxxx-xxxx</> (Herwin Weststrate)
+ Allow <link linkend="datatype-macaddr"><type>macaddr</type></link> input
+ using the format <literal>xxxx-xxxx-xxxx</literal> (Herwin Weststrate)
</para>
</listitem>
-->
<para>
Disallow non-SQL-standard syntax for <link
- linkend="datatype-interval-input"><type>interval</></link> with
+ linkend="datatype-interval-input"><type>interval</type></link> with
both precision and field specifications (Bruce Momjian)
</para>
<para>
Per the standard, such type specifications should be written as,
- for example, <literal>INTERVAL MINUTE TO SECOND(2)</>.
- <productname>PostgreSQL</> formerly allowed this to be written as
- <literal>INTERVAL(2) MINUTE TO SECOND</>, but it must now be
+ for example, <literal>INTERVAL MINUTE TO SECOND(2)</literal>.
+ <productname>PostgreSQL</productname> formerly allowed this to be written as
+ <literal>INTERVAL(2) MINUTE TO SECOND</literal>, but it must now be
written in the standard way.
</para>
</listitem>
-->
<para>
Add selectivity estimators for <link
- linkend="datatype-inet"><type>inet</></>/<link
- linkend="datatype-cidr"><type>cidr</></> operators and improve
+ linkend="datatype-inet"><type>inet</type></link>/<link
+ linkend="datatype-cidr"><type>cidr</type></link> operators and improve
estimators for text search functions (Emre Hasegeli, Tom Lane)
</para>
</listitem>
-->
<para>
Add data
- types <link linkend="datatype-oid-table"><type>regrole</></link>
- and <link linkend="datatype-oid-table"><type>regnamespace</></link>
- to simplify entering and pretty-printing the <type>OID</> of a role
+ types <link linkend="datatype-oid-table"><type>regrole</type></link>
+ and <link linkend="datatype-oid-table"><type>regnamespace</type></link>
+ to simplify entering and pretty-printing the <type>OID</type> of a role
or namespace (Kyotaro Horiguchi)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><link linkend="datatype-json"><acronym>JSON</></link></title>
+ <title><link linkend="datatype-json"><acronym>JSON</acronym></link></title>
<itemizedlist>
2015-05-31 [37def42] Andrew..: Rename jsonb_replace to jsonb_set and allow it ..
-->
<para>
- Add <type>jsonb</> functions <link
- linkend="functions-json-processing-table"><function>jsonb_set()</></>
+ Add <type>jsonb</type> functions <link
+ linkend="functions-json-processing-table"><function>jsonb_set()</function></link>
and <link
- linkend="functions-json-processing-table"><function>jsonb_pretty()</></>
+ linkend="functions-json-processing-table"><function>jsonb_pretty()</function></link>
(Dmitry Dolgov, Andrew Dunstan, Petr Jelínek)
</para>
</listitem>
2014-12-12 [7e354ab] Andrew..: Add several generator functions for jsonb that ..
-->
<para>
- Add <type>jsonb</> generator functions <link
- linkend="functions-json-creation-table"><function>to_jsonb()</></>,
+ Add <type>jsonb</type> generator functions <link
+ linkend="functions-json-creation-table"><function>to_jsonb()</function></link>,
<link
- linkend="functions-json-creation-table"><function>jsonb_object()</></>,
+ linkend="functions-json-creation-table"><function>jsonb_object()</function></link>,
<link
- linkend="functions-json-creation-table"><function>jsonb_build_object()</></>,
+ linkend="functions-json-creation-table"><function>jsonb_build_object()</function></link>,
<link
- linkend="functions-json-creation-table"><function>jsonb_build_array()</></>,
+ linkend="functions-json-creation-table"><function>jsonb_build_array()</function></link>,
<link
- linkend="functions-aggregate-table"><function>jsonb_agg()</></>,
+ linkend="functions-aggregate-table"><function>jsonb_agg()</function></link>,
and <link
- linkend="functions-aggregate-table"><function>jsonb_object_agg()</></>
+ linkend="functions-aggregate-table"><function>jsonb_object_agg()</function></link>
(Andrew Dunstan)
</para>
<para>
- Equivalent functions already existed for type <type>json</>.
+ Equivalent functions already existed for type <type>json</type>.
</para>
</listitem>
-->
<para>
Reduce casting requirements to/from <link
- linkend="datatype-json"><type>json</></> and <link
- linkend="datatype-json"><type>jsonb</></> (Tom Lane)
+ linkend="datatype-json"><type>json</type></link> and <link
+ linkend="datatype-json"><type>jsonb</type></link> (Tom Lane)
</para>
</listitem>
2015-06-11 [908e234] Andrew..: Rename jsonb - text[] operator to #- to avoid a..
-->
<para>
- Allow <type>text</>, <type>text</> array, and <type>integer</>
- values to be <link linkend="functions-jsonb-op-table">subtracted</>
- from <type>jsonb</> documents (Dmitry Dolgov, Andrew Dunstan)
+ Allow <type>text</type>, <type>text</type> array, and <type>integer</type>
+ values to be <link linkend="functions-jsonb-op-table">subtracted</link>
+ from <type>jsonb</type> documents (Dmitry Dolgov, Andrew Dunstan)
</para>
</listitem>
2015-05-12 [c694701] Andrew..: Additional functions and operators for jsonb
-->
<para>
- Add <type>jsonb</> <link
- linkend="functions-jsonb-op-table"><literal>||</></> operator
+ Add <type>jsonb</type> <link
+ linkend="functions-jsonb-op-table"><literal>||</literal></link> operator
(Dmitry Dolgov, Andrew Dunstan)
</para>
</listitem>
-->
<para>
Add <link
- linkend="functions-json-processing-table"><function>json_strip_nulls()</></>
+ linkend="functions-json-processing-table"><function>json_strip_nulls()</function></link>
and <link
- linkend="functions-json-processing-table"><function>jsonb_strip_nulls()</></>
+ linkend="functions-json-processing-table"><function>jsonb_strip_nulls()</function></link>
functions to remove JSON null values from documents
(Andrew Dunstan)
</para>
2014-11-11 [1871c89] Fujii ..: Add generate_series(numeric, numeric).
-->
<para>
- Add <link linkend="functions-srf"><function>generate_series()</></>
- for <type>numeric</> values (Plato Malugin)
+ Add <link linkend="functions-srf"><function>generate_series()</function></link>
+ for <type>numeric</type> values (Plato Malugin)
</para>
</listitem>
-->
<para>
Allow <link
- linkend="functions-aggregate-table"><function>array_agg()</></> and
- <function>ARRAY()</> to take arrays as inputs (Ali Akbar, Tom Lane)
+ linkend="functions-aggregate-table"><function>array_agg()</function></link> and
+ <function>ARRAY()</function> to take arrays as inputs (Ali Akbar, Tom Lane)
</para>
</listitem>
-->
<para>
Add functions <link
- linkend="array-functions-table"><function>array_position()</></>
+ linkend="array-functions-table"><function>array_position()</function></link>
and <link
- linkend="array-functions-table"><function>array_positions()</></>
+ linkend="array-functions-table"><function>array_positions()</function></link>
to return subscripts of array values (Pavel Stehule)
</para>
</listitem>
2014-12-15 [4520ba6] Heikki..: Add point <-> polygon distance operator.
-->
<para>
- Add a <type>point</>-to-<type>polygon</> distance operator
- <link linkend="functions-geometry-op-table"><-></>
+ Add a <type>point</type>-to-<type>polygon</type> distance operator
+ <link linkend="functions-geometry-op-table"><-></link>
(Alexander Korotkov)
</para>
</listitem>
-->
<para>
Allow multibyte characters as escapes in <link
- linkend="functions-similarto-regexp"><literal>SIMILAR TO</></>
- and <link linkend="functions-string-sql"><literal>SUBSTRING</></>
+ linkend="functions-similarto-regexp"><literal>SIMILAR TO</literal></link>
+ and <link linkend="functions-string-sql"><literal>SUBSTRING</literal></link>
(Jeff Davis)
</para>
-->
<para>
Add a <link
- linkend="functions-math-func-table"><function>width_bucket()</></>
+ linkend="functions-math-func-table"><function>width_bucket()</function></link>
variant that supports any sortable data type and non-uniform bucket
widths (Petr Jelínek)
</para>
2015-06-28 [cb2acb1] Heikki..: Add missing_ok option to the SQL functions for..
-->
<para>
- Add an optional <replaceable>missing_ok</> argument to <link
- linkend="functions-admin-genfile-table"><function>pg_read_file()</></>
+ Add an optional <replaceable>missing_ok</replaceable> argument to <link
+ linkend="functions-admin-genfile-table"><function>pg_read_file()</function></link>
and related functions (Michael Paquier, Heikki Linnakangas)
</para>
</listitem>
2015-03-10 [865f14a] Robert..: Allow named parameters to be specified using =>..
-->
<para>
- Allow <link linkend="sql-syntax-calling-funcs"><literal>=></></>
+ Allow <link linkend="sql-syntax-calling-funcs"><literal>=></literal></link>
to specify named parameters in function calls (Pavel Stehule)
</para>
<para>
- Previously only <literal>:=</> could be used. This requires removing
- the possibility for <literal>=></> to be a user-defined operator.
- Creation of user-defined <literal>=></> operators has been issuing
+ Previously only <literal>:=</literal> could be used. This requires removing
+ the possibility for <literal>=></literal> to be a user-defined operator.
+ Creation of user-defined <literal>=></literal> operators has been issuing
warnings since PostgreSQL 9.0.
</para>
</listitem>
2015-03-25 [06bf0dd] Tom Lane: Upgrade src/port/rint.c to be POSIX-compliant.
-->
<para>
- Add <acronym>POSIX</>-compliant rounding for platforms that use
+ Add <acronym>POSIX</acronym>-compliant rounding for platforms that use
PostgreSQL-supplied rounding functions (Pedro Gimeno Fortea)
</para>
</listitem>
-->
<para>
Add function <link
- linkend="functions-info-object-table"><function>pg_get_object_address()</></>
- to return <type>OID</>s that uniquely
+ linkend="functions-info-object-table"><function>pg_get_object_address()</function></link>
+ to return <type>OID</type>s that uniquely
identify an object, and function <link
- linkend="functions-info-object-table"><function>pg_identify_object_as_address()</></>
- to return object information based on <type>OID</>s (Álvaro
+ linkend="functions-info-object-table"><function>pg_identify_object_as_address()</function></link>
+ to return object information based on <type>OID</type>s (Álvaro
Herrera)
</para>
</listitem>
-->
<para>
Loosen security checks for viewing queries in <link
- linkend="pg-stat-activity-view"><structname>pg_stat_activity</></>,
+ linkend="pg-stat-activity-view"><structname>pg_stat_activity</structname></link>,
executing <link
- linkend="functions-admin-signal-table"><function>pg_cancel_backend()</></>,
+ linkend="functions-admin-signal-table"><function>pg_cancel_backend()</function></link>,
and executing <link
- linkend="functions-admin-signal-table"><function>pg_terminate_backend()</></>
+ linkend="functions-admin-signal-table"><function>pg_terminate_backend()</function></link>
(Stephen Frost)
</para>
-->
<para>
Add <link
- linkend="monitoring-stats-funcs-table"><function>pg_stat_get_snapshot_timestamp()</></>
+ linkend="monitoring-stats-funcs-table"><function>pg_stat_get_snapshot_timestamp()</function></link>
to output the time stamp of the statistics snapshot (Matt Kelly)
</para>
-->
<para>
Add <link
- linkend="vacuum-for-multixact-wraparound"><function>mxid_age()</></>
+ linkend="vacuum-for-multixact-wraparound"><function>mxid_age()</function></link>
to compute multi-xid age (Bruce Momjian)
</para>
</listitem>
2014-08-28 [6c40f83] Tom Lane: Add min and max aggregates for inet/cidr data t..
-->
<para>
- Add <function>min()</>/<function>max()</> aggregates
- for <link linkend="datatype-inet"><type>inet</></>/<link
- linkend="datatype-cidr"><type>cidr</></> data types (Haribabu
+ Add <function>min()</function>/<function>max()</function> aggregates
+ for <link linkend="datatype-inet"><type>inet</type></link>/<link
+ linkend="datatype-cidr"><type>cidr</type></link> data types (Haribabu
Kommi)
</para>
</listitem>
-->
<para>
Improve support for composite types in <link
- linkend="plpython"><application>PL/Python</></> (Ed Behn, Ronan
+ linkend="plpython"><application>PL/Python</application></link> (Ed Behn, Ronan
Dunklau)
</para>
<para>
- This allows <application>PL/Python</> functions to return arrays
+ This allows <application>PL/Python</application> functions to return arrays
of composite types.
</para>
</listitem>
-->
<para>
Reduce lossiness of <link
- linkend="plpython"><application>PL/Python</></> floating-point value
+ linkend="plpython"><application>PL/Python</application></link> floating-point value
conversions (Marko Kreen)
</para>
</listitem>
2015-04-26 [cac7658] Peter ..: Add transforms feature
-->
<para>
- Allow specification of conversion routines between <acronym>SQL</>
+ Allow specification of conversion routines between <acronym>SQL</acronym>
data types and data types of procedural languages (Peter Eisentraut)
</para>
<para>
This change adds new commands <link
- linkend="SQL-CREATETRANSFORM"><command>CREATE</></>/<link
- linkend="SQL-DROPTRANSFORM"><command>DROP TRANSFORM</></>.
+ linkend="sql-createtransform"><command>CREATE</command></link>/<link
+ linkend="sql-droptransform"><command>DROP TRANSFORM</command></link>.
This also adds optional transformations between the <link
- linkend="hstore"><application>hstore</></> and <link
- linkend="ltree"><application>ltree</></> types to/from <link
- linkend="plperl"><application>PL/Perl</></> and <link
- linkend="plpython"><application>PL/Python</></>.
+ linkend="hstore"><application>hstore</application></link> and <link
+ linkend="ltree"><application>ltree</application></link> types to/from <link
+ linkend="plperl"><application>PL/Perl</application></link> and <link
+ linkend="plpython"><application>PL/Python</application></link>.
</para>
</listitem>
2015-02-16 [9e3ad1a] Tom Lane: Use fast path in plpgsql's RETURN/RETURN NEXT i..
-->
<para>
- Improve <link linkend="plpgsql"><application>PL/pgSQL</></> array
+ Improve <link linkend="plpgsql"><application>PL/pgSQL</application></link> array
performance (Tom Lane)
</para>
</listitem>
2015-03-25 [a4847fc] Tom Lane: Add an ASSERT statement in plpgsql.
-->
<para>
- Add an <link linkend="plpgsql-statements-assert"><command>ASSERT</></>
- statement in <application>PL/pgSQL</> (Pavel Stehule)
+ Add an <link linkend="plpgsql-statements-assert"><command>ASSERT</command></link>
+ statement in <application>PL/pgSQL</application> (Pavel Stehule)
</para>
</listitem>
2014-11-25 [bb1b8f6] Tom Lane: De-reserve most statement-introducing keywords ..
-->
<para>
- Allow more <link linkend="plpgsql"><application>PL/pgSQL</></>
+ Allow more <link linkend="plpgsql"><application>PL/pgSQL</application></link>
keywords to be used as identifiers (Tom Lane)
</para>
</listitem>
-->
<para>
Move <link
- linkend="pgarchivecleanup"><application>pg_archivecleanup</></>,
- <link linkend="pgtestfsync"><application>pg_test_fsync</></>,
- <link linkend="pgtesttiming"><application>pg_test_timing</></>,
- and <link linkend="pgwaldump"><application>pg_xlogdump</></>
- from <filename>contrib</> to <filename>src/bin</> (Peter Eisentraut)
+ linkend="pgarchivecleanup"><application>pg_archivecleanup</application></link>,
+ <link linkend="pgtestfsync"><application>pg_test_fsync</application></link>,
+ <link linkend="pgtesttiming"><application>pg_test_timing</application></link>,
+ and <link linkend="pgwaldump"><application>pg_xlogdump</application></link>
+ from <filename>contrib</filename> to <filename>src/bin</filename> (Peter Eisentraut)
</para>
<para>
2015-03-23 [61081e7] Heikki..: Add pg_rewind, for re-synchronizing a master se..
-->
<para>
- Add <link linkend="app-pgrewind"><application>pg_rewind</></>,
+ Add <link linkend="app-pgrewind"><application>pg_rewind</application></link>,
which allows re-synchronizing a master server after failback
(Heikki Linnakangas)
</para>
-->
<para>
Allow <link
- linkend="app-pgreceivewal"><application>pg_receivexlog</></>
+ linkend="app-pgreceivewal"><application>pg_receivexlog</application></link>
to manage physical replication slots (Michael Paquier)
</para>
<para>
- This is controlled via new <option>--create-slot</> and
- <option>--drop-slot</> options.
+ This is controlled via new <option>--create-slot</option> and
+ <option>--drop-slot</option> options.
</para>
</listitem>
-->
<para>
Allow <link
- linkend="app-pgreceivewal"><application>pg_receivexlog</></>
- to synchronously flush <acronym>WAL</> to storage using new
- <option>--synchronous</> option (Furuya Osamu, Fujii Masao)
+ linkend="app-pgreceivewal"><application>pg_receivexlog</application></link>
+ to synchronously flush <acronym>WAL</acronym> to storage using new
+ <option>--synchronous</option> option (Furuya Osamu, Fujii Masao)
</para>
<para>
- Without this, <acronym>WAL</> files are fsync'ed only on close.
+ Without this, <acronym>WAL</acronym> files are fsync'ed only on close.
</para>
</listitem>
2015-01-23 [a179232] Alvaro..: vacuumdb: enable parallel mode
-->
<para>
- Allow <link linkend="APP-VACUUMDB"><application>vacuumdb</></> to
- vacuum in parallel using new <option>--jobs</> option (Dilip Kumar)
+ Allow <link linkend="app-vacuumdb"><application>vacuumdb</application></link> to
+ vacuum in parallel using new <option>--jobs</option> option (Dilip Kumar)
</para>
</listitem>
2015-11-12 [5094da9] Alvaro..: vacuumdb: don't prompt for passwords over and ..
-->
<para>
- In <link linkend="APP-VACUUMDB"><application>vacuumdb</></>, do not
+ In <link linkend="app-vacuumdb"><application>vacuumdb</application></link>, do not
prompt for the same password repeatedly when multiple connections
are necessary (Haribabu Kommi, Michael Paquier)
</para>
2015-05-15 [458a077] Fujii ..: Support ––verbose option in reindexdb.
-->
<para>
- Add <option>--verbose</> option to <link
- linkend="APP-REINDEXDB"><application>reindexdb</></> (Sawada
+ Add <option>--verbose</option> option to <link
+ linkend="app-reindexdb"><application>reindexdb</application></link> (Sawada
Masahiko)
</para>
</listitem>
2015-05-12 [72d422a] Andrew..: Map basebackup tablespaces using a tablespace_..
-->
<para>
- Make <link linkend="app-pgbasebackup"><application>pg_basebackup</></>
- use a tablespace mapping file when using <application>tar</> format,
+ Make <link linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
+ use a tablespace mapping file when using <application>tar</application> format,
to support symbolic links and file paths of 100+ characters in length
- on <systemitem class="osname">MS Windows</> (Amit Kapila)
+ on <systemitem class="osname">MS Windows</systemitem> (Amit Kapila)
</para>
</listitem>
2014-09-19 [bdd5726] Andres..: Add the capability to display summary statistic..
-->
<para>
- Add <link linkend="pgwaldump"><application>pg_xlogdump</></> option
- <option>--stats</> to display summary statistics (Abhijit Menon-Sen)
+ Add <link linkend="pgwaldump"><application>pg_xlogdump</application></link> option
+ <option>--stats</option> to display summary statistics (Abhijit Menon-Sen)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><xref linkend="APP-PSQL"></title>
+ <title><xref linkend="app-psql"></title>
<itemizedlist>
2015-03-31 [9d9991c] Bruce ..: psql: add asciidoc output format
-->
<para>
- Allow <application>psql</> to produce AsciiDoc output (Szymon Guz)
+ Allow <application>psql</application> to produce AsciiDoc output (Szymon Guz)
</para>
</listitem>
2014-07-10 [5b214c5] Fujii ..: Add new ECHO mode 'errors' that displays only ..
-->
<para>
- Add an <literal>errors</> mode that displays only failed commands
- to <application>psql</>'s <varname>ECHO</> variable
+ Add an <literal>errors</literal> mode that displays only failed commands
+ to <application>psql</application>'s <varname>ECHO</varname> variable
(Pavel Stehule)
</para>
<para>
- This behavior can also be selected with <application>psql</>'s
- <option>-b</> option.
+ This behavior can also be selected with <application>psql</application>'s
+ <option>-b</option> option.
</para>
</listitem>
-->
<para>
Provide separate column, header, and border linestyle control
- in <application>psql</>'s unicode linestyle (Pavel Stehule)
+ in <application>psql</application>'s unicode linestyle (Pavel Stehule)
</para>
<para>
Single or double lines are supported; the default is
- <literal>single</>.
+ <literal>single</literal>.
</para>
</listitem>
2014-09-02 [51bb795] Andres..: Add psql PROMPT variable showing which line of ..
-->
<para>
- Add new option <literal>%l</> in <application>psql</>'s <link
- linkend="APP-PSQL-variables"><envar>PROMPT</></> variables
+ Add new option <literal>%l</literal> in <application>psql</application>'s <link
+ linkend="app-psql-variables"><envar>PROMPT</envar></link> variables
to display the current multiline statement line number
(Sawada Masahiko)
</para>
2015-03-28 [7655f4c] Andrew..: Add a pager_min_lines setting to psql
-->
<para>
- Add <literal>\pset</> option <link
- linkend="APP-PSQL-meta-commands"><varname>pager_min_lines</></>
+ Add <literal>\pset</literal> option <link
+ linkend="app-psql-meta-commands"><varname>pager_min_lines</varname></link>
to control pager invocation (Andrew Dunstan)
</para>
</listitem>
2014-11-21 [4077fb4] Andrew..: Fix an error in psql that overcounted output l..
-->
<para>
- Improve <application>psql</> line counting used when deciding
+ Improve <application>psql</application> line counting used when deciding
to invoke the pager (Andrew Dunstan)
</para>
</listitem>
2015-12-08 [e90371d] Tom Lane: Make failure to open psql log-file fatal.
-->
<para>
- <application>psql</> now fails if the file specified by
- an <option>--output</> or <option>--log-file</> switch cannot be
+ <application>psql</application> now fails if the file specified by
+ an <option>--output</option> or <option>--log-file</option> switch cannot be
written (Tom Lane, Daniel Vérité)
</para>
2014-07-12 [bd40951] Andres..: Minimal psql tab completion support for SET se..
-->
<para>
- Add <application>psql</> tab completion when setting the
+ Add <application>psql</application> tab completion when setting the
<xref linkend="guc-search-path"> variable (Jeff Janes)
</para>
2014-06-23 [631e7f6] Heikki..: Improve tab-completion of DROP and ALTER ENABLE..
-->
<para>
- Improve <application>psql</>'s tab completion for triggers and rules
+ Improve <application>psql</application>'s tab completion for triggers and rules
(Andreas Karlsson)
</para>
</listitem>
</itemizedlist>
<sect5>
- <title><link linkend="APP-PSQL-meta-commands">Backslash Commands</link></title>
+ <title><link linkend="app-psql-meta-commands">Backslash Commands</link></title>
<itemizedlist>
2014-09-10 [07c8651] Andres..: Add new psql help topics, accessible to both..
-->
<para>
- Add <application>psql</> <command>\?</> help sections
- <literal>variables</> and <literal>options</> (Pavel Stehule)
+ Add <application>psql</application> <command>\?</command> help sections
+ <literal>variables</literal> and <literal>options</literal> (Pavel Stehule)
</para>
<para>
- <literal>\? variables</> shows <application>psql</>'s special
- variables and <literal>\? options</> shows the command-line options.
- <command>\? commands</> shows the meta-commands, which is the
+ <literal>\? variables</literal> shows <application>psql</application>'s special
+ variables and <literal>\? options</literal> shows the command-line options.
+ <command>\? commands</command> shows the meta-commands, which is the
traditional output and remains the default. These help displays
can also be obtained with the command-line
- option <literal>--help=<replaceable>section</></literal>.
+ option <literal>--help=<replaceable>section</replaceable></literal>.
</para>
</listitem>
2014-07-14 [ee80f04] Alvaro..: psql: Show tablespace size in \db+
-->
<para>
- Show tablespace size in <application>psql</>'s <literal>\db+</>
+ Show tablespace size in <application>psql</application>'s <literal>\db+</literal>
(Fabrízio de Royes Mello)
</para>
</listitem>
2015-04-09 [a6f3c1f] Magnus..: Show owner of types in psql \dT+
-->
<para>
- Show data type owners in <application>psql</>'s <literal>\dT+</>
+ Show data type owners in <application>psql</application>'s <literal>\dT+</literal>
(Magnus Hagander)
</para>
</listitem>
2014-09-04 [f6f654f] Fujii ..: Allow \watch to display query execution time if..
-->
<para>
- Allow <application>psql</>'s <command>\watch</> to output
- <command>\timing</> information (Fujii Masao)
+ Allow <application>psql</application>'s <command>\watch</command> to output
+ <command>\timing</command> information (Fujii Masao)
</para>
<para>
- Also prevent <option>--echo-hidden</> from echoing
- <command>\watch</> queries, since that is generally unwanted.
+ Also prevent <option>--echo-hidden</option> from echoing
+ <command>\watch</command> queries, since that is generally unwanted.
</para>
</listitem>
2014-11-22 [eca2b9b] Andrew..: Rework echo_hidden for \sf and \ef from commit ..
-->
<para>
- Make <application>psql</>'s <literal>\sf</> and <literal>\ef</>
- commands honor <envar>ECHO_HIDDEN</> (Andrew Dunstan)
+ Make <application>psql</application>'s <literal>\sf</literal> and <literal>\ef</literal>
+ commands honor <envar>ECHO_HIDDEN</envar> (Andrew Dunstan)
</para>
</listitem>
2014-08-12 [e15c4ab] Fujii ..: Add tab-completion for \unset and valid setting..
-->
<para>
- Improve <application>psql</> tab completion for <command>\set</>,
- <command>\unset</>, and <literal>:variable</> names (Pavel
+ Improve <application>psql</application> tab completion for <command>\set</command>,
+ <command>\unset</command>, and <literal>:variable</literal> names (Pavel
Stehule)
</para>
</listitem>
-->
<para>
Allow tab completion of role names
- in <application>psql</> <literal>\c</> commands (Ian Barwick)
+ in <application>psql</application> <literal>\c</literal> commands (Ian Barwick)
</para>
</listitem>
</sect4>
<sect4>
- <title><xref linkend="APP-PGDUMP"></title>
+ <title><xref linkend="app-pgdump"></title>
<itemizedlist>
2014-11-17 [be1cc8f] Simon ..: Add pg_dump ––snapshot option
-->
<para>
- Allow <application>pg_dump</> to share a snapshot taken by another
- session using <option>--snapshot</> (Simon Riggs, Michael Paquier)
+ Allow <application>pg_dump</application> to share a snapshot taken by another
+ session using <option>--snapshot</option> (Simon Riggs, Michael Paquier)
</para>
<para>
The remote snapshot must have been exported by
- <function>pg_export_snapshot()</> or logical replication slot
+ <function>pg_export_snapshot()</function> or logical replication slot
creation. This can be used to share a consistent snapshot
- across multiple <application>pg_dump</> processes.
+ across multiple <application>pg_dump</application> processes.
</para>
</listitem>
2014-07-07 [7700597] Tom Lane: In pg_dump, show server and pg_dump versions w..
-->
<para>
- Make <application>pg_dump</> always print the server and
- <application>pg_dump</> versions (Jing Wang)
+ Make <application>pg_dump</application> always print the server and
+ <application>pg_dump</application> versions (Jing Wang)
</para>
<para>
Previously, version information was only printed in
- <option>--verbose</> mode.
+ <option>--verbose</option> mode.
</para>
</listitem>
2015-06-04 [232cd63] Fujii ..: Remove -i/-ignore-version option from pg_dump..
-->
<para>
- Remove the long-ignored <option>-i</>/<option>--ignore-version</>
- option from <application>pg_dump</>, <application>pg_dumpall</>,
- and <application>pg_restore</> (Fujii Masao)
+ Remove the long-ignored <option>-i</option>/<option>--ignore-version</option>
+ option from <application>pg_dump</application>, <application>pg_dumpall</application>,
+ and <application>pg_restore</application> (Fujii Masao)
</para>
</listitem>
2014-08-25 [ebe30ad] Bruce ..: pg_ctl, pg_upgrade: allow multiple -o/-O opti..
-->
<para>
- Support multiple <application>pg_ctl</> <option>-o</> options,
+ Support multiple <application>pg_ctl</application> <option>-o</option> options,
concatenating their values (Bruce Momjian)
</para>
</listitem>
2014-07-17 [c0e4520] Magnus..: Add option to pg_ctl to choose event source for..
-->
<para>
- Allow control of <application>pg_ctl</>'s event source logging
- on <systemitem class="osname">MS Windows</> (MauMau)
+ Allow control of <application>pg_ctl</application>'s event source logging
+ on <systemitem class="osname">MS Windows</systemitem> (MauMau)
</para>
<para>
- This only controls <application>pg_ctl</>, not the server, which
- has separate settings in <filename>postgresql.conf</>.
+ This only controls <application>pg_ctl</application>, not the server, which
+ has separate settings in <filename>postgresql.conf</filename>.
</para>
</listitem>
-->
<para>
If the server's listen address is set to a wildcard value
- (<literal>0.0.0.0</> in IPv4 or <literal>::</> in IPv6), connect via
+ (<literal>0.0.0.0</literal> in IPv4 or <literal>::</literal> in IPv6), connect via
the loopback address rather than trying to use the wildcard address
literally (Kondo Yuta)
</para>
<para>
This fix primarily affects Windows, since on other platforms
- <application>pg_ctl</> will prefer to use a Unix-domain socket.
+ <application>pg_ctl</application> will prefer to use a Unix-domain socket.
</para>
</listitem>
2015-04-14 [9fa8b0e] Peter ..: Move pg_upgrade from contrib/ to src/bin/
-->
<para>
- Move <application>pg_upgrade</> from <filename>contrib</> to
- <filename>src/bin</> (Peter Eisentraut)
+ Move <application>pg_upgrade</application> from <filename>contrib</filename> to
+ <filename>src/bin</filename> (Peter Eisentraut)
</para>
<para>
In connection with this change, the functionality previously
- provided by the <application>pg_upgrade_support</> module has been
+ provided by the <application>pg_upgrade_support</application> module has been
moved into the core server.
</para>
</listitem>
2014-08-25 [ebe30ad] Bruce ..: pg_ctl, pg_upgrade: allow multiple -o/-O optio..
-->
<para>
- Support multiple <application>pg_upgrade</>
- <option>-o</>/<option>-O</> options,
+ Support multiple <application>pg_upgrade</application>
+ <option>-o</option>/<option>-O</option> options,
concatenating their values (Bruce Momjian)
</para>
</listitem>
-->
<para>
Improve database collation comparisons in
- <application>pg_upgrade</> (Heikki Linnakangas)
+ <application>pg_upgrade</application> (Heikki Linnakangas)
</para>
</listitem>
2015-04-13 [81134af] Peter ..: Move pgbench from contrib/ to src/bin/
-->
<para>
- Move pgbench from <filename>contrib</> to <filename>src/bin</>
+ Move pgbench from <filename>contrib</filename> to <filename>src/bin</filename>
(Peter Eisentraut)
</para>
</listitem>
-->
<para>
Fix calculation of TPS number <quote>excluding connections
- establishing</> (Tatsuo Ishii, Fabien Coelho)
+ establishing</quote> (Tatsuo Ishii, Fabien Coelho)
</para>
<para>
</para>
<para>
- This is controlled by a new <option>--latency-limit</> option.
+ This is controlled by a new <option>--latency-limit</option> option.
</para>
</listitem>
-->
<para>
Allow pgbench to generate Gaussian/exponential distributions
- using <command>\setrandom</> (Kondo Mitsumasa, Fabien Coelho)
+ using <command>\setrandom</command> (Kondo Mitsumasa, Fabien Coelho)
</para>
</listitem>
2015-03-02 [878fdcb] Robert..: pgbench: Add a real expression syntax to \set
-->
<para>
- Allow <application>pgbench</>'s <command>\set</> command to handle
+ Allow <application>pgbench</application>'s <command>\set</command> command to handle
arithmetic expressions containing more than one operator, and add
- <literal>%</> (modulo) to the set of operators it supports
+ <literal>%</literal> (modulo) to the set of operators it supports
(Robert Haas, Fabien Coelho)
</para>
</listitem>
2014-11-20 [2c03216] Heikki..: Revamp the WAL record format.
-->
<para>
- Simplify <link linkend="wal"><acronym>WAL</></> record format
+ Simplify <link linkend="wal"><acronym>WAL</acronym></link> record format
(Heikki Linnakangas)
</para>
2014-09-25 [b64d92f] Andres..: Add a basic atomic ops API abstracting away pla..
-->
<para>
- Add atomic memory operations <acronym>API</> (Andres Freund)
+ Add atomic memory operations <acronym>API</acronym> (Andres Freund)
</para>
</listitem>
-->
<para>
Foreign tables can now take part in <command>INSERT ... ON CONFLICT
- DO NOTHING</> queries (Peter Geoghegan, Heikki Linnakangas,
+ DO NOTHING</command> queries (Peter Geoghegan, Heikki Linnakangas,
Andres Freund)
</para>
<para>
Foreign data wrappers must be modified to handle this.
- <command>INSERT ... ON CONFLICT DO UPDATE</> is not supported on
+ <command>INSERT ... ON CONFLICT DO UPDATE</command> is not supported on
foreign tables.
</para>
</listitem>
2014-12-18 [4a14f13] Tom Lane: Improve hash_create's API for selecting simple-..
-->
<para>
- Improve <function>hash_create()</>'s API for selecting
+ Improve <function>hash_create()</function>'s API for selecting
simple-binary-key hash functions (Teodor Sigaev, Tom Lane)
</para>
</listitem>
2014-06-28 [a6d488c] Andres..: Remove Alpha and Tru64 support.
-->
<para>
- Remove <productname>Alpha</> (<acronym>CPU</>) and <systemitem
- class="osname">Tru64</> (OS) ports (Andres Freund)
+ Remove <productname>Alpha</productname> (<acronym>CPU</acronym>) and <systemitem
+ class="osname">Tru64</systemitem> (OS) ports (Andres Freund)
</para>
</listitem>
-->
<para>
Remove swap-byte-based spinlock implementation for
- <acronym>ARM</>v5 and earlier <acronym>CPU</>s (Robert Haas)
+ <acronym>ARM</acronym>v5 and earlier <acronym>CPU</acronym>s (Robert Haas)
</para>
<para>
- <acronym>ARM</>v5's weak memory ordering made this locking
+ <acronym>ARM</acronym>v5's weak memory ordering made this locking
implementation unsafe. Spinlock support is still possible on
newer gcc implementations with atomics support.
</para>
-->
<para>
Change index operator class for columns <link
- linkend="catalog-pg-seclabel"><structname>pg_seclabel</></>.<structname>provider</>
+ linkend="catalog-pg-seclabel"><structname>pg_seclabel</structname></link>.<structname>provider</structname>
and <link
- linkend="catalog-pg-shseclabel"><structname>pg_shseclabel</></>.<structname>provider</>
- to be <literal>text_pattern_ops</> (Tom Lane)
+ linkend="catalog-pg-shseclabel"><structname>pg_shseclabel</structname></link>.<structname>provider</structname>
+ to be <literal>text_pattern_ops</literal> (Tom Lane)
</para>
<para>
-->
<para>
Allow higher-precision time stamp resolution on <systemitem
- class="osname">Windows 8</>, <systemitem class="osname">Windows
- Server 2012</>, and later Windows systems (Craig Ringer)
+ class="osname">Windows 8</systemitem>, <systemitem class="osname">Windows
+ Server 2012</systemitem>, and later Windows systems (Craig Ringer)
</para>
</listitem>
2015-03-18 [f9dead5] Alvaro..: Install shared libraries to bin/ in Windows un..
-->
<para>
- Install shared libraries to <filename>bin</> in <systemitem
- class="osname">MS Windows</> (Peter Eisentraut, Michael Paquier)
+ Install shared libraries to <filename>bin</filename> in <systemitem
+ class="osname">MS Windows</systemitem> (Peter Eisentraut, Michael Paquier)
</para>
</listitem>
2015-04-16 [22d0053] Alvaro..: MSVC: install src/test/modules together with c..
-->
<para>
- Install <filename>src/test/modules</> together with
- <filename>contrib</> on <productname>MSVC</> builds (Michael
+ Install <filename>src/test/modules</filename> together with
+ <filename>contrib</filename> on <productname>MSVC</productname> builds (Michael
Paquier)
</para>
</listitem>
2014-07-12 [8d9a0e8] Magnus..: Support ––with-extra-version equivalent functi..
-->
<para>
- Allow <link linkend="install-procedure">configure</>'s
- <option>--with-extra-version</> option to be honored by the
- <productname>MSVC</> build (Michael Paquier)
+ Allow <link linkend="install-procedure">configure</link>'s
+ <option>--with-extra-version</option> option to be honored by the
+ <productname>MSVC</productname> build (Michael Paquier)
</para>
</listitem>
2014-07-14 [91f03ba] Noah M..: MSVC: Recognize PGFILEDESC in contrib and conv..
-->
<para>
- Pass <envar>PGFILEDESC</> into <productname>MSVC</> contrib builds
+ Pass <envar>PGFILEDESC</envar> into <productname>MSVC</productname> contrib builds
(Michael Paquier)
</para>
</listitem>
2014-07-14 [c4a448e] Noah M..: MSVC: Apply icons to all binaries having them ..
-->
<para>
- Add icons to all <productname>MSVC</>-built binaries and version
- information to all <systemitem class="osname">MS Windows</>
+ Add icons to all <productname>MSVC</productname>-built binaries and version
+ information to all <systemitem class="osname">MS Windows</systemitem>
binaries (Noah Misch)
</para>
-->
<para>
Add optional-argument support to the internal
- <function>getopt_long()</> implementation (Michael Paquier,
+ <function>getopt_long()</function> implementation (Michael Paquier,
Andres Freund)
</para>
<para>
- This is used by the <productname>MSVC</> build.
+ This is used by the <productname>MSVC</productname> build.
</para>
</listitem>
<para>
Add statistics for minimum, maximum,
mean, and standard deviation times to <link
- linkend="pgstatstatements-columns"><application>pg_stat_statements</></>
+ linkend="pgstatstatements-columns"><application>pg_stat_statements</application></link>
(Mitsumasa Kondo, Andrew Dunstan)
</para>
</listitem>
2014-10-01 [32984d8] Heikki..: Add functions for dealing with PGP armor heade..
-->
<para>
- Add <link linkend="pgcrypto"><application>pgcrypto</></> function
- <function>pgp_armor_headers()</> to extract <productname>PGP</>
+ Add <link linkend="pgcrypto"><application>pgcrypto</application></link> function
+ <function>pgp_armor_headers()</function> to extract <productname>PGP</productname>
armor headers (Marko Tiikkaja, Heikki Linnakangas)
</para>
</listitem>
-->
<para>
Allow empty replacement strings in <link
- linkend="unaccent"><application>unaccent</></> (Mohammad Alhashash)
+ linkend="unaccent"><application>unaccent</application></link> (Mohammad Alhashash)
</para>
<para>
-->
<para>
Allow multicharacter source strings in <link
- linkend="unaccent"><application>unaccent</></> (Tom Lane)
+ linkend="unaccent"><application>unaccent</application></link> (Tom Lane)
</para>
<para>
2015-05-15 [149f6f1] Simon ..: TABLESAMPLE system_time(limit)
-->
<para>
- Add <filename>contrib</> modules <link
- linkend="tsm-system-rows"><application>tsm_system_rows</></> and
- <link linkend="tsm-system-time"><application>tsm_system_time</></>
+ Add <filename>contrib</filename> modules <link
+ linkend="tsm-system-rows"><application>tsm_system_rows</application></link> and
+ <link linkend="tsm-system-time"><application>tsm_system_time</application></link>
to allow additional table sampling methods (Petr Jelínek)
</para>
</listitem>
2014-11-21 [3a82bc6] Heikki..: Add pageinspect functions for inspecting GIN in..
-->
<para>
- Add <link linkend="GIN"><acronym>GIN</></>
+ Add <link linkend="gin"><acronym>GIN</acronym></link>
index inspection functions to <link
- linkend="pageinspect"><application>pageinspect</></> (Heikki
+ linkend="pageinspect"><application>pageinspect</application></link> (Heikki
Linnakangas, Peter Geoghegan, Michael Paquier)
</para>
</listitem>
-->
<para>
Add information about buffer pins to <link
- linkend="pgbuffercache"><application>pg_buffercache</></> display
+ linkend="pgbuffercache"><application>pg_buffercache</application></link> display
(Andres Freund)
</para>
</listitem>
2015-05-13 [5850b20] Andres..: Add pgstattuple_approx() to the pgstattuple ext..
-->
<para>
- Allow <link linkend="pgstattuple"><application>pgstattuple</></>
+ Allow <link linkend="pgstattuple"><application>pgstattuple</application></link>
to report approximate answers with less overhead using
- <function>pgstattuple_approx()</> (Abhijit Menon-Sen)
+ <function>pgstattuple_approx()</function> (Abhijit Menon-Sen)
</para>
</listitem>
2014-12-01 [df761e3] Alvaro..: Move security_label test
-->
<para>
- Move <application>dummy_seclabel</>, <application>test_shm_mq</>,
- <application>test_parser</>, and <application>worker_spi</>
- from <filename>contrib</> to <filename>src/test/modules</>
+ Move <application>dummy_seclabel</application>, <application>test_shm_mq</application>,
+ <application>test_parser</application>, and <application>worker_spi</application>
+ from <filename>contrib</filename> to <filename>src/test/modules</filename>
(Álvaro Herrera)
</para>
<para>
These modules are only meant for server testing, so they do not need
- to be built or installed when packaging <productname>PostgreSQL</>.
+ to be built or installed when packaging <productname>PostgreSQL</productname>.
</para>
</listitem>
<!-- doc/src/sgml/release-9.6.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+ <sect1 id="release-9-6-6">
+ <title>Release 9.6.6</title>
+
+ <formalpara>
+ <title>Release date:</title>
+ <para>2017-11-09</para>
+ </formalpara>
+
+ <para>
+ This release contains a variety of fixes from 9.6.5.
+ For information about new features in the 9.6 major release, see
+ <xref linkend="release-9-6">.
+ </para>
+
+ <sect2>
+ <title>Migration to Version 9.6.6</title>
+
+ <para>
+ A dump/restore is not required for those running 9.6.X.
+ </para>
+
+ <para>
+ However, if you use BRIN indexes, see the first changelog entry below.
+ </para>
+
+ <para>
+ Also, if you are upgrading from a version earlier than 9.6.4,
+ see <xref linkend="release-9-6-4">.
+ </para>
+ </sect2>
+
+ <sect2>
+ <title>Changes</title>
+
+ <itemizedlist>
+
+ <listitem>
+ <para>
+ Fix BRIN index summarization to handle concurrent table extension
+ correctly (Álvaro Herrera)
+ </para>
+
+ <para>
+ Previously, a race condition allowed some table rows to be omitted from
+ the index. It may be necessary to reindex existing BRIN indexes to
+ recover from past occurrences of this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix possible failures during concurrent updates of a BRIN index
+ (Tom Lane)
+ </para>
+
+ <para>
+ These race conditions could result in errors like <quote>invalid index
+ offnum</quote> or <quote>inconsistent range map</quote>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix crash when logical decoding is invoked from a SPI-using function,
+ in particular any function written in a PL language
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix incorrect query results when multiple <literal>GROUPING
+ SETS</literal> columns contain the same simple variable (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix incorrect parallelization decisions for nested queries
+ (Amit Kapila, Kuntal Ghosh)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix parallel query handling to not fail when a recently-used role is
+ dropped (Amit Kapila)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <function>json_build_array()</function>,
+ <function>json_build_object()</function>, and their <type>jsonb</type>
+ equivalents to handle explicit <literal>VARIADIC</literal> arguments
+ correctly (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [7769fc000] 2017-09-27 17:05:53 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [07ea925e2] 2017-09-27 17:05:53 -0400
+Branch: REL9_6_STABLE [def03e4bf] 2017-09-27 17:05:53 -0400
+Branch: REL9_5_STABLE [ad56dbd6c] 2017-09-27 17:05:53 -0400
+Branch: REL9_4_STABLE [c38575edc] 2017-09-27 17:05:53 -0400
+Branch: REL9_3_STABLE [2e82fba0e] 2017-09-27 17:05:54 -0400
+Branch: REL9_2_STABLE [72d4fd08e] 2017-09-27 17:05:54 -0400
+-->
+ <para>
+ Properly reject attempts to convert infinite float values to
+ type <type>numeric</type> (Tom Lane, KaiGai Kohei)
+ </para>
+
+ <para>
+ Previously the behavior was platform-dependent.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix corner-case crashes when columns have been added to the end of a
+ view (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Record proper dependencies when a view or rule
+ contains <structname>FieldSelect</structname>
+ or <structname>FieldStore</structname> expression nodes (Tom Lane)
+ </para>
+
+ <para>
+ Lack of these dependencies could allow a column or data
+ type <command>DROP</command> to go through when it ought to fail,
+ thereby causing later uses of the view or rule to get errors.
+ This patch does not do anything to protect existing views/rules,
+ only ones created in the future.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Correctly detect hashability of range data types (Tom Lane)
+ </para>
+
+ <para>
+ The planner mistakenly assumed that any range type could be hashed
+ for use in hash joins or hash aggregation, but actually it must check
+ whether the range's subtype has hash support. This does not affect any
+ of the built-in range types, since they're all hashable anyway.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [6f44fe7f1] 2017-09-17 15:28:51 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [244b4a37e] 2017-09-17 15:28:51 -0400
+Branch: REL9_6_STABLE [86e4ebb9a] 2017-09-17 15:28:51 -0400
+Branch: REL9_5_STABLE [eeff68396] 2017-09-17 15:28:51 -0400
+-->
+ <para>
+ Correctly ignore <structname>RelabelType</structname> expression nodes
+ when determining relation distinctness (David Rowley)
+ </para>
+
+ <para>
+ This allows the intended optimization to occur when a subquery has
+ a result column of type <type>varchar</type>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Prevent sharing transition states between ordered-set aggregates
+ (David Rowley)
+ </para>
+
+ <para>
+ This causes a crash with the built-in ordered-set aggregates, and
+ probably with user-written ones as well. v11 and later will include
+ provisions for dealing with such cases safely, but in released
+ branches, just disable the optimization.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Prevent <varname>idle_in_transaction_session_timeout</varname> from
+ being ignored when a <varname>statement_timeout</varname> occurred
+ earlier (Lukas Fittl)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix low-probability loss of <command>NOTIFY</command> messages due to
+ XID wraparound (Marko Tiikkaja, Tom Lane)
+ </para>
+
+ <para>
+ If a session executed no queries, but merely listened for
+ notifications, for more than 2 billion transactions, it started to miss
+ some notifications from concurrently-committing transactions.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [899bd785c] 2017-09-25 16:09:19 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [4621c7f7a] 2017-09-25 16:09:19 -0400
+Branch: REL9_6_STABLE [175061222] 2017-09-25 16:09:20 -0400
+Branch: REL9_5_STABLE [05297416f] 2017-09-25 16:09:20 -0400
+Branch: REL9_4_STABLE [3a07a6f3e] 2017-09-25 16:09:20 -0400
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [5ea96efaa] 2017-09-26 13:42:53 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [d29f30d8c] 2017-09-26 13:43:00 -0400
+Branch: REL9_6_STABLE [12ac252f9] 2017-09-26 13:43:07 -0400
+Branch: REL9_5_STABLE [06852f215] 2017-09-26 13:43:12 -0400
+Branch: REL9_4_STABLE [e5c058e2e] 2017-09-26 13:43:17 -0400
+-->
+ <para>
+ Avoid <systemitem>SIGBUS</systemitem> crash on Linux when a DSM memory
+ request exceeds the space available in <systemitem>tmpfs</systemitem>
+ (Thomas Munro)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Reduce the frequency of data flush requests during bulk file copies to
+ avoid performance problems on macOS, particularly with its new APFS
+ file system (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [27c6619e9] 2017-09-17 14:50:01 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [66fe509be] 2017-09-17 14:50:01 -0400
+Branch: REL9_6_STABLE [c0d21bdb8] 2017-09-17 14:50:01 -0400
+Branch: REL9_5_STABLE [825fac5d3] 2017-09-17 14:50:01 -0400
+Branch: REL9_4_STABLE [bc0974703] 2017-09-17 14:50:01 -0400
+Branch: REL9_3_STABLE [b1be33593] 2017-09-17 14:50:01 -0400
+Branch: REL9_2_STABLE [4cd6cd21d] 2017-09-17 14:50:01 -0400
+-->
+ <para>
+ Prevent low-probability crash in processing of nested trigger firings
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Allow <command>COPY</command>'s <literal>FREEZE</literal> option to
+ work when the transaction isolation level is <literal>REPEATABLE
+ READ</literal> or higher (Noah Misch)
+ </para>
+
+ <para>
+ This case was unintentionally broken by a previous bug fix.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Peter Eisentraut <peter_e@gmx.net>
+Branch: master [aa6b7b72d] 2017-09-22 17:10:36 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [3d7f11a0f] 2017-09-23 10:03:05 -0400
+Branch: REL9_6_STABLE [a1f30ecc5] 2017-09-23 10:03:36 -0400
+Branch: REL9_5_STABLE [acae13faa] 2017-09-23 10:04:55 -0400
+Branch: REL9_4_STABLE [9bf049946] 2017-09-23 10:05:28 -0400
+Branch: REL9_3_STABLE [e0f5710c5] 2017-09-23 10:05:40 -0400
+Branch: REL9_2_STABLE [2eb84e54a] 2017-09-23 10:14:30 -0400
+-->
+ <para>
+ Correctly restore the umask setting when file creation fails
+ in <command>COPY</command> or <function>lo_export()</function>
+ (Peter Eisentraut)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [714805010] 2017-09-21 18:13:11 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [a2b1eb234] 2017-09-21 18:13:11 -0400
+Branch: REL9_6_STABLE [ea31541f5] 2017-09-21 18:13:11 -0400
+Branch: REL9_5_STABLE [122289a66] 2017-09-21 18:13:11 -0400
+Branch: REL9_4_STABLE [b572b435c] 2017-09-21 18:13:11 -0400
+Branch: REL9_3_STABLE [a09d8be7d] 2017-09-21 18:13:11 -0400
+Branch: REL9_2_STABLE [e56facd8b] 2017-09-21 18:13:11 -0400
+-->
+ <para>
+ Give a better error message for duplicate column names
+ in <command>ANALYZE</command> (Nathan Bossart)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Robert Haas <rhaas@postgresql.org>
+Branch: master [81276fdd3] 2017-09-14 17:19:04 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [a2a61f633] 2017-09-14 16:44:01 -0400
+Branch: REL9_6_STABLE [353328ad1] 2017-09-14 16:47:11 -0400
+-->
+ <para>
+ Add missing cases in <function>GetCommandLogLevel()</function>,
+ preventing errors when certain SQL commands are used while
+ <varname>log_statement</varname> is set to <literal>ddl</literal>
+ (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: REL9_6_STABLE [2ac598874] 2017-10-17 12:15:08 -0400
+Branch: REL9_5_STABLE [9e20276e1] 2017-10-17 12:15:08 -0400
+Branch: REL9_4_STABLE [38f17e8ee] 2017-10-17 12:15:08 -0400
+Branch: REL9_3_STABLE [06b2a73ed] 2017-10-17 12:15:08 -0400
+-->
+ <para>
+ Fix mis-parsing of the last line in a
+ non-newline-terminated <filename>pg_hba.conf</filename> file
+ (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <function>AggGetAggref()</function> to return the
+ correct <structname>Aggref</structname> nodes to aggregate final
+ functions whose transition calculations have been merged (Tom Lane)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Stephen Frost <sfrost@snowman.net>
+Branch: master [d2e40b310] 2017-09-13 20:02:09 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [68a7c24fd] 2017-09-13 20:04:43 -0400
+Branch: REL9_6_STABLE [caae416aa] 2017-09-13 20:02:27 -0400
+-->
+ <para>
+ Fix <application>pg_dump</application> to ensure that it
+ emits <command>GRANT</command> commands in a valid order
+ (Stephen Frost)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>pg_basebackup</application>'s matching of tablespace
+ paths to canonicalize both paths before comparing (Michael Paquier)
+ </para>
+
+ <para>
+ This is particularly helpful on Windows.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Fix <application>libpq</application> to not require user's home
+ directory to exist (Tom Lane)
+ </para>
+
+ <para>
+ In v10, failure to find the home directory while trying to
+ read <filename>~/.pgpass</filename> was treated as a hard error,
+ but it should just cause that file to not be found. Both v10 and
+ previous release branches made the same mistake when
+ reading <filename>~/.pg_service.conf</filename>, though this was less
+ obvious since that file is not sought unless a service name is
+ specified.
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [2e70d6b5e] 2017-08-29 15:18:01 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [b481b39b8] 2017-08-29 15:18:01 -0400
+Branch: REL9_6_STABLE [bc95e5874] 2017-08-29 15:18:01 -0400
+Branch: REL9_5_STABLE [dfd1042c6] 2017-08-29 15:18:01 -0400
+Branch: REL9_4_STABLE [1c53722ff] 2017-08-29 15:18:01 -0400
+Branch: REL9_3_STABLE [d391fb6c3] 2017-08-29 15:18:01 -0400
+Branch: REL9_2_STABLE [a07058a6d] 2017-08-29 15:18:01 -0400
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [9d6b160d7] 2017-09-01 15:14:46 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [f2fe1cbef] 2017-09-01 15:14:18 -0400
+Branch: REL9_6_STABLE [3a0f8e7d3] 2017-09-01 15:14:18 -0400
+Branch: REL9_5_STABLE [1305186de] 2017-09-01 15:14:18 -0400
+Branch: REL9_4_STABLE [53863ebeb] 2017-09-01 15:14:18 -0400
+Branch: REL9_3_STABLE [dd344de67] 2017-09-01 15:14:18 -0400
+Branch: REL9_2_STABLE [f60a236ba] 2017-09-01 15:14:18 -0400
+-->
+ <para>
+ Fix <application>libpq</application> to guard against integer
+ overflow in the row count of a <structname>PGresult</structname>
+ (Michael Paquier)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Michael Meskes <meskes@postgresql.org>
+Branch: master [35e156882] 2017-09-12 04:53:36 +0200
+Branch: REL_10_STABLE Release: REL_10_0 [75fbf8ad1] 2017-09-18 23:07:18 +0200
+Branch: REL9_6_STABLE [59b5a3e5c] 2017-09-18 23:07:34 +0200
+Branch: REL9_5_STABLE [3a5aa7de3] 2017-09-18 23:07:44 +0200
+Branch: REL9_4_STABLE [e5b8b771e] 2017-09-18 23:08:17 +0200
+Branch: REL9_3_STABLE [149cfdb3a] 2017-09-18 23:08:24 +0200
+-->
+ <para>
+ Fix <application>ecpg</application>'s handling of out-of-scope cursor
+ declarations with pointer or array variables (Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ In ecpglib, correctly handle backslashes in string literals depending
+ on whether <varname>standard_conforming_strings</varname> is set
+ (Tsunakawa Takayuki)
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Make ecpglib's Informix-compatibility mode ignore fractional digits in
+ integer input strings, as expected (Gao Zengqi, Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Michael Meskes <meskes@postgresql.org>
+Branch: master [a772624b1] 2017-08-26 12:57:21 +0200
+Branch: REL_10_STABLE Release: REL_10_0 [38d7cb67f] 2017-09-14 00:47:03 +0200
+Branch: REL9_6_STABLE [839ee1811] 2017-09-14 01:17:03 +0200
+Author: Michael Meskes <meskes@postgresql.org>
+Branch: master [04fbe0e45] 2017-08-26 19:11:58 +0200
+Branch: REL_10_STABLE Release: REL_10_0 [eaf7001eb] 2017-09-14 00:47:08 +0200
+Branch: REL9_6_STABLE [407e66078] 2017-09-14 01:17:15 +0200
+-->
+ <para>
+ Fix <application>ecpg</application>'s regression tests to work reliably
+ on Windows (Christian Ullrich, Michael Meskes)
+ </para>
+ </listitem>
+
+ <listitem>
+<!--
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [47f849a3c] 2017-09-22 00:04:29 -0400
+Branch: REL_10_STABLE Release: REL_10_0 [3876b16ce] 2017-09-22 00:04:21 -0400
+Branch: REL9_6_STABLE [e25f4401d] 2017-09-22 00:04:21 -0400
+Branch: REL9_5_STABLE [89f02e17a] 2017-09-22 00:04:21 -0400
+Branch: REL9_4_STABLE [dbd6099fb] 2017-09-22 00:04:21 -0400
+Branch: REL9_3_STABLE [2020f90bf] 2017-09-22 00:04:21 -0400
+Branch: REL9_2_STABLE [a07105afa] 2017-09-22 00:04:21 -0400
+Author: Tom Lane <tgl@sss.pgh.pa.us>
+Branch: master [24a1897ab] 2017-10-23 17:54:09 -0400
+Branch: REL_10_STABLE [dffe7fbc2] 2017-10-23 17:54:09 -0400
+Branch: REL9_6_STABLE [173b7a4a7] 2017-10-23 17:54:09 -0400
+Branch: REL9_5_STABLE [4b433a8b0] 2017-10-23 17:54:09 -0400
+Branch: REL9_4_STABLE [876e076eb] 2017-10-23 17:54:09 -0400
+Branch: REL9_3_STABLE [9c74dd2d5] 2017-10-23 17:54:09 -0400
+Branch: REL9_2_STABLE [1317d1301] 2017-10-23 17:54:09 -0400
+-->
+ <para>
+ Sync our copy of the timezone library with IANA release tzcode2017c
+ (Tom Lane)
+ </para>
+
+ <para>
+ This fixes various issues; the only one likely to be user-visible
+ is that the default DST rules for a POSIX-style zone name, if
+ no <filename>posixrules</filename> file exists in the timezone data
+ directory, now match current US law rather than what it was a dozen
+ years ago.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Update time zone data files to <application>tzdata</application>
+ release 2017c for DST law changes in Fiji, Namibia, Northern Cyprus,
+ Sudan, Tonga, and Turks & Caicos Islands, plus historical
+ corrections for Alaska, Apia, Burma, Calcutta, Detroit, Ireland,
+ Namibia, and Pago Pago.
+ </para>
+ </listitem>
+
+ </itemizedlist>
+
+ </sect2>
+ </sect1>
+
<sect1 id="release-9-6-5">
<title>Release 9.6.5</title>
-->
<para>
Show foreign tables
- in <structname>information_schema</>.<structname>table_privileges</>
+ in <structname>information_schema</structname>.<structname>table_privileges</structname>
view (Peter Eisentraut)
</para>
<para>
- All other relevant <structname>information_schema</> views include
+ All other relevant <structname>information_schema</structname> views include
foreign tables, but this one ignored them.
</para>
<para>
- Since this view definition is installed by <application>initdb</>,
+ Since this view definition is installed by <application>initdb</application>,
merely upgrading will not fix the problem. If you need to fix this
in an existing installation, you can, as a superuser, do this
- in <application>psql</>:
+ in <application>psql</application>:
<programlisting>
SET search_path TO information_schema;
CREATE OR REPLACE VIEW table_privileges AS
OR grantee.rolname = 'PUBLIC');
</programlisting>
This must be repeated in each database to be fixed,
- including <literal>template0</>.
+ including <literal>template0</literal>.
</para>
</listitem>
-->
<para>
Clean up handling of a fatal exit (e.g., due to receipt
- of <systemitem>SIGTERM</>) that occurs while trying to execute
- a <command>ROLLBACK</> of a failed transaction (Tom Lane)
+ of <systemitem>SIGTERM</systemitem>) that occurs while trying to execute
+ a <command>ROLLBACK</command> of a failed transaction (Tom Lane)
</para>
<para>
This situation could result in an assertion failure. In production
builds, the exit would still occur, but it would log an unexpected
- message about <quote>cannot drop active portal</>.
+ message about <quote>cannot drop active portal</quote>.
</para>
</listitem>
</para>
<para>
- Certain <command>ALTER</> commands that change the definition of a
+ Certain <command>ALTER</command> commands that change the definition of a
composite type or domain type are supposed to fail if there are any
stored values of that type in the database, because they lack the
infrastructure needed to update or check such values. Previously,
Branch: REL9_3_STABLE [ece4bd901] 2017-08-19 13:39:38 -0400
-->
<para>
- Fix crash in <application>pg_restore</> when using parallel mode and
+ Fix crash in <application>pg_restore</application> when using parallel mode and
using a list file to select a subset of items to restore
(Fabrízio de Royes Mello)
</para>
Branch: REL9_2_STABLE [60b135c82] 2017-08-16 13:30:20 +0200
-->
<para>
- Change <application>ecpg</>'s parser to allow <literal>RETURNING</>
+ Change <application>ecpg</application>'s parser to allow <literal>RETURNING</literal>
clauses without attached C variables (Michael Meskes)
</para>
<para>
- This allows <application>ecpg</> programs to contain SQL constructs
- that use <literal>RETURNING</> internally (for example, inside a CTE)
+ This allows <application>ecpg</application> programs to contain SQL constructs
+ that use <literal>RETURNING</literal> internally (for example, inside a CTE)
rather than using it to define values to be returned to the client.
</para>
</listitem>
Branch: REL9_6_STABLE [954490fec] 2017-08-16 13:28:10 +0200
-->
<para>
- Change <application>ecpg</>'s parser to recognize backslash
+ Change <application>ecpg</application>'s parser to recognize backslash
continuation of C preprocessor command lines (Michael Meskes)
</para>
</listitem>
<para>
This fix avoids possible crashes of PL/Perl due to inconsistent
- assumptions about the width of <type>time_t</> values.
+ assumptions about the width of <type>time_t</type> values.
A side-effect that may be visible to extension developers is
- that <literal>_USE_32BIT_TIME_T</> is no longer defined globally
- in <productname>PostgreSQL</> Windows builds. This is not expected
- to cause problems, because type <type>time_t</> is not used
- in any <productname>PostgreSQL</> API definitions.
+ that <literal>_USE_32BIT_TIME_T</literal> is no longer defined globally
+ in <productname>PostgreSQL</productname> Windows builds. This is not expected
+ to cause problems, because type <type>time_t</type> is not used
+ in any <productname>PostgreSQL</productname> API definitions.
</para>
</listitem>
Branch: REL9_5_STABLE [a784d5f21] 2017-08-09 12:06:14 -0400
-->
<para>
- Fix <literal>make check</> to behave correctly when invoked via a
+ Fix <literal>make check</literal> to behave correctly when invoked via a
non-GNU make program (Thomas Munro)
</para>
</listitem>
-->
<para>
Further restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Noah Misch)
</para>
<para>
The fix for CVE-2017-7486 was incorrect: it allowed a user
to see the options in her own user mapping, even if she did not
- have <literal>USAGE</> permission on the associated foreign server.
+ have <literal>USAGE</literal> permission on the associated foreign server.
Such options might include a password that had been provided by the
server owner rather than the user herself.
- Since <structname>information_schema.user_mapping_options</> does not
- show the options in such cases, <structname>pg_user_mappings</>
+ Since <structname>information_schema.user_mapping_options</structname> does not
+ show the options in such cases, <structname>pg_user_mappings</structname>
should not either.
(CVE-2017-7547)
</para>
<step>
<para>
Restart the postmaster after adding <literal>allow_system_table_mods
- = true</> to <filename>postgresql.conf</>. (In versions
- supporting <command>ALTER SYSTEM</>, you can use that to make the
+ = true</literal> to <filename>postgresql.conf</filename>. (In versions
+ supporting <command>ALTER SYSTEM</command>, you can use that to make the
configuration change, but you'll still need a restart.)
</para>
</step>
<step>
<para>
- In <emphasis>each</> database of the cluster,
+ In <emphasis>each</emphasis> database of the cluster,
run the following commands as superuser:
<programlisting>
SET search_path = pg_catalog;
<step>
<para>
- Do not forget to include the <literal>template0</>
- and <literal>template1</> databases, or the vulnerability will still
- exist in databases you create later. To fix <literal>template0</>,
+ Do not forget to include the <literal>template0</literal>
+ and <literal>template1</literal> databases, or the vulnerability will still
+ exist in databases you create later. To fix <literal>template0</literal>,
you'll need to temporarily make it accept connections.
- In <productname>PostgreSQL</> 9.5 and later, you can use
+ In <productname>PostgreSQL</productname> 9.5 and later, you can use
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS true;
</programlisting>
- and then after fixing <literal>template0</>, undo that with
+ and then after fixing <literal>template0</literal>, undo that with
<programlisting>
ALTER DATABASE template0 WITH ALLOW_CONNECTIONS false;
</programlisting>
<step>
<para>
- Finally, remove the <literal>allow_system_table_mods</> configuration
+ Finally, remove the <literal>allow_system_table_mods</literal> configuration
setting, and again restart the postmaster.
</para>
</step>
</para>
<para>
- <application>libpq</> ignores empty password specifications, and does
+ <application>libpq</application> ignores empty password specifications, and does
not transmit them to the server. So, if a user's password has been
set to the empty string, it's impossible to log in with that password
- via <application>psql</> or other <application>libpq</>-based
+ via <application>psql</application> or other <application>libpq</application>-based
clients. An administrator might therefore believe that setting the
password to empty is equivalent to disabling password login.
- However, with a modified or non-<application>libpq</>-based client,
+ However, with a modified or non-<application>libpq</application>-based client,
logging in could be possible, depending on which authentication
method is configured. In particular the most common
- method, <literal>md5</>, accepted empty passwords.
+ method, <literal>md5</literal>, accepted empty passwords.
Change the server to reject empty passwords in all cases.
(CVE-2017-7546)
</para>
Branch: REL9_4_STABLE [f1cda6d6c] 2017-08-07 10:19:22 -0400
-->
<para>
- Make <function>lo_put()</> check for <literal>UPDATE</> privilege on
+ Make <function>lo_put()</function> check for <literal>UPDATE</literal> privilege on
the target large object (Tom Lane, Michael Paquier)
</para>
<para>
- <function>lo_put()</> should surely require the same permissions
- as <function>lowrite()</>, but the check was missing, allowing any
+ <function>lo_put()</function> should surely require the same permissions
+ as <function>lowrite()</function>, but the check was missing, allowing any
user to change the data in a large object.
(CVE-2017-7548)
</para>
-->
<para>
Correct the documentation about the process for upgrading standby
- servers with <application>pg_upgrade</> (Bruce Momjian)
+ servers with <application>pg_upgrade</application> (Bruce Momjian)
</para>
<para>
The previous documentation instructed users to start/stop the primary
- server after running <application>pg_upgrade</> but before syncing
+ server after running <application>pg_upgrade</application> but before syncing
the standby servers. This sequence is unsafe.
</para>
</listitem>
-->
<para>
Fix possible creation of an invalid WAL segment when a standby is
- promoted just after it processes an <literal>XLOG_SWITCH</> WAL
+ promoted just after it processes an <literal>XLOG_SWITCH</literal> WAL
record (Andres Freund)
</para>
</listitem>
Branch: REL9_4_STABLE [5aa8db014] 2017-06-30 12:00:03 -0400
-->
<para>
- Fix <application>walsender</> to exit promptly when client requests
+ Fix <application>walsender</application> to exit promptly when client requests
shutdown (Tom Lane)
</para>
</listitem>
Branch: REL9_2_STABLE [133b1920c] 2017-06-05 19:18:16 -0700
-->
<para>
- Fix <systemitem>SIGHUP</> and <systemitem>SIGUSR1</> handling in
+ Fix <systemitem>SIGHUP</systemitem> and <systemitem>SIGUSR1</systemitem> handling in
walsender processes (Petr Jelinek, Andres Freund)
</para>
</listitem>
Branch: REL9_2_STABLE [e96adaacd] 2017-06-26 17:31:56 -0400
-->
<para>
- Fix unnecessarily slow restarts of <application>walreceiver</>
+ Fix unnecessarily slow restarts of <application>walreceiver</application>
processes due to race condition in postmaster (Tom Lane)
</para>
</listitem>
Branch: REL9_2_STABLE [75670ec37] 2017-07-12 18:00:04 -0400
-->
<para>
- Fix cases where an <command>INSERT</> or <command>UPDATE</> assigns
+ Fix cases where an <command>INSERT</command> or <command>UPDATE</command> assigns
to more than one element of a column that is of domain-over-array
type (Tom Lane)
</para>
Branch: REL9_3_STABLE [66dee28b4] 2017-06-27 17:51:11 -0400
-->
<para>
- Allow window functions to be used in sub-<literal>SELECT</>s that
+ Allow window functions to be used in sub-<literal>SELECT</literal>s that
are within the arguments of an aggregate function (Tom Lane)
</para>
</listitem>
Branch: REL9_6_STABLE [971faefc2] 2017-07-24 16:24:42 -0400
-->
<para>
- Ensure that a view's <literal>CHECK OPTIONS</> clause is enforced
+ Ensure that a view's <literal>CHECK OPTIONS</literal> clause is enforced
properly when the underlying table is a foreign table (Etsuro Fujita)
</para>
-->
<para>
Move autogenerated array types out of the way during
- <command>ALTER ... RENAME</> (Vik Fearing)
+ <command>ALTER ... RENAME</command> (Vik Fearing)
</para>
<para>
Previously, we would rename a conflicting autogenerated array type
- out of the way during <command>CREATE</>; this fix extends that
+ out of the way during <command>CREATE</command>; this fix extends that
behavior to renaming operations.
</para>
</listitem>
Branch: REL9_5_STABLE [53a1aa9f9] 2017-05-15 11:33:45 -0400
-->
<para>
- Fix dangling pointer in <command>ALTER TABLE</> when there is a
+ Fix dangling pointer in <command>ALTER TABLE</command> when there is a
comment on a constraint belonging to the table (David Rowley)
</para>
Branch: REL9_2_STABLE [22eb38caa] 2017-08-03 21:42:46 -0400
-->
<para>
- Ensure that <command>ALTER USER ... SET</> accepts all the syntax
- variants that <command>ALTER ROLE ... SET</> does (Peter Eisentraut)
+ Ensure that <command>ALTER USER ... SET</command> accepts all the syntax
+ variants that <command>ALTER ROLE ... SET</command> does (Peter Eisentraut)
</para>
</listitem>
Branch: REL9_6_STABLE [1f220c390] 2017-08-03 13:25:32 -0400
-->
<para>
- Allow a foreign table's <literal>CHECK</> constraints to be
- initially <literal>NOT VALID</> (Amit Langote)
+ Allow a foreign table's <literal>CHECK</literal> constraints to be
+ initially <literal>NOT VALID</literal> (Amit Langote)
</para>
<para>
- <command>CREATE TABLE</> silently drops <literal>NOT VALID</>
- specifiers for <literal>CHECK</> constraints, reasoning that the
+ <command>CREATE TABLE</command> silently drops <literal>NOT VALID</literal>
+ specifiers for <literal>CHECK</literal> constraints, reasoning that the
table must be empty so the constraint can be validated immediately.
- But this is wrong for <command>CREATE FOREIGN TABLE</>, where there's
+ But this is wrong for <command>CREATE FOREIGN TABLE</command>, where there's
no reason to suppose that the underlying table is empty, and even if
it is it's no business of ours to decide that the constraint can be
- treated as valid going forward. Skip this <quote>optimization</> for
+ treated as valid going forward. Skip this <quote>optimization</quote> for
foreign tables.
</para>
</listitem>
-->
<para>
Properly update dependency info when changing a datatype I/O
- function's argument or return type from <type>opaque</> to the
+ function's argument or return type from <type>opaque</type> to the
correct type (Heikki Linnakangas)
</para>
<para>
- <command>CREATE TYPE</> updates I/O functions declared in this
+ <command>CREATE TYPE</command> updates I/O functions declared in this
long-obsolete style, but it forgot to record a dependency on the
- type, allowing a subsequent <command>DROP TYPE</> to leave broken
+ type, allowing a subsequent <command>DROP TYPE</command> to leave broken
function definitions behind.
</para>
</listitem>
Branch: REL9_6_STABLE [8a7cd781e] 2017-06-02 19:11:23 -0700
-->
<para>
- Allow parallelism in the query plan when <command>COPY</> copies from
+ Allow parallelism in the query plan when <command>COPY</command> copies from
a query's result (Andres Freund)
</para>
</listitem>
Branch: REL9_2_STABLE [40ba61b44] 2017-07-12 22:04:15 +0300
-->
<para>
- Reduce memory usage when <command>ANALYZE</> processes
- a <type>tsvector</> column (Heikki Linnakangas)
+ Reduce memory usage when <command>ANALYZE</command> processes
+ a <type>tsvector</type> column (Heikki Linnakangas)
</para>
</listitem>
-->
<para>
Fix unnecessary precision loss and sloppy rounding when multiplying
- or dividing <type>money</> values by integers or floats (Tom Lane)
+ or dividing <type>money</type> values by integers or floats (Tom Lane)
</para>
</listitem>
-->
<para>
Tighten checks for whitespace in functions that parse identifiers,
- such as <function>regprocedurein()</> (Tom Lane)
+ such as <function>regprocedurein()</function> (Tom Lane)
</para>
<para>
Branch: REL9_2_STABLE [456c7dff2] 2017-07-31 12:38:35 -0400
-->
<para>
- Use relevant <literal>#define</> symbols from Perl while
- compiling <application>PL/Perl</> (Ashutosh Sharma, Tom Lane)
+ Use relevant <literal>#define</literal> symbols from Perl while
+ compiling <application>PL/Perl</application> (Ashutosh Sharma, Tom Lane)
</para>
<para>
This avoids portability problems, typically manifesting as
- a <quote>handshake</> mismatch during library load, when working with
+ a <quote>handshake</quote> mismatch during library load, when working with
recent Perl versions.
</para>
</listitem>
Branch: REL9_3_STABLE [f2fa0c651] 2017-06-07 14:04:44 +0300
-->
<para>
- In <application>libpq</>, reset GSS/SASL and SSPI authentication
+ In <application>libpq</application>, reset GSS/SASL and SSPI authentication
state properly after a failed connection attempt (Michael Paquier)
</para>
Branch: REL9_2_STABLE [07477130e] 2017-05-17 12:24:19 -0400
-->
<para>
- In <application>psql</>, fix failure when <command>COPY FROM STDIN</>
+ In <application>psql</application>, fix failure when <command>COPY FROM STDIN</command>
is ended with a keyboard EOF signal and then another <command>COPY
- FROM STDIN</> is attempted (Thomas Munro)
+ FROM STDIN</command> is attempted (Thomas Munro)
</para>
<para>
Branch: REL9_3_STABLE [035bb8222] 2017-08-03 17:36:23 -0400
-->
<para>
- Fix <application>pg_dump</> and <application>pg_restore</> to
- emit <command>REFRESH MATERIALIZED VIEW</> commands last (Tom Lane)
+ Fix <application>pg_dump</application> and <application>pg_restore</application> to
+ emit <command>REFRESH MATERIALIZED VIEW</command> commands last (Tom Lane)
</para>
<para>
Branch: REL9_4_STABLE [69ad12b58] 2017-08-03 14:55:17 -0400
-->
<para>
- Improve <application>pg_dump</>/<application>pg_restore</>'s
- reporting of error conditions originating in <application>zlib</>
+ Improve <application>pg_dump</application>/<application>pg_restore</application>'s
+ reporting of error conditions originating in <application>zlib</application>
(Vladimir Kunschikov, Álvaro Herrera)
</para>
</listitem>
Branch: REL9_3_STABLE [68a22bc69] 2017-07-22 20:20:10 -0400
-->
<para>
- Fix <application>pg_dump</> with the <option>--clean</> option to
+ Fix <application>pg_dump</application> with the <option>--clean</option> option to
drop event triggers as expected (Tom Lane)
</para>
Branch: REL9_6_STABLE [a2de017b3] 2017-06-28 10:34:01 -0400
-->
<para>
- Fix <application>pg_dump</> with the <option>--clean</> option to not
- fail when the <literal>public</> schema doesn't exist (Stephen Frost)
+ Fix <application>pg_dump</application> with the <option>--clean</option> option to not
+ fail when the <literal>public</literal> schema doesn't exist (Stephen Frost)
</para>
</listitem>
Branch: REL9_2_STABLE [f62e1eff5] 2017-05-26 12:51:06 -0400
-->
<para>
- Fix <application>pg_dump</> to not emit invalid SQL for an empty
+ Fix <application>pg_dump</application> to not emit invalid SQL for an empty
operator class (Daniel Gustafsson)
</para>
</listitem>
Branch: REL9_2_STABLE [c10cbf77a] 2017-06-19 11:03:21 -0400
-->
<para>
- Fix <application>pg_dump</> output to stdout on Windows (Kuntal Ghosh)
+ Fix <application>pg_dump</application> output to stdout on Windows (Kuntal Ghosh)
</para>
<para>
Branch: REL9_2_STABLE [d9874fde8] 2017-07-24 15:16:31 -0400
-->
<para>
- Fix <function>pg_get_ruledef()</> to print correct output for
- the <literal>ON SELECT</> rule of a view whose columns have been
+ Fix <function>pg_get_ruledef()</function> to print correct output for
+ the <literal>ON SELECT</literal> rule of a view whose columns have been
renamed (Tom Lane)
</para>
<para>
- In some corner cases, <application>pg_dump</> relies
- on <function>pg_get_ruledef()</> to dump views, so that this error
+ In some corner cases, <application>pg_dump</application> relies
+ on <function>pg_get_ruledef()</function> to dump views, so that this error
could result in dump/reload failures.
</para>
</listitem>
-->
<para>
Fix dumping of outer joins with empty constraints, such as the result
- of a <literal>NATURAL LEFT JOIN</> with no common columns (Tom Lane)
+ of a <literal>NATURAL LEFT JOIN</literal> with no common columns (Tom Lane)
</para>
</listitem>
Branch: REL9_2_STABLE [bccfb1776] 2017-07-13 19:24:44 -0400
-->
<para>
- Fix dumping of function expressions in the <literal>FROM</> clause in
+ Fix dumping of function expressions in the <literal>FROM</literal> clause in
cases where the expression does not deparse into something that looks
like a function call (Tom Lane)
</para>
Branch: REL9_2_STABLE [4b994a96c] 2017-07-14 16:03:27 +0300
-->
<para>
- Fix <application>pg_basebackup</> output to stdout on Windows
+ Fix <application>pg_basebackup</application> output to stdout on Windows
(Haribabu Kommi)
</para>
Branch: REL9_5_STABLE [ed367be64] 2017-07-21 22:05:07 -0400
-->
<para>
- Fix <application>pg_rewind</> to correctly handle files exceeding 2GB
+ Fix <application>pg_rewind</application> to correctly handle files exceeding 2GB
(Kuntal Ghosh, Michael Paquier)
</para>
<para>
- Ordinarily such files won't appear in <productname>PostgreSQL</> data
+ Ordinarily such files won't appear in <productname>PostgreSQL</productname> data
directories, but they could be present in some cases.
</para>
</listitem>
Branch: REL9_2_STABLE [65beccae5] 2017-06-20 13:20:02 -0400
-->
<para>
- Fix <application>pg_upgrade</> to ensure that the ending WAL record
- does not have <xref linkend="guc-wal-level"> = <literal>minimum</>
+ Fix <application>pg_upgrade</application> to ensure that the ending WAL record
+ does not have <xref linkend="guc-wal-level"> = <literal>minimum</literal>
(Bruce Momjian)
</para>
Branch: REL9_5_STABLE [25653c171] 2017-06-05 16:10:07 -0700
-->
<para>
- Fix <application>pg_xlogdump</>'s computation of WAL record length
+ Fix <application>pg_xlogdump</application>'s computation of WAL record length
(Andres Freund)
</para>
</listitem>
Branch: REL9_3_STABLE [6d9de660d] 2017-07-21 14:20:43 -0400
-->
<para>
- In <filename>postgres_fdw</>, re-establish connections to remote
- servers after <command>ALTER SERVER</> or <command>ALTER USER
- MAPPING</> commands (Kyotaro Horiguchi)
+ In <filename>postgres_fdw</filename>, re-establish connections to remote
+ servers after <command>ALTER SERVER</command> or <command>ALTER USER
+ MAPPING</command> commands (Kyotaro Horiguchi)
</para>
<para>
Branch: REL9_3_STABLE [fc267a0c3] 2017-06-07 15:41:05 -0400
-->
<para>
- In <filename>postgres_fdw</>, allow cancellation of remote
+ In <filename>postgres_fdw</filename>, allow cancellation of remote
transaction control commands (Robert Haas, Rafia Sabih)
</para>
Branch: REL9_4_STABLE [5c633f76b] 2017-05-11 14:51:46 -0400
-->
<para>
- Increase <literal>MAX_SYSCACHE_CALLBACKS</> to provide more room for
+ Increase <literal>MAX_SYSCACHE_CALLBACKS</literal> to provide more room for
extensions (Tom Lane)
</para>
</listitem>
Branch: REL9_2_STABLE [a378b9bc2] 2017-06-01 13:32:56 -0400
-->
<para>
- Always use <option>-fPIC</>, not <option>-fpic</>, when building
+ Always use <option>-fPIC</option>, not <option>-fpic</option>, when building
shared libraries with gcc (Tom Lane)
</para>
Branch: REL9_2_STABLE [f964a7c5a] 2017-06-05 20:41:01 -0400
-->
<para>
- In MSVC builds, handle the case where the <application>openssl</>
- library is not within a <filename>VC</> subdirectory (Andrew Dunstan)
+ In MSVC builds, handle the case where the <application>openssl</application>
+ library is not within a <filename>VC</filename> subdirectory (Andrew Dunstan)
</para>
</listitem>
Branch: REL9_2_STABLE [614f83c12] 2017-05-12 10:24:36 -0400
-->
<para>
- In MSVC builds, add proper include path for <application>libxml2</>
+ In MSVC builds, add proper include path for <application>libxml2</application>
header files (Andrew Dunstan)
</para>
<para>
This fixes a former need to move things around in standard Windows
- installations of <application>libxml2</>.
+ installations of <application>libxml2</application>.
</para>
</listitem>
-->
<para>
In MSVC builds, recognize a Tcl library that is
- named <filename>tcl86.lib</> (Noah Misch)
+ named <filename>tcl86.lib</filename> (Noah Misch)
</para>
</listitem>
Branch: REL9_4_STABLE [9c3f502b4] 2017-07-16 11:27:15 -0400
-->
<para>
- In MSVC builds, honor <literal>PROVE_FLAGS</> settings
- on <filename>vcregress.pl</>'s command line (Andrew Dunstan)
+ In MSVC builds, honor <literal>PROVE_FLAGS</literal> settings
+ on <filename>vcregress.pl</filename>'s command line (Andrew Dunstan)
</para>
</listitem>
<para>
Also, if you are using third-party replication tools that depend
- on <quote>logical decoding</>, see the fourth changelog entry below.
+ on <quote>logical decoding</quote>, see the fourth changelog entry below.
</para>
<para>
-->
<para>
Restrict visibility
- of <structname>pg_user_mappings</>.<structfield>umoptions</>, to
+ of <structname>pg_user_mappings</structname>.<structfield>umoptions</structfield>, to
protect passwords stored as user mapping options
(Michael Paquier, Feike Steenbergen)
</para>
<para>
The previous coding allowed the owner of a foreign server object,
- or anyone he has granted server <literal>USAGE</> permission to,
+ or anyone he has granted server <literal>USAGE</literal> permission to,
to see the options for all user mappings associated with that server.
This might well include passwords for other users.
Adjust the view definition to match the behavior of
- <structname>information_schema.user_mapping_options</>, namely that
+ <structname>information_schema.user_mapping_options</structname>, namely that
these options are visible to the user being mapped, or if the mapping
is for <literal>PUBLIC</literal> and the current user is the server
owner, or if the current user is a superuser.
<para>
Some selectivity estimation functions in the planner will apply
user-defined operators to values obtained
- from <structname>pg_statistic</>, such as most common values and
+ from <structname>pg_statistic</structname>, such as most common values and
histogram entries. This occurs before table permissions are checked,
so a nefarious user could exploit the behavior to obtain these values
for table columns he does not have permission to read. To fix,
Branch: REL9_3_STABLE [3eab81127] 2017-05-08 07:24:28 -0700
-->
<para>
- Restore <application>libpq</>'s recognition of
- the <envar>PGREQUIRESSL</> environment variable (Daniel Gustafsson)
+ Restore <application>libpq</application>'s recognition of
+ the <envar>PGREQUIRESSL</envar> environment variable (Daniel Gustafsson)
</para>
<para>
Processing of this environment variable was unintentionally dropped
- in <productname>PostgreSQL</> 9.3, but its documentation remained.
+ in <productname>PostgreSQL</productname> 9.3, but its documentation remained.
This creates a security hazard, since users might be relying on the
environment variable to force SSL-encrypted connections, but that
would no longer be guaranteed. Restore handling of the variable,
- but give it lower priority than <envar>PGSSLMODE</>, to avoid
+ but give it lower priority than <envar>PGSSLMODE</envar>, to avoid
breaking configurations that work correctly with post-9.3 code.
(CVE-2017-7485)
</para>
Branch: REL9_2_STABLE [b2ae1d6c4] 2017-03-14 12:10:36 -0400
-->
<para>
- Fix possible corruption of <quote>init forks</> of unlogged indexes
+ Fix possible corruption of <quote>init forks</quote> of unlogged indexes
(Robert Haas, Michael Paquier)
</para>
Branch: REL9_2_STABLE [952e33b05] 2017-04-23 13:10:58 -0400
-->
<para>
- Fix incorrect reconstruction of <structname>pg_subtrans</> entries
+ Fix incorrect reconstruction of <structname>pg_subtrans</structname> entries
when a standby server replays a prepared but uncommitted two-phase
transaction (Tom Lane)
</para>
<para>
In most cases this turned out to have no visible ill effects, but in
corner cases it could result in circular references
- in <structname>pg_subtrans</>, potentially causing infinite loops
+ in <structname>pg_subtrans</structname>, potentially causing infinite loops
in queries that examine rows modified by the two-phase transaction.
</para>
</listitem>
Branch: REL9_4_STABLE [a3eb715a3] 2017-02-22 08:29:57 +0900
-->
<para>
- Avoid possible crash in <application>walsender</> due to failure
+ Avoid possible crash in <application>walsender</application> due to failure
to initialize a string buffer (Stas Kelvich, Fujii Masao)
</para>
</listitem>
Branch: REL9_4_STABLE [436b560b8] 2017-04-24 12:16:58 -0400
-->
<para>
- Fix postmaster's handling of <function>fork()</> failure for a
+ Fix postmaster's handling of <function>fork()</function> failure for a
background worker process (Tom Lane)
</para>
Branch: REL9_6_STABLE [c0a493e17] 2017-04-07 12:18:38 -0400
-->
<para>
- Fix possible <quote>no relation entry for relid 0</> error when
+ Fix possible <quote>no relation entry for relid 0</quote> error when
planning nested set operations (Tom Lane)
</para>
</listitem>
Branch: REL9_5_STABLE [6f0f98bb0] 2017-04-17 15:29:00 -0400
-->
<para>
- Avoid applying <quote>physical targetlist</> optimization to custom
+ Avoid applying <quote>physical targetlist</quote> optimization to custom
scans (Dmitry Ivanov, Tom Lane)
</para>
Branch: REL9_5_STABLE [d617c7629] 2017-05-06 21:46:56 -0400
-->
<para>
- Use the correct sub-expression when applying a <literal>FOR ALL</>
+ Use the correct sub-expression when applying a <literal>FOR ALL</literal>
row-level-security policy (Stephen Frost)
</para>
<para>
- In some cases the <literal>WITH CHECK</> restriction would be applied
- when the <literal>USING</> restriction is more appropriate.
+ In some cases the <literal>WITH CHECK</literal> restriction would be applied
+ when the <literal>USING</literal> restriction is more appropriate.
</para>
</listitem>
Due to lack of a cache flush step between commands in an extension
script file, non-utility queries might not see the effects of an
immediately preceding catalog change, such as <command>ALTER TABLE
- ... RENAME</>.
+ ... RENAME</command>.
</para>
</listitem>
-->
<para>
Skip tablespace privilege checks when <command>ALTER TABLE ... ALTER
- COLUMN TYPE</> rebuilds an existing index (Noah Misch)
+ COLUMN TYPE</command> rebuilds an existing index (Noah Misch)
</para>
<para>
The command failed if the calling user did not currently have
- <literal>CREATE</> privilege for the tablespace containing the index.
+ <literal>CREATE</literal> privilege for the tablespace containing the index.
That behavior seems unhelpful, so skip the check, allowing the
index to be rebuilt where it is.
</para>
Branch: REL9_2_STABLE [f60f0c8fe] 2017-04-28 14:55:42 -0400
-->
<para>
- Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</> to not recurse
- to child tables when the constraint is marked <literal>NO INHERIT</>
+ Fix <command>ALTER TABLE ... VALIDATE CONSTRAINT</command> to not recurse
+ to child tables when the constraint is marked <literal>NO INHERIT</literal>
(Amit Langote)
</para>
<para>
- This fix prevents unwanted <quote>constraint does not exist</> failures
+ This fix prevents unwanted <quote>constraint does not exist</quote> failures
when no matching constraint is present in the child tables.
</para>
</listitem>
Branch: REL9_5_STABLE [420d9ec0a] 2017-03-06 16:50:47 -0500
-->
<para>
- Avoid dangling pointer in <command>COPY ... TO</> when row-level
+ Avoid dangling pointer in <command>COPY ... TO</command> when row-level
security is active for the source table (Tom Lane)
</para>
Branch: REL9_5_STABLE [807df31d1] 2017-03-04 16:09:33 -0500
-->
<para>
- Avoid accessing an already-closed relcache entry in <command>CLUSTER</>
- and <command>VACUUM FULL</> (Tom Lane)
+ Avoid accessing an already-closed relcache entry in <command>CLUSTER</command>
+ and <command>VACUUM FULL</command> (Tom Lane)
</para>
<para>
Branch: REL9_6_STABLE [733488dc6] 2017-03-17 14:46:15 +0000
-->
<para>
- Fix <command>VACUUM</> to account properly for pages that could not
+ Fix <command>VACUUM</command> to account properly for pages that could not
be scanned due to conflicting page pins (Andrew Gierth)
</para>
<para>
This tended to lead to underestimation of the number of tuples in
the table. In the worst case of a small heavily-contended
- table, <command>VACUUM</> could incorrectly report that the table
+ table, <command>VACUUM</command> could incorrectly report that the table
contained no tuples, leading to very bad planning choices.
</para>
</listitem>
Branch: REL9_6_STABLE [a4d07d2e9] 2017-03-21 16:24:10 +0300
-->
<para>
- Fix incorrect support for certain <type>box</> operators in SP-GiST
+ Fix incorrect support for certain <type>box</type> operators in SP-GiST
(Nikita Glukhov)
</para>
<para>
- SP-GiST index scans using the operators <literal>&<</>
- <literal>&></> <literal>&<|</> and <literal>|&></>
+ SP-GiST index scans using the operators <literal>&<</literal>
+ <literal>&></literal> <literal>&<|</literal> and <literal>|&></literal>
would yield incorrect answers.
</para>
</listitem>
Branch: REL9_4_STABLE [8851bcf88] 2017-04-05 23:51:28 -0400
-->
<para>
- Fix integer-overflow problems in <type>interval</> comparison (Kyotaro
+ Fix integer-overflow problems in <type>interval</type> comparison (Kyotaro
Horiguchi, Tom Lane)
</para>
<para>
- The comparison operators for type <type>interval</> could yield wrong
+ The comparison operators for type <type>interval</type> could yield wrong
answers for intervals larger than about 296000 years. Indexes on
columns containing such large values should be reindexed, since they
may be corrupt.
Branch: REL9_2_STABLE [a48d47908] 2017-05-04 22:39:23 -0400
-->
<para>
- Fix <function>cursor_to_xml()</> to produce valid output
- with <replaceable>tableforest</> = false
+ Fix <function>cursor_to_xml()</function> to produce valid output
+ with <replaceable>tableforest</replaceable> = false
(Thomas Munro, Peter Eisentraut)
</para>
<para>
- Previously it failed to produce a wrapping <literal><table></>
+ Previously it failed to produce a wrapping <literal><table></literal>
element.
</para>
</listitem>
Branch: REL9_4_STABLE [86ef376bb] 2017-02-09 15:49:58 -0500
-->
<para>
- Fix roundoff problems in <function>float8_timestamptz()</>
- and <function>make_interval()</> (Tom Lane)
+ Fix roundoff problems in <function>float8_timestamptz()</function>
+ and <function>make_interval()</function> (Tom Lane)
</para>
<para>
Branch: REL9_5_STABLE [b6e6ae1dc] 2017-04-16 20:50:31 -0400
-->
<para>
- Fix <function>pg_get_object_address()</> to handle members of operator
+ Fix <function>pg_get_object_address()</function> to handle members of operator
families correctly (Álvaro Herrera)
</para>
</listitem>
Branch: REL9_6_STABLE [8de6278d3] 2017-03-24 13:55:02 +0300
-->
<para>
- Fix cancelling of <function>pg_stop_backup()</> when attempting to stop
+ Fix cancelling of <function>pg_stop_backup()</function> when attempting to stop
a non-exclusive backup (Michael Paquier, David Steele)
</para>
<para>
- If <function>pg_stop_backup()</> was cancelled while waiting for a
+ If <function>pg_stop_backup()</function> was cancelled while waiting for a
non-exclusive backup to end, related state was left inconsistent;
a new exclusive backup could not be started, and there were other minor
problems.
Branch: REL9_2_STABLE [9061680f0] 2017-05-07 11:35:11 -0400
-->
<para>
- Improve performance of <structname>pg_timezone_names</> view
+ Improve performance of <structname>pg_timezone_names</structname> view
(Tom Lane, David Rowley)
</para>
</listitem>
Branch: REL9_2_STABLE [775227590] 2017-02-21 17:51:28 -0500
-->
<para>
- Fix sloppy handling of corner-case errors from <function>lseek()</>
- and <function>close()</> (Tom Lane)
+ Fix sloppy handling of corner-case errors from <function>lseek()</function>
+ and <function>close()</function> (Tom Lane)
</para>
<para>
Neither of these system calls are likely to fail in typical situations,
- but if they did, <filename>fd.c</> could get quite confused.
+ but if they did, <filename>fd.c</filename> could get quite confused.
</para>
</listitem>
Branch: REL9_2_STABLE [d8c207437] 2017-03-13 20:52:16 +0100
-->
<para>
- Fix <application>ecpg</> to support <command>COMMIT PREPARED</>
- and <command>ROLLBACK PREPARED</> (Masahiko Sawada)
+ Fix <application>ecpg</application> to support <command>COMMIT PREPARED</command>
+ and <command>ROLLBACK PREPARED</command> (Masahiko Sawada)
</para>
</listitem>
-->
<para>
Fix a double-free error when processing dollar-quoted string literals
- in <application>ecpg</> (Michael Meskes)
+ in <application>ecpg</application> (Michael Meskes)
</para>
</listitem>
Branch: REL9_6_STABLE [2ed391f95] 2017-03-24 19:23:13 +0300
-->
<para>
- Fix <application>pgbench</> to handle the combination
- of <option>--connect</> and <option>--rate</> options correctly
+ Fix <application>pgbench</application> to handle the combination
+ of <option>--connect</option> and <option>--rate</option> options correctly
(Fabien Coelho)
</para>
</listitem>
Branch: REL9_6_STABLE [0e2c85d13] 2017-03-07 11:36:35 -0500
-->
<para>
- Fix <application>pgbench</> to honor the long-form option
- spelling <option>--builtin</>, as per its documentation (Tom Lane)
+ Fix <application>pgbench</application> to honor the long-form option
+ spelling <option>--builtin</option>, as per its documentation (Tom Lane)
</para>
</listitem>
Branch: REL9_6_STABLE [e961341cc] 2017-03-06 23:29:08 -0500
-->
<para>
- Fix <application>pg_dump</>/<application>pg_restore</> to correctly
- handle privileges for the <literal>public</> schema when
- using <option>--clean</> option (Stephen Frost)
+ Fix <application>pg_dump</application>/<application>pg_restore</application> to correctly
+ handle privileges for the <literal>public</literal> schema when
+ using <option>--clean</option> option (Stephen Frost)
</para>
<para>
Other schemas start out with no privileges granted,
- but <literal>public</> does not; this requires special-case treatment
- when it is dropped and restored due to the <option>--clean</> option.
+ but <literal>public</literal> does not; this requires special-case treatment
+ when it is dropped and restored due to the <option>--clean</option> option.
</para>
</listitem>
Branch: REL9_2_STABLE [0ab75448e] 2017-03-06 19:33:59 -0500
-->
<para>
- In <application>pg_dump</>, fix incorrect schema and owner marking for
+ In <application>pg_dump</application>, fix incorrect schema and owner marking for
comments and security labels of some types of database objects
(Giuseppe Broccolo, Tom Lane)
</para>
Branch: REL9_6_STABLE [4e8b2fd33] 2017-02-17 15:06:34 -0500
-->
<para>
- Fix typo in <application>pg_dump</>'s query for initial privileges
+ Fix typo in <application>pg_dump</application>'s query for initial privileges
of a procedural language (Peter Eisentraut)
</para>
<para>
- This resulted in <application>pg_dump</> always believing that the
+ This resulted in <application>pg_dump</application> always believing that the
language had no initial privileges. Since that's true for most
procedural languages, ill effects from this bug are probably rare.
</para>
Branch: REL9_2_STABLE [e6d2ba419] 2017-03-10 14:15:09 -0500
-->
<para>
- Avoid emitting an invalid list file in <literal>pg_restore -l</>
+ Avoid emitting an invalid list file in <literal>pg_restore -l</literal>
when SQL object names contain newlines (Tom Lane)
</para>
<para>
Replace newlines by spaces, which is sufficient to make the output
- valid for <literal>pg_restore -L</>'s purposes.
+ valid for <literal>pg_restore -L</literal>'s purposes.
</para>
</listitem>
Branch: REL9_2_STABLE [e864cd25b] 2017-03-06 17:04:55 -0500
-->
<para>
- Fix <application>pg_upgrade</> to transfer comments and security labels
- attached to <quote>large objects</> (blobs) (Stephen Frost)
+ Fix <application>pg_upgrade</application> to transfer comments and security labels
+ attached to <quote>large objects</quote> (blobs) (Stephen Frost)
</para>
<para>
-->
<para>
Improve error handling
- in <filename>contrib/adminpack</>'s <function>pg_file_write()</>
+ in <filename>contrib/adminpack</filename>'s <function>pg_file_write()</function>
function (Noah Misch)
</para>
<para>
Notably, it failed to detect errors reported
- by <function>fclose()</>.
+ by <function>fclose()</function>.
</para>
</listitem>
Branch: REL9_2_STABLE [c4613c3f4] 2017-03-11 13:33:30 -0800
-->
<para>
- In <filename>contrib/dblink</>, avoid leaking the previous unnamed
+ In <filename>contrib/dblink</filename>, avoid leaking the previous unnamed
connection when establishing a new unnamed connection (Joe Conway)
</para>
</listitem>
Branch: REL9_3_STABLE [5be58cc89] 2017-04-13 17:18:35 -0400
-->
<para>
- Fix <filename>contrib/pg_trgm</>'s extraction of trigrams from regular
+ Fix <filename>contrib/pg_trgm</filename>'s extraction of trigrams from regular
expressions (Tom Lane)
</para>
Branch: REL9_6_STABLE [86e640a69] 2017-04-26 09:14:21 -0400
-->
<para>
- In <filename>contrib/postgres_fdw</>, allow join conditions that
+ In <filename>contrib/postgres_fdw</filename>, allow join conditions that
contain shippable extension-provided functions to be pushed to the
remote server (David Rowley, Ashutosh Bapat)
</para>
Branch: REL9_2_STABLE [c96ccc40e] 2017-05-01 11:54:08 -0400
-->
<para>
- Update time zone data files to <application>tzdata</> release 2017b
+ Update time zone data files to <application>tzdata</application> release 2017b
for DST law changes in Chile, Haiti, and Mongolia, plus historical
corrections for Ecuador, Kazakhstan, Liberia, and Spain.
Switch to numeric abbreviations for numerous time zones in South
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
</listitem>
<para>
The Microsoft MSVC build scripts neglected to install
- the <filename>posixrules</> file in the timezone directory tree.
+ the <filename>posixrules</filename> file in the timezone directory tree.
This resulted in the timezone code falling back to its built-in
rule about what DST behavior to assume for a POSIX-style time zone
name. For historical reasons that still corresponds to the DST rules
the USA was using before 2007 (i.e., change on first Sunday in April
and last Sunday in October). With this fix, a POSIX-style zone name
will use the current and historical DST transition dates of
- the <literal>US/Eastern</> zone. If you don't want that, remove
- the <filename>posixrules</> file, or replace it with a copy of some
+ the <literal>US/Eastern</literal> zone. If you don't want that, remove
+ the <filename>posixrules</filename> file, or replace it with a copy of some
other zone file (see <xref linkend="datatype-timezones">). Note that
due to caching, you may need to restart the server to get such changes
to take effect.
-->
<para>
Fix a race condition that could cause indexes built
- with <command>CREATE INDEX CONCURRENTLY</> to be corrupt
+ with <command>CREATE INDEX CONCURRENTLY</command> to be corrupt
(Pavan Deolasee, Tom Lane)
</para>
<para>
- If <command>CREATE INDEX CONCURRENTLY</> was used to build an index
+ If <command>CREATE INDEX CONCURRENTLY</command> was used to build an index
that depends on a column not previously indexed, then rows
updated by transactions that ran concurrently with
- the <command>CREATE INDEX</> command could have received incorrect
+ the <command>CREATE INDEX</command> command could have received incorrect
index entries. If you suspect this may have happened, the most
reliable solution is to rebuild affected indexes after installing
this update.
Backends failed to account for this snapshot when advertising their
oldest xmin, potentially allowing concurrent vacuuming operations to
remove data that was still needed. This led to transient failures
- along the lines of <quote>cache lookup failed for relation 1255</>.
+ along the lines of <quote>cache lookup failed for relation 1255</quote>.
</para>
</listitem>
</para>
<para>
- The WAL record emitted for a BRIN <quote>revmap</> page when moving an
+ The WAL record emitted for a BRIN <quote>revmap</quote> page when moving an
index tuple to a different page was incorrect. Replay would make the
related portion of the index useless, forcing it to be recomputed.
</para>
Branch: REL9_2_STABLE [a00ac6299] 2016-12-08 14:19:25 -0500
-->
<para>
- Unconditionally WAL-log creation of the <quote>init fork</> for an
+ Unconditionally WAL-log creation of the <quote>init fork</quote> for an
unlogged table (Michael Paquier)
</para>
<para>
Previously, this was skipped when <xref linkend="guc-wal-level">
- = <literal>minimal</>, but actually it's necessary even in that case
+ = <literal>minimal</literal>, but actually it's necessary even in that case
to ensure that the unlogged table is properly reset to empty after a
crash.
</para>
Branch: REL9_6_STABLE [6c75fb6b3] 2016-12-17 02:25:47 +0900
-->
<para>
- Disallow setting the <replaceable>num_sync</> field to zero in
+ Disallow setting the <replaceable>num_sync</replaceable> field to zero in
<xref linkend="guc-synchronous-standby-names"> (Fujii Masao)
</para>
-->
<para>
Fix tracking of initial privileges for extension member objects so
- that it works correctly with <command>ALTER EXTENSION ... ADD/DROP</>
+ that it works correctly with <command>ALTER EXTENSION ... ADD/DROP</command>
(Stephen Frost)
</para>
An object's current privileges at the time it is added to the
extension will now be considered its default privileges; only
later changes in its privileges will be dumped by
- subsequent <application>pg_dump</> runs.
+ subsequent <application>pg_dump</application> runs.
</para>
</listitem>
Branch: REL9_2_STABLE [05975ab0a] 2016-11-23 13:45:56 -0500
-->
<para>
- Make sure <command>ALTER TABLE</> preserves index tablespace
+ Make sure <command>ALTER TABLE</command> preserves index tablespace
assignments when rebuilding indexes (Tom Lane, Michael Paquier)
</para>
<para>
Fix incorrect updating of trigger function properties when changing a
foreign-key constraint's deferrability properties with <command>ALTER
- TABLE ... ALTER CONSTRAINT</> (Tom Lane)
+ TABLE ... ALTER CONSTRAINT</command> (Tom Lane)
</para>
<para>
</para>
<para>
- This avoids <quote>could not find trigger <replaceable>NNN</></quote>
- or <quote>relation <replaceable>NNN</> has no triggers</quote> errors.
+ This avoids <quote>could not find trigger <replaceable>NNN</replaceable></quote>
+ or <quote>relation <replaceable>NNN</replaceable> has no triggers</quote> errors.
</para>
</listitem>
Branch: REL9_5_STABLE [4d4ab6ccd] 2017-01-09 19:26:58 -0300
-->
<para>
- Fix <command>ALTER TABLE ... SET DATA TYPE ... USING</> when child
+ Fix <command>ALTER TABLE ... SET DATA TYPE ... USING</command> when child
table has different column ordering than the parent
(Álvaro Herrera)
</para>
<para>
- Failure to adjust the column numbering in the <literal>USING</>
+ Failure to adjust the column numbering in the <literal>USING</literal>
expression led to errors,
- typically <quote>attribute <replaceable>N</> has wrong type</quote>.
+ typically <quote>attribute <replaceable>N</replaceable> has wrong type</quote>.
</para>
</listitem>
-->
<para>
Fix processing of OID column when a table with OIDs is associated to
- a parent with OIDs via <command>ALTER TABLE ... INHERIT</> (Amit
+ a parent with OIDs via <command>ALTER TABLE ... INHERIT</command> (Amit
Langote)
</para>
Branch: REL9_6_STABLE [68330c8b4] 2016-12-22 16:23:34 -0500
-->
<para>
- Ensure that <command>CREATE TABLE ... LIKE ... WITH OIDS</> creates
- a table with OIDs, whether or not the <literal>LIKE</>-referenced
+ Ensure that <command>CREATE TABLE ... LIKE ... WITH OIDS</command> creates
+ a table with OIDs, whether or not the <literal>LIKE</literal>-referenced
table(s) have OIDs (Tom Lane)
</para>
</listitem>
Branch: REL9_4_STABLE [cad24980e] 2016-12-21 17:03:54 +0000
-->
<para>
- Fix <command>CREATE OR REPLACE VIEW</> to update the view query
+ Fix <command>CREATE OR REPLACE VIEW</command> to update the view query
before attempting to apply the new view options (Dean Rasheed)
</para>
-->
<para>
Report correct object identity during <command>ALTER TEXT SEARCH
- CONFIGURATION</> (Artur Zakirov)
+ CONFIGURATION</command> (Artur Zakirov)
</para>
<para>
-->
<para>
Fix commit timestamp mechanism to not fail when queried about
- the special XIDs <literal>FrozenTransactionId</>
- and <literal>BootstrapTransactionId</> (Craig Ringer)
+ the special XIDs <literal>FrozenTransactionId</literal>
+ and <literal>BootstrapTransactionId</literal> (Craig Ringer)
</para>
</listitem>
<para>
The symptom was spurious <quote>ON CONFLICT is not supported on table
- ... used as a catalog table</> errors when the target
- of <command>INSERT ... ON CONFLICT</> is a view with cascade option.
+ ... used as a catalog table</quote> errors when the target
+ of <command>INSERT ... ON CONFLICT</command> is a view with cascade option.
</para>
</listitem>
Branch: REL9_5_STABLE [25c06a1ed] 2016-12-04 15:02:48 -0500
-->
<para>
- Fix incorrect <quote>target lists can have at most <replaceable>N</>
- entries</quote> complaint when using <literal>ON CONFLICT</> with
+ Fix incorrect <quote>target lists can have at most <replaceable>N</replaceable>
+ entries</quote> complaint when using <literal>ON CONFLICT</literal> with
wide tables (Tom Lane)
</para>
</listitem>
Branch: REL9_6_STABLE [f4d865f22] 2016-11-02 14:32:13 -0400
-->
<para>
- Fix spurious <quote>query provides a value for a dropped column</>
- errors during <command>INSERT</> or <command>UPDATE</> on a table
+ Fix spurious <quote>query provides a value for a dropped column</quote>
+ errors during <command>INSERT</command> or <command>UPDATE</command> on a table
with a dropped column (Tom Lane)
</para>
</listitem>
Branch: REL9_3_STABLE [71db302ec] 2016-11-20 14:26:19 -0500
-->
<para>
- Prevent multicolumn expansion of <replaceable>foo</><literal>.*</> in
- an <command>UPDATE</> source expression (Tom Lane)
+ Prevent multicolumn expansion of <replaceable>foo</replaceable><literal>.*</literal> in
+ an <command>UPDATE</command> source expression (Tom Lane)
</para>
<para>
This led to <quote>UPDATE target count mismatch --- internal
- error</>. Now the syntax is understood as a whole-row variable,
+ error</quote>. Now the syntax is understood as a whole-row variable,
as it would be in other contexts.
</para>
</listitem>
-->
<para>
Ensure that column typmods are determined accurately for
- multi-row <literal>VALUES</> constructs (Tom Lane)
+ multi-row <literal>VALUES</literal> constructs (Tom Lane)
</para>
<para>
This fixes problems occurring when the first value in a column has a
- determinable typmod (e.g., length for a <type>varchar</> value) but
+ determinable typmod (e.g., length for a <type>varchar</type> value) but
later values don't share the same limit.
</para>
</listitem>
Normally, a Unicode surrogate leading character must be followed by a
Unicode surrogate trailing character, but the check for this was
missed if the leading character was the last character in a Unicode
- string literal (<literal>U&'...'</>) or Unicode identifier
- (<literal>U&"..."</>).
+ string literal (<literal>U&'...'</literal>) or Unicode identifier
+ (<literal>U&"..."</literal>).
</para>
</listitem>
Branch: REL9_6_STABLE [ce92fc4e2] 2016-12-20 09:20:30 +0200
-->
<para>
- Fix execution of <literal>DISTINCT</> and ordered aggregates when
+ Fix execution of <literal>DISTINCT</literal> and ordered aggregates when
multiple such aggregates are able to share the same transition state
(Heikki Linnakangas)
</para>
Branch: REL9_6_STABLE [3f07eff10] 2016-12-19 13:49:45 -0500
-->
<para>
- Fix implementation of phrase search operators in <type>tsquery</>
+ Fix implementation of phrase search operators in <type>tsquery</type>
(Tom Lane)
</para>
-->
<para>
Ensure that a purely negative text search query, such
- as <literal>!foo</>, matches empty <type>tsvector</>s (Tom Dunstan)
+ as <literal>!foo</literal>, matches empty <type>tsvector</type>s (Tom Dunstan)
</para>
<para>
Branch: REL9_2_STABLE [f4ccee408] 2016-12-11 13:09:57 -0500
-->
<para>
- Prevent crash when <function>ts_rewrite()</> replaces a non-top-level
+ Prevent crash when <function>ts_rewrite()</function> replaces a non-top-level
subtree with an empty query (Artur Zakirov)
</para>
</listitem>
Branch: REL9_2_STABLE [606e16a7f] 2016-10-30 17:35:43 -0400
-->
<para>
- Fix performance problems in <function>ts_rewrite()</> (Tom Lane)
+ Fix performance problems in <function>ts_rewrite()</function> (Tom Lane)
</para>
</listitem>
Branch: REL9_2_STABLE [b0f8a273e] 2016-10-30 15:24:40 -0400
-->
<para>
- Fix <function>ts_rewrite()</>'s handling of nested NOT operators
+ Fix <function>ts_rewrite()</function>'s handling of nested NOT operators
(Tom Lane)
</para>
</listitem>
-->
<para>
Improve speed of user-defined aggregates that
- use <function>array_append()</> as transition function (Tom Lane)
+ use <function>array_append()</function> as transition function (Tom Lane)
</para>
</listitem>
Branch: REL9_2_STABLE [e0d59c6ef] 2017-01-05 11:33:51 -0500
-->
<para>
- Fix <function>array_fill()</> to handle empty arrays properly (Tom Lane)
+ Fix <function>array_fill()</function> to handle empty arrays properly (Tom Lane)
</para>
</listitem>
Branch: REL9_5_STABLE [581b09c72] 2016-12-09 12:42:17 -0300
-->
<para>
- Fix possible crash in <function>array_position()</>
- or <function>array_positions()</> when processing arrays of records
+ Fix possible crash in <function>array_position()</function>
+ or <function>array_positions()</function> when processing arrays of records
(Junseok Yang)
</para>
</listitem>
Branch: REL9_2_STABLE [c8f8ed5c2] 2016-12-16 12:53:27 +0200
-->
<para>
- Fix one-byte buffer overrun in <function>quote_literal_cstr()</>
+ Fix one-byte buffer overrun in <function>quote_literal_cstr()</function>
(Heikki Linnakangas)
</para>
Branch: REL9_2_STABLE [c73157ca0] 2017-01-17 17:32:45 +0900
-->
<para>
- Prevent multiple calls of <function>pg_start_backup()</>
- and <function>pg_stop_backup()</> from running concurrently (Michael
+ Prevent multiple calls of <function>pg_start_backup()</function>
+ and <function>pg_stop_backup()</function> from running concurrently (Michael
Paquier)
</para>
-->
<para>
Disable transform that attempted to remove no-op <literal>AT TIME
- ZONE</> conversions (Tom Lane)
+ ZONE</literal> conversions (Tom Lane)
</para>
<para>
Branch: REL9_2_STABLE [beae7d5f0] 2016-12-27 15:43:55 -0500
-->
<para>
- Avoid discarding <type>interval</>-to-<type>interval</> casts
+ Avoid discarding <type>interval</type>-to-<type>interval</type> casts
that aren't really no-ops (Tom Lane)
</para>
<para>
In some cases, a cast that should result in zeroing out
- low-order <type>interval</> fields was mistakenly deemed to be a
+ low-order <type>interval</type> fields was mistakenly deemed to be a
no-op and discarded. An example is that casting from <type>INTERVAL
- MONTH</> to <type>INTERVAL YEAR</> failed to clear the months field.
+ MONTH</type> to <type>INTERVAL YEAR</type> failed to clear the months field.
</para>
</listitem>
Branch: REL9_6_STABLE [ebe5dc9e0] 2016-12-06 11:43:12 -0500
-->
<para>
- Allow statements prepared with <command>PREPARE</> to be given
+ Allow statements prepared with <command>PREPARE</command> to be given
parallel plans (Amit Kapila, Tobias Bussmann)
</para>
</listitem>
-->
<para>
Fix the plan generated for sorted partial aggregation with a constant
- <literal>GROUP BY</> clause (Tom Lane)
+ <literal>GROUP BY</literal> clause (Tom Lane)
</para>
</listitem>
Branch: REL9_6_STABLE [997a2994e] 2016-12-13 13:20:16 -0500
-->
<para>
- Fix <quote>could not find plan for CTE</> planner error when dealing
- with a <literal>UNION ALL</> containing CTE references (Tom Lane)
+ Fix <quote>could not find plan for CTE</quote> planner error when dealing
+ with a <literal>UNION ALL</literal> containing CTE references (Tom Lane)
</para>
</listitem>
<para>
The typical consequence of this mistake was a <quote>plan should not
- reference subplan's variable</> error.
+ reference subplan's variable</quote> error.
</para>
</listitem>
Branch: REL9_6_STABLE [fd081cabf] 2017-01-19 12:06:27 -0500
-->
<para>
- Fix <application>pg_dump</> to emit the data of a sequence that is
+ Fix <application>pg_dump</application> to emit the data of a sequence that is
marked as an extension configuration table (Michael Paquier)
</para>
</listitem>
Branch: REL9_6_STABLE [eb5e9d90d] 2017-01-31 16:24:14 -0500
-->
<para>
- Fix mishandling of <command>ALTER DEFAULT PRIVILEGES ... REVOKE</>
- in <application>pg_dump</> (Stephen Frost)
+ Fix mishandling of <command>ALTER DEFAULT PRIVILEGES ... REVOKE</command>
+ in <application>pg_dump</application> (Stephen Frost)
</para>
<para>
- <application>pg_dump</> missed issuing the
- required <literal>REVOKE</> commands in cases where <command>ALTER
- DEFAULT PRIVILEGES</> had been used to reduce privileges to less than
+ <application>pg_dump</application> missed issuing the
+ required <literal>REVOKE</literal> commands in cases where <command>ALTER
+ DEFAULT PRIVILEGES</command> had been used to reduce privileges to less than
they would normally be.
</para>
</listitem>
Branch: REL9_2_STABLE [59a389891] 2016-12-21 13:47:32 -0500
-->
<para>
- Fix <application>pg_dump</> to dump user-defined casts and transforms
+ Fix <application>pg_dump</application> to dump user-defined casts and transforms
that use built-in functions (Stephen Frost)
</para>
</listitem>
Branch: REL9_4_STABLE [e69b532be] 2016-11-17 14:59:26 -0500
-->
<para>
- Fix <application>pg_restore</> with <option>--create --if-exists</>
+ Fix <application>pg_restore</application> with <option>--create --if-exists</option>
to behave more sanely if an archive contains
- unrecognized <command>DROP</> commands (Tom Lane)
+ unrecognized <command>DROP</command> commands (Tom Lane)
</para>
<para>
This doesn't fix any live bug, but it may improve the behavior in
- future if <application>pg_restore</> is used with an archive
- generated by a later <application>pg_dump</> version.
+ future if <application>pg_restore</application> is used with an archive
+ generated by a later <application>pg_dump</application> version.
</para>
</listitem>
Branch: REL9_4_STABLE [f6508827a] 2016-12-19 10:16:12 +0100
-->
<para>
- Fix <application>pg_basebackup</>'s rate limiting in the presence of
+ Fix <application>pg_basebackup</application>'s rate limiting in the presence of
slow I/O (Antonin Houska)
</para>
Branch: REL9_4_STABLE [5556420d4] 2016-11-07 15:04:23 +0100
-->
<para>
- Fix <application>pg_basebackup</>'s handling of
- symlinked <filename>pg_stat_tmp</> and <filename>pg_replslot</>
+ Fix <application>pg_basebackup</application>'s handling of
+ symlinked <filename>pg_stat_tmp</filename> and <filename>pg_replslot</filename>
subdirectories (Magnus Hagander, Michael Paquier)
</para>
</listitem>
Branch: REL9_2_STABLE [629575fa2] 2016-10-27 12:14:07 -0400
-->
<para>
- Fix possible <application>pg_basebackup</> failure on standby
+ Fix possible <application>pg_basebackup</application> failure on standby
server when including WAL files (Amit Kapila, Robert Haas)
</para>
</listitem>
Branch: REL9_6_STABLE [255bcd27f] 2016-11-25 18:36:10 -0500
-->
<para>
- Improve <application>initdb</> to insert the correct
+ Improve <application>initdb</application> to insert the correct
platform-specific default values for
- the <replaceable>xxx</><literal>_flush_after</> parameters
- into <filename>postgresql.conf</> (Fabien Coelho, Tom Lane)
+ the <replaceable>xxx</replaceable><literal>_flush_after</literal> parameters
+ into <filename>postgresql.conf</filename> (Fabien Coelho, Tom Lane)
</para>
<para>
-->
<para>
Fix possible mishandling of expanded arrays in domain check
- constraints and <literal>CASE</> execution (Tom Lane)
+ constraints and <literal>CASE</literal> execution (Tom Lane)
</para>
<para>
Branch: REL9_2_STABLE [92b7b1058] 2016-11-06 14:43:14 -0500
-->
<para>
- Fix PL/Tcl to support triggers on tables that have <literal>.tupno</>
+ Fix PL/Tcl to support triggers on tables that have <literal>.tupno</literal>
as a column name (Tom Lane)
</para>
<para>
This matches the (previously undocumented) behavior of
- PL/Tcl's <command>spi_exec</> and <command>spi_execp</> commands,
- namely that a magic <literal>.tupno</> column is inserted only if
+ PL/Tcl's <command>spi_exec</command> and <command>spi_execp</command> commands,
+ namely that a magic <literal>.tupno</literal> column is inserted only if
there isn't a real column named that.
</para>
</listitem>
Branch: REL9_2_STABLE [13aa9af37] 2016-11-15 16:17:19 -0500
-->
<para>
- Allow DOS-style line endings in <filename>~/.pgpass</> files,
+ Allow DOS-style line endings in <filename>~/.pgpass</filename> files,
even on Unix (Vik Fearing)
</para>
Branch: REL9_2_STABLE [501c91074] 2016-12-22 08:34:07 +0100
-->
<para>
- Fix one-byte buffer overrun if <application>ecpg</> is given a file
+ Fix one-byte buffer overrun if <application>ecpg</application> is given a file
name that ends with a dot (Takayuki Tsunakawa)
</para>
</listitem>
-->
<para>
Fix incorrect error reporting for duplicate data
- in <application>psql</>'s <command>\crosstabview</> (Tom Lane)
+ in <application>psql</application>'s <command>\crosstabview</command> (Tom Lane)
</para>
<para>
- <application>psql</> sometimes quoted the wrong row and/or column
+ <application>psql</application> sometimes quoted the wrong row and/or column
values when complaining about multiple entries for the same crosstab
cell.
</para>
Branch: REL9_2_STABLE [26b55d669] 2016-12-23 21:01:51 -0500
-->
<para>
- Fix <application>psql</>'s tab completion for <command>ALTER DEFAULT
- PRIVILEGES</> (Gilles Darold, Stephen Frost)
+ Fix <application>psql</application>'s tab completion for <command>ALTER DEFAULT
+ PRIVILEGES</command> (Gilles Darold, Stephen Frost)
</para>
</listitem>
Branch: REL9_6_STABLE [28735cc72] 2016-11-28 11:51:35 -0500
-->
<para>
- Fix <application>psql</>'s tab completion for <command>ALTER TABLE t
- ALTER c DROP ...</> (Kyotaro Horiguchi)
+ Fix <application>psql</application>'s tab completion for <command>ALTER TABLE t
+ ALTER c DROP ...</command> (Kyotaro Horiguchi)
</para>
</listitem>
Branch: REL9_2_STABLE [1ec5cc025] 2016-12-07 12:19:57 -0500
-->
<para>
- In <application>psql</>, treat an empty or all-blank setting of
- the <envar>PAGER</> environment variable as meaning <quote>no
- pager</> (Tom Lane)
+ In <application>psql</application>, treat an empty or all-blank setting of
+ the <envar>PAGER</envar> environment variable as meaning <quote>no
+ pager</quote> (Tom Lane)
</para>
<para>
Branch: REL9_2_STABLE [44de099f8] 2016-12-22 09:46:46 -0800
-->
<para>
- Improve <filename>contrib/dblink</>'s reporting of
- low-level <application>libpq</> errors, such as out-of-memory
+ Improve <filename>contrib/dblink</filename>'s reporting of
+ low-level <application>libpq</application> errors, such as out-of-memory
(Joe Conway)
</para>
</listitem>
Branch: REL9_3_STABLE [bd46cce21] 2016-12-22 09:18:50 -0800
-->
<para>
- Teach <filename>contrib/dblink</> to ignore irrelevant server options
- when it uses a <filename>contrib/postgres_fdw</> foreign server as
+ Teach <filename>contrib/dblink</filename> to ignore irrelevant server options
+ when it uses a <filename>contrib/postgres_fdw</filename> foreign server as
the source of connection options (Corey Huinker)
</para>
<para>
Previously, if the foreign server object had options that were not
- also <application>libpq</> connection options, an error occurred.
+ also <application>libpq</application> connection options, an error occurred.
</para>
</listitem>
Branch: REL9_5_STABLE [af636d7b5] 2016-11-02 00:09:28 -0400
-->
<para>
- Fix portability problems in <filename>contrib/pageinspect</>'s
+ Fix portability problems in <filename>contrib/pageinspect</filename>'s
functions for GIN indexes (Peter Eisentraut, Tom Lane)
</para>
</listitem>
Branch: REL9_2_STABLE [ef878cc2c] 2017-01-30 11:41:09 -0500
-->
<para>
- Update time zone data files to <application>tzdata</> release 2016j
+ Update time zone data files to <application>tzdata</application> release 2016j
for DST law changes in northern Cyprus (adding a new zone
Asia/Famagusta), Russia (adding a new zone Europe/Saratov), Tonga,
and Antarctica/Casey.
crash recovery, or to be written incorrectly on a standby server.
Bogus entries in a free space map could lead to attempts to access
pages that have been truncated away from the relation itself, typically
- producing errors like <quote>could not read block <replaceable>XXX</>:
+ producing errors like <quote>could not read block <replaceable>XXX</replaceable>:
read only 0 of 8192 bytes</quote>. Checksum failures in the
visibility map are also possible, if checksumming is enabled.
</para>
<para>
Procedures for determining whether there is a problem and repairing it
if so are discussed at
- <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></>.
+ <ulink url="https://wiki.postgresql.org/wiki/Free_Space_Map_Problems"></ulink>.
</para>
</listitem>
Branch: REL9_6_STABLE [b6d906073] 2016-09-30 20:39:06 -0400
-->
<para>
- Fix possible data corruption when <application>pg_upgrade</> rewrites
+ Fix possible data corruption when <application>pg_upgrade</application> rewrites
a relation visibility map into 9.6 format (Tom Lane)
</para>
Windows, the old map was read using text mode, leading to incorrect
results if the map happened to contain consecutive bytes that matched
a carriage return/line feed sequence. The latter error would almost
- always lead to a <application>pg_upgrade</> failure due to the map
+ always lead to a <application>pg_upgrade</application> failure due to the map
file appearing to be the wrong length.
</para>
<para>
If you are using a big-endian machine (many non-Intel architectures
- are big-endian) and have used <application>pg_upgrade</> to upgrade
+ are big-endian) and have used <application>pg_upgrade</application> to upgrade
from a pre-9.6 release, you should assume that all visibility maps are
incorrect and need to be regenerated. It is sufficient to truncate
each relation's visibility map
- with <filename>contrib/pg_visibility</>'s
- <function>pg_truncate_visibility_map()</> function.
+ with <filename>contrib/pg_visibility</filename>'s
+ <function>pg_truncate_visibility_map()</function> function.
For more information see
- <ulink url="https://wiki.postgresql.org/wiki/Visibility_Map_Problems"></>.
+ <ulink url="https://wiki.postgresql.org/wiki/Visibility_Map_Problems"></ulink>.
</para>
</listitem>
-->
<para>
Don't throw serialization errors for self-conflicting insertions
- in <command>INSERT ... ON CONFLICT</> (Thomas Munro, Peter Geoghegan)
+ in <command>INSERT ... ON CONFLICT</command> (Thomas Munro, Peter Geoghegan)
</para>
</listitem>
-->
<para>
Fix use-after-free hazard in execution of aggregate functions
- using <literal>DISTINCT</> (Peter Geoghegan)
+ using <literal>DISTINCT</literal> (Peter Geoghegan)
</para>
<para>
Branch: REL9_5_STABLE [647a86e37] 2016-10-03 16:23:12 -0400
-->
<para>
- Fix <command>COPY</> with a column name list from a table that has
+ Fix <command>COPY</command> with a column name list from a table that has
row-level security enabled (Adam Brightwell)
</para>
</listitem>
Branch: REL9_2_STABLE [f17c26dbd] 2016-10-20 17:18:14 -0400
-->
<para>
- Fix <command>EXPLAIN</> to emit valid XML when
+ Fix <command>EXPLAIN</command> to emit valid XML when
<xref linkend="guc-track-io-timing"> is on (Markus Winand)
</para>
<para>
Previously the XML output-format option produced syntactically invalid
- tags such as <literal><I/O-Read-Time></>. That is now
- rendered as <literal><I-O-Read-Time></>.
+ tags such as <literal><I/O-Read-Time></literal>. That is now
+ rendered as <literal><I-O-Read-Time></literal>.
</para>
</listitem>
Branch: REL9_5_STABLE [3cd504254] 2016-10-13 19:45:58 -0400
-->
<para>
- Fix statistics update for <command>TRUNCATE</> in a prepared
+ Fix statistics update for <command>TRUNCATE</command> in a prepared
transaction (Stas Kelvich)
</para>
</listitem>
Branch: REL9_2_STABLE [6f2db29ec] 2016-10-13 17:05:15 -0400
-->
<para>
- Fix bugs in merging inherited <literal>CHECK</> constraints while
+ Fix bugs in merging inherited <literal>CHECK</literal> constraints while
creating or altering a table (Tom Lane, Amit Langote)
</para>
<para>
- Allow identical <literal>CHECK</> constraints to be added to a parent
+ Allow identical <literal>CHECK</literal> constraints to be added to a parent
and child table in either order. Prevent merging of a valid
- constraint from the parent table with a <literal>NOT VALID</>
+ constraint from the parent table with a <literal>NOT VALID</literal>
constraint on the child. Likewise, prevent merging of a <literal>NO
- INHERIT</> child constraint with an inherited constraint.
+ INHERIT</literal> child constraint with an inherited constraint.
</para>
</listitem>
-->
<para>
Show a sensible value
- in <structname>pg_settings</>.<structfield>unit</>
- for <varname>min_wal_size</> and <varname>max_wal_size</> (Tom Lane)
+ in <structname>pg_settings</structname>.<structfield>unit</structfield>
+ for <varname>min_wal_size</varname> and <varname>max_wal_size</varname> (Tom Lane)
</para>
</listitem>
Branch: REL9_6_STABLE [0e9e64c07] 2016-10-13 00:25:28 -0400
-->
<para>
- Fix replacement of array elements in <function>jsonb_set()</>
+ Fix replacement of array elements in <function>jsonb_set()</function>
(Tom Lane)
</para>
</para>
<para>
- This avoids possible failures during <function>munmap()</> on systems
+ This avoids possible failures during <function>munmap()</function> on systems
with atypical default huge page sizes. Except in crash-recovery
cases, there were no ill effects other than a log message.
</para>
-->
<para>
Don't try to share SSL contexts across multiple connections
- in <application>libpq</> (Heikki Linnakangas)
+ in <application>libpq</application> (Heikki Linnakangas)
</para>
<para>
Branch: REL9_1_STABLE [fb6825fe5] 2016-10-10 10:35:58 -0400
-->
<para>
- Avoid corner-case memory leak in <application>libpq</> (Tom Lane)
+ Avoid corner-case memory leak in <application>libpq</application> (Tom Lane)
</para>
<para>
The reported problem involved leaking an error report
- during <function>PQreset()</>, but there might be related cases.
+ during <function>PQreset()</function>, but there might be related cases.
</para>
</listitem>
Branch: REL9_5_STABLE [0f259bd17] 2016-10-03 10:07:39 -0400
-->
<para>
- In <application>pg_upgrade</>, check library loadability in name order
+ In <application>pg_upgrade</application>, check library loadability in name order
(Tom Lane)
</para>
Branch: REL9_6_STABLE [f40334b85] 2016-10-02 14:31:28 -0400
-->
<para>
- Fix <application>pg_upgrade</> to work correctly for extensions
+ Fix <application>pg_upgrade</application> to work correctly for extensions
containing index access methods (Tom Lane)
</para>
<para>
To allow this, the server has been extended to support <command>ALTER
- EXTENSION ADD/DROP ACCESS METHOD</>. That functionality should have
+ EXTENSION ADD/DROP ACCESS METHOD</command>. That functionality should have
been included in the original patch to support dynamic creation of
access methods, but it was overlooked.
</para>
Branch: REL9_6_STABLE [53fbeed40] 2016-09-30 20:40:27 -0400
-->
<para>
- Improve error reporting in <application>pg_upgrade</>'s file
+ Improve error reporting in <application>pg_upgrade</application>'s file
copying/linking/rewriting steps (Tom Lane, Álvaro Herrera)
</para>
</listitem>
Branch: REL9_6_STABLE [1749332ec] 2016-10-07 09:51:28 -0400
-->
<para>
- Fix <application>pg_dump</> to work against pre-7.4 servers
+ Fix <application>pg_dump</application> to work against pre-7.4 servers
(Amit Langote, Tom Lane)
</para>
</listitem>
Branch: REL9_5_STABLE [010a1b561] 2016-10-07 14:35:45 +0300
-->
<para>
- Disallow specifying both <option>--source-server</>
- and <option>--source-target</> options to <application>pg_rewind</>
+ Disallow specifying both <option>--source-server</option>
+ and <option>--source-target</option> options to <application>pg_rewind</application>
(Michael Banck)
</para>
</listitem>
Branch: REL9_5_STABLE [69da71254] 2016-10-06 13:34:32 +0300
-->
<para>
- Make <application>pg_rewind</> turn off <varname>synchronous_commit</>
+ Make <application>pg_rewind</application> turn off <varname>synchronous_commit</varname>
in its session on the source server (Michael Banck, Michael Paquier)
</para>
<para>
- This allows <application>pg_rewind</> to work even when the source
+ This allows <application>pg_rewind</application> to work even when the source
server is using synchronous replication that is not working for some
reason.
</para>
Branch: REL9_3_STABLE [4bff35cca] 2016-09-30 11:23:25 +0200
-->
<para>
- In <application>pg_xlogdump</>, retry opening new WAL segments when
- using <option>--follow</> option (Magnus Hagander)
+ In <application>pg_xlogdump</application>, retry opening new WAL segments when
+ using <option>--follow</option> option (Magnus Hagander)
</para>
<para>
Branch: REL9_6_STABLE [f4e787c82] 2016-10-01 16:32:55 -0400
-->
<para>
- Fix <filename>contrib/pg_visibility</> to report the correct TID for
+ Fix <filename>contrib/pg_visibility</filename> to report the correct TID for
a corrupt tuple that has been the subject of a rolled-back update
(Tom Lane)
</para>
-->
<para>
Fix makefile dependencies so that parallel make
- of <application>PL/Python</> by itself will succeed reliably
+ of <application>PL/Python</application> by itself will succeed reliably
(Pavel Raiskup)
</para>
</listitem>
Branch: REL9_1_STABLE [22cf97635] 2016-10-19 17:57:06 -0400
-->
<para>
- Update time zone data files to <application>tzdata</> release 2016h
+ Update time zone data files to <application>tzdata</application> release 2016h
for DST law changes in Palestine and Turkey, plus historical
corrections for Turkey and some regions of Russia.
Switch to numeric abbreviations for some time zones in Antarctica,
or no currency among the local population. They are in process of
reversing that policy in favor of using numeric UTC offsets in zones
where there is no evidence of real-world use of an English
- abbreviation. At least for the time being, <productname>PostgreSQL</>
+ abbreviation. At least for the time being, <productname>PostgreSQL</productname>
will continue to accept such removed abbreviations for timestamp input.
- But they will not be shown in the <structname>pg_timezone_names</>
+ But they will not be shown in the <structname>pg_timezone_names</structname>
view nor used for output.
</para>
<para>
- In this update, <literal>AMT</> is no longer shown as being in use to
- mean Armenia Time. Therefore, we have changed the <literal>Default</>
+ In this update, <literal>AMT</literal> is no longer shown as being in use to
+ mean Armenia Time. Therefore, we have changed the <literal>Default</literal>
abbreviation set to interpret it as Amazon Time, thus UTC-4 not UTC+4.
</para>
</listitem>
<title>Overview</title>
<para>
- Major enhancements in <productname>PostgreSQL</> 9.6 include:
+ Major enhancements in <productname>PostgreSQL</productname> 9.6 include:
</para>
<!-- Items in this list summarize one or more items below -->
<listitem>
<para>
- <filename>postgres_fdw</> now supports remote joins, sorts,
- <command>UPDATE</>s, and <command>DELETE</>s
+ <filename>postgres_fdw</filename> now supports remote joins, sorts,
+ <command>UPDATE</command>s, and <command>DELETE</command>s
</para>
</listitem>
<listitem>
<para>
Substantial performance improvements, especially in the area of
- scalability on multi-<acronym>CPU</>-socket servers
+ scalability on multi-<acronym>CPU</acronym>-socket servers
</para>
</listitem>
-->
<para>
Improve the <link
- linkend="pg-stat-activity-view"><structname>pg_stat_activity</></link>
+ linkend="pg-stat-activity-view"><structname>pg_stat_activity</structname></link>
view's information about what a process is waiting for (Amit
Kapila, Ildus Kurbangaliev)
</para>
<para>
Historically a process has only been shown as waiting if it was
waiting for a heavyweight lock. Now waits for lightweight locks
- and buffer pins are also shown in <structname>pg_stat_activity</>.
+ and buffer pins are also shown in <structname>pg_stat_activity</structname>.
Also, the type of lock being waited for is now visible.
- These changes replace the <structfield>waiting</> column with
- <structfield>wait_event_type</> and <structfield>wait_event</>.
+ These changes replace the <structfield>waiting</structfield> column with
+ <structfield>wait_event_type</structfield> and <structfield>wait_event</structfield>.
</para>
</listitem>
-->
<para>
In <link
- linkend="functions-formatting-table"><function>to_char()</></>,
+ linkend="functions-formatting-table"><function>to_char()</function></link>,
do not count a minus sign (when needed) as part of the field
width for time-related fields (Bruce Momjian)
</para>
<para>
- For example, <literal>to_char('-4 years'::interval, 'YY')</>
- now returns <literal>-04</>, rather than <literal>-4</>.
+ For example, <literal>to_char('-4 years'::interval, 'YY')</literal>
+ now returns <literal>-04</literal>, rather than <literal>-4</literal>.
</para>
</listitem>
-->
<para>
Make <link
- linkend="functions-datetime-table"><function>extract()</></> behave
+ linkend="functions-datetime-table"><function>extract()</function></link> behave
more reasonably with infinite inputs (Vitaly Burovoy)
</para>
<para>
- Historically the <function>extract()</> function just returned
+ Historically the <function>extract()</function> function just returned
zero given an infinite timestamp, regardless of the given
field name. Make it return <literal>infinity</literal>
or <literal>-infinity</literal> as appropriate when the
requested field is one that is monotonically increasing (e.g,
- <literal>year</>, <literal>epoch</>), or <literal>NULL</> when
- it is not (e.g., <literal>day</>, <literal>hour</>). Also,
+ <literal>year</literal>, <literal>epoch</literal>), or <literal>NULL</literal> when
+ it is not (e.g., <literal>day</literal>, <literal>hour</literal>). Also,
throw the expected error for bad field names.
</para>
</listitem>
This commit is also listed under libpq and psql
-->
<para>
- Remove PL/pgSQL's <quote>feature</> that suppressed the
- innermost line of <literal>CONTEXT</> for messages emitted by
- <command>RAISE</> commands (Pavel Stehule)
+ Remove PL/pgSQL's <quote>feature</quote> that suppressed the
+ innermost line of <literal>CONTEXT</literal> for messages emitted by
+ <command>RAISE</command> commands (Pavel Stehule)
</para>
<para>
-->
<para>
Fix the default text search parser to allow leading digits
- in <literal>email</> and <literal>host</> tokens (Artur Zakirov)
+ in <literal>email</literal> and <literal>host</literal> tokens (Artur Zakirov)
</para>
<para>
In most cases this will result in few changes in the parsing of
text. But if you have data where such addresses occur frequently,
- it may be worth rebuilding dependent <type>tsvector</> columns
+ it may be worth rebuilding dependent <type>tsvector</type> columns
and indexes so that addresses of this form will be found properly
by text searches.
</para>
2016-03-16 [9a206d063] Improve script generating unaccent rules
-->
<para>
- Extend <link linkend="unaccent"><filename>contrib/unaccent</></>'s
- standard <filename>unaccent.rules</> file to handle all diacritics
+ Extend <link linkend="unaccent"><filename>contrib/unaccent</filename></link>'s
+ standard <filename>unaccent.rules</filename> file to handle all diacritics
known to Unicode, and to expand ligatures correctly (Thomas Munro,
Léonard Benedetti)
</para>
The previous version neglected to convert some less-common letters
with diacritic marks. Also, ligatures are now expanded into
separate letters. Installations that use this rules file may wish
- to rebuild <type>tsvector</> columns and indexes that depend on the
+ to rebuild <type>tsvector</type> columns and indexes that depend on the
result.
</para>
</listitem>
-->
<para>
Remove the long-deprecated
- <literal>CREATEUSER</>/<literal>NOCREATEUSER</> options from
- <command>CREATE ROLE</> and allied commands (Tom Lane)
+ <literal>CREATEUSER</literal>/<literal>NOCREATEUSER</literal> options from
+ <command>CREATE ROLE</command> and allied commands (Tom Lane)
</para>
<para>
- <literal>CREATEUSER</> actually meant <literal>SUPERUSER</>,
+ <literal>CREATEUSER</literal> actually meant <literal>SUPERUSER</literal>,
for ancient backwards-compatibility reasons. This has been a
constant source of confusion for people who (reasonably) expect
- it to mean <literal>CREATEROLE</>. It has been deprecated for
+ it to mean <literal>CREATEROLE</literal>. It has been deprecated for
ten years now, so fix the problem by removing it.
</para>
</listitem>
2016-05-08 [7df974ee0] Disallow superuser names starting with 'pg_' in initdb
-->
<para>
- Treat role names beginning with <literal>pg_</> as reserved
+ Treat role names beginning with <literal>pg_</literal> as reserved
(Stephen Frost)
</para>
<para>
User creation of such role names is now disallowed. This prevents
- conflicts with built-in roles created by <application>initdb</>.
+ conflicts with built-in roles created by <application>initdb</application>.
</para>
</listitem>
-->
<para>
Change a column name in the
- <structname>information_schema</>.<structname>routines</>
- view from <structfield>result_cast_character_set_name</>
- to <structfield>result_cast_char_set_name</> (Clément
+ <structname>information_schema</structname>.<structname>routines</structname>
+ view from <structfield>result_cast_character_set_name</structfield>
+ to <structfield>result_cast_char_set_name</structfield> (Clément
Prévost)
</para>
<para>
The SQL:2011 standard specifies the longer name, but that appears
to be a mistake, because adjacent column names use the shorter
- style, as do other <structname>information_schema</> views.
+ style, as do other <structname>information_schema</structname> views.
</para>
</listitem>
2015-12-08 [d5563d7df] psql: Support multiple -c and -f options, and allow mixi
-->
<para>
- <application>psql</>'s <option>-c</option> option no longer implies
+ <application>psql</application>'s <option>-c</option> option no longer implies
<option>--no-psqlrc</option>
(Pavel Stehule, Catalin Iacob)
</para>
Write <option>--no-psqlrc</option> (or its
abbreviation <option>-X</option>) explicitly to obtain the old
behavior. Scripts so modified will still work with old
- versions of <application>psql</>.
+ versions of <application>psql</application>.
</para>
</listitem>
2015-07-02 [5671aaca8] Improve pg_restore's -t switch to match all types of rel
-->
<para>
- Improve <application>pg_restore</>'s <option>-t</option> option to
+ Improve <application>pg_restore</application>'s <option>-t</option> option to
match all types of relations, not only plain tables (Craig Ringer)
</para>
</listitem>
2016-02-12 [59a884e98] Change delimiter used for display of NextXID
-->
<para>
- Change the display format used for <literal>NextXID</> in
- <application>pg_controldata</> and related places (Joe Conway,
+ Change the display format used for <literal>NextXID</literal> in
+ <application>pg_controldata</application> and related places (Joe Conway,
Bruce Momjian)
</para>
<para>
Display epoch-and-transaction-ID values in the format
- <replaceable>number</><literal>:</><replaceable>number</>.
+ <replaceable>number</replaceable><literal>:</literal><replaceable>number</replaceable>.
The previous format
- <replaceable>number</><literal>/</><replaceable>number</> was
- confusingly similar to that used for <acronym>LSN</>s.
+ <replaceable>number</replaceable><literal>/</literal><replaceable>number</replaceable> was
+ confusingly similar to that used for <acronym>LSN</acronym>s.
</para>
</listitem>
Many of the standard extensions have been updated to allow their
functions to be executed within parallel query worker processes.
These changes will not take effect in
- databases <application>pg_upgrade</>'d from prior versions unless
- you apply <command>ALTER EXTENSION UPDATE</> to each such extension
+ databases <application>pg_upgrade</application>'d from prior versions unless
+ you apply <command>ALTER EXTENSION UPDATE</command> to each such extension
(in each database of a cluster).
</para>
</listitem>
</para>
<para>
- With 9.6, <productname>PostgreSQL</> introduces initial support
+ With 9.6, <productname>PostgreSQL</productname> introduces initial support
for parallel execution of large queries. Only strictly read-only
queries where the driving table is accessed via a sequential scan
can be parallelized. Hash joins and nested loops can be performed
2015-09-02 [30bb26b5e] Allow usage of huge maintenance_work_mem for GIN build.
-->
<para>
- Allow <link linkend="GIN"><acronym>GIN</></> index builds to
+ Allow <link linkend="gin"><acronym>GIN</acronym></link> index builds to
make effective use of <xref linkend="guc-maintenance-work-mem">
settings larger than 1 GB (Robert Abraham, Teodor Sigaev)
</para>
-->
<para>
Add <link
- linkend="functions-admin-index"><function>gin_clean_pending_list()</></>
+ linkend="functions-admin-index"><function>gin_clean_pending_list()</function></link>
function to allow manual invocation of pending-list cleanup for a
GIN index (Jeff Janes)
</para>
-->
<para>
Improve handling of dead index tuples in <link
- linkend="GiST">GiST</> indexes (Anastasia Lubennikova)
+ linkend="gist">GiST</link> indexes (Anastasia Lubennikova)
</para>
<para>
2016-03-30 [acdf2a8b3] Introduce SP-GiST operator class over box.
-->
<para>
- Add an <link linkend="SPGiST">SP-GiST</link> operator class for
- type <type>box</> (Alexander Lebedev)
+ Add an <link linkend="spgist">SP-GiST</link> operator class for
+ type <type>box</type> (Alexander Lebedev)
</para>
</listitem>
</para>
<para>
- The new approach makes better use of the <acronym>CPU</> cache
+ The new approach makes better use of the <acronym>CPU</acronym> cache
for typical cache sizes and data volumes. Where necessary,
the behavior can be adjusted via the new configuration parameter
- <xref linkend="guc-replacement-sort-tuples">.
+ <literal>replacement_sort_tuples</literal>.
</para>
</listitem>
2016-02-17 [f1f5ec1ef] Reuse abbreviated keys in ordered [set] aggregates.
-->
<para>
- Speed up sorting of <type>uuid</>, <type>bytea</>, and
- <type>char(n)</> fields by using <quote>abbreviated</> keys
+ Speed up sorting of <type>uuid</type>, <type>bytea</type>, and
+ <type>char(n)</type> fields by using <quote>abbreviated</quote> keys
(Peter Geoghegan)
</para>
<para>
Support for abbreviated keys has also been
added to the non-default operator classes <link
- linkend="indexes-opclass"><literal>text_pattern_ops</></>,
- <literal>varchar_pattern_ops</>, and
- <literal>bpchar_pattern_ops</>. Processing of ordered-set
+ linkend="indexes-opclass"><literal>text_pattern_ops</literal></link>,
+ <literal>varchar_pattern_ops</literal>, and
+ <literal>bpchar_pattern_ops</literal>. Processing of ordered-set
aggregates can also now exploit abbreviated keys.
</para>
</listitem>
2015-12-16 [b648b7034] Speed up CREATE INDEX CONCURRENTLY's TID sort.
-->
<para>
- Speed up <command>CREATE INDEX CONCURRENTLY</> by treating
- <acronym>TID</>s as 64-bit integers during sorting (Peter
+ Speed up <command>CREATE INDEX CONCURRENTLY</command> by treating
+ <acronym>TID</acronym>s as 64-bit integers during sorting (Peter
Geoghegan)
</para>
</listitem>
2015-09-03 [4aec49899] Assorted code review for recent ProcArrayLock patch.
-->
<para>
- Reduce contention for the <literal>ProcArrayLock</> (Amit Kapila,
+ Reduce contention for the <literal>ProcArrayLock</literal> (Amit Kapila,
Robert Haas)
</para>
</listitem>
-->
<para>
Use atomic operations, rather than a spinlock, to protect an
- <literal>LWLock</>'s wait queue (Andres Freund)
+ <literal>LWLock</literal>'s wait queue (Andres Freund)
</para>
</listitem>
-->
<para>
Partition the shared hash table freelist to reduce contention on
- multi-<acronym>CPU</>-socket servers (Aleksander Alekseev)
+ multi-<acronym>CPU</acronym>-socket servers (Aleksander Alekseev)
</para>
</listitem>
2016-04-04 [391159e03] Partially revert commit 3d3bf62f30200500637b24fdb7b992a9
-->
<para>
- Improve <command>ANALYZE</>'s estimates for columns with many nulls
+ Improve <command>ANALYZE</command>'s estimates for columns with many nulls
(Tomas Vondra, Alex Shulgin)
</para>
<para>
- Previously <command>ANALYZE</> tended to underestimate the number
- of non-<literal>NULL</> distinct values in a column with many
- <literal>NULL</>s, and was also inaccurate in computing the
+ Previously <command>ANALYZE</command> tended to underestimate the number
+ of non-<literal>NULL</literal> distinct values in a column with many
+ <literal>NULL</literal>s, and was also inaccurate in computing the
most-common values.
</para>
</listitem>
</para>
<para>
- If a table <literal>t</> has a foreign key restriction, say
- <literal>(a,b) REFERENCES r (x,y)</>, then a <literal>WHERE</>
- condition such as <literal>t.a = r.x AND t.b = r.y</> cannot
- select more than one <literal>r</> row per <literal>t</> row.
- The planner formerly considered these <literal>AND</> conditions
+ If a table <literal>t</literal> has a foreign key restriction, say
+ <literal>(a,b) REFERENCES r (x,y)</literal>, then a <literal>WHERE</literal>
+ condition such as <literal>t.a = r.x AND t.b = r.y</literal> cannot
+ select more than one <literal>r</literal> row per <literal>t</literal> row.
+ The planner formerly considered these <literal>AND</literal> conditions
to be independent and would often drastically misestimate
- selectivity as a result. Now it compares the <literal>WHERE</>
+ selectivity as a result. Now it compares the <literal>WHERE</literal>
conditions to applicable foreign key constraints and produces
better estimates.
</para>
</sect4>
<sect4>
- <title><command>VACUUM</></title>
+ <title><command>VACUUM</command></title>
<itemizedlist>
<para>
If necessary, vacuum can be forced to process all-frozen
- pages using the new <literal>DISABLE_PAGE_SKIPPING</> option.
+ pages using the new <literal>DISABLE_PAGE_SKIPPING</literal> option.
Normally this should never be needed, but it might help in
recovering from visibility-map corruption.
</para>
2015-12-30 [e84290823] Avoid useless truncation attempts during VACUUM.
-->
<para>
- Avoid useless heap-truncation attempts during <command>VACUUM</>
+ Avoid useless heap-truncation attempts during <command>VACUUM</command>
(Jeff Janes, Tom Lane)
</para>
2016-08-07 [9ee1cf04a] Fix TOAST access failure in RETURNING queries.
-->
<para>
- Allow old <acronym>MVCC</> snapshots to be invalidated after a
+ Allow old <acronym>MVCC</acronym> snapshots to be invalidated after a
configurable timeout (Kevin Grittner)
</para>
<para>
Normally, deleted tuples cannot be physically removed by
- vacuuming until the last transaction that could <quote>see</>
+ vacuuming until the last transaction that could <quote>see</quote>
them is gone. A transaction that stays open for a long
time can thus cause considerable table bloat because
space cannot be recycled. This feature allows setting
a time-based limit, via the new configuration parameter
<xref linkend="guc-old-snapshot-threshold">, on how long an
- <acronym>MVCC</> snapshot is guaranteed to be valid. After that,
+ <acronym>MVCC</acronym> snapshot is guaranteed to be valid. After that,
dead tuples are candidates for removal. A transaction using an
outdated snapshot will get an error if it attempts to read a page
that potentially could have contained such data.
2016-02-11 [d4c3a156c] Remove GROUP BY columns that are functionally dependent
-->
<para>
- Ignore <literal>GROUP BY</> columns that are
+ Ignore <literal>GROUP BY</literal> columns that are
functionally dependent on other columns (David Rowley)
</para>
<para>
- If a <literal>GROUP BY</> clause includes all columns of a
+ If a <literal>GROUP BY</literal> clause includes all columns of a
non-deferred primary key, as well as other columns of the same
table, those other columns are redundant and can be dropped
from the grouping. This saves computation in many common cases.
-->
<para>
Allow use of an <link linkend="indexes-index-only-scans">index-only
- scan</link> on a partial index when the index's <literal>WHERE</>
+ scan</link> on a partial index when the index's <literal>WHERE</literal>
clause references columns that are not indexed (Tomas Vondra,
Kyotaro Horiguchi)
</para>
<para>
For example, an index defined by <command>CREATE INDEX tidx_partial
- ON t(b) WHERE a > 0</> can now be used for an index-only scan by
- a query that specifies <literal>WHERE a > 0</> and does not
- otherwise use <literal>a</>. Previously this was disallowed
- because <literal>a</> is not listed as an index column.
+ ON t(b) WHERE a > 0</command> can now be used for an index-only scan by
+ a query that specifies <literal>WHERE a > 0</literal> and does not
+ otherwise use <literal>a</literal>. Previously this was disallowed
+ because <literal>a</literal> is not listed as an index column.
</para>
</listitem>
</para>
<para>
- <productname>PostgreSQL</> writes data to the kernel's disk cache,
+ <productname>PostgreSQL</productname> writes data to the kernel's disk cache,
from where it will be flushed to physical storage in due time.
Many operating systems are not smart about managing this and allow
large amounts of dirty data to accumulate before deciding to flush
</para>
<para>
- On Linux, <function>sync_file_range()</> is used for this purpose,
+ On Linux, <function>sync_file_range()</function> is used for this purpose,
and the feature is on by default on Linux because that function has
few downsides. This flushing capability is also available on other
- platforms if they have <function>msync()</>
- or <function>posix_fadvise()</>, but those interfaces have some
+ platforms if they have <function>msync()</function>
+ or <function>posix_fadvise()</function>, but those interfaces have some
undesirable side-effects so the feature is disabled by default on
non-Linux platforms.
</para>
</para>
<para>
- For example, <command>SELECT AVG(x), VARIANCE(x) FROM tab</> can use
+ For example, <command>SELECT AVG(x), VARIANCE(x) FROM tab</command> can use
a single per-row computation for both aggregates.
</para>
</listitem>
-->
<para>
Speed up visibility tests for recently-created tuples by checking
- the current transaction's snapshot, not <structname>pg_clog</>, to
+ the current transaction's snapshot, not <structname>pg_clog</structname>, to
decide if the source transaction should be considered committed
(Jeff Janes, Tom Lane)
</para>
</para>
<para>
- Two-phase commit information is now written only to <acronym>WAL</>
- during <command>PREPARE TRANSACTION</>, and will be read back from
- <acronym>WAL</> during <command>COMMIT PREPARED</> if that happens
+ Two-phase commit information is now written only to <acronym>WAL</acronym>
+ during <command>PREPARE TRANSACTION</command>, and will be read back from
+ <acronym>WAL</acronym> during <command>COMMIT PREPARED</command> if that happens
soon thereafter. A separate state file is created only if the
pending transaction does not get committed or aborted by the time
of the next checkpoint.
2016-02-06 [aa2387e2f] Improve speed of timestamp/time/date output functions.
-->
<para>
- Improve speed of the output functions for <type>timestamp</>,
- <type>time</>, and <type>date</> data types (David Rowley,
+ Improve speed of the output functions for <type>timestamp</type>,
+ <type>time</type>, and <type>date</type> data types (David Rowley,
Andres Freund)
</para>
</listitem>
-->
<para>
Avoid some unnecessary cancellations of hot-standby queries
- during replay of actions that take <literal>AccessExclusive</>
+ during replay of actions that take <literal>AccessExclusive</literal>
locks (Jeff Janes)
</para>
</listitem>
2015-07-05 [6c82d8d1f] Further reduce overhead for passing plpgsql variables to
-->
<para>
- Speed up expression evaluation in <application>PL/pgSQL</> by
- keeping <literal>ParamListInfo</> entries for simple variables
+ Speed up expression evaluation in <application>PL/pgSQL</application> by
+ keeping <literal>ParamListInfo</literal> entries for simple variables
valid at all times (Tom Lane)
</para>
</listitem>
2015-07-06 [4f33621f3] Don't set SO_SNDBUF on recent Windows versions that have
-->
<para>
- Avoid reducing the <literal>SO_SNDBUF</> setting below its default
+ Avoid reducing the <literal>SO_SNDBUF</literal> setting below its default
on recent Windows versions (Chen Huajun)
</para>
</listitem>
-->
<para>
Add <link
- linkend="pg-stat-progress-vacuum-view"><structname>pg_stat_progress_vacuum</></link>
- system view to provide progress reporting for <command>VACUUM</>
+ linkend="pg-stat-progress-vacuum-view"><structname>pg_stat_progress_vacuum</structname></link>
+ system view to provide progress reporting for <command>VACUUM</command>
operations (Amit Langote, Robert Haas, Vinayak Pokale, Rahila Syed)
</para>
</listitem>
-->
<para>
Add <link
- linkend="functions-controldata"><function>pg_control_system()</></>,
- <function>pg_control_checkpoint()</>,
- <function>pg_control_recovery()</>, and
- <function>pg_control_init()</> functions to expose fields of
- <filename>pg_control</> to <acronym>SQL</> (Joe Conway, Michael
+ linkend="functions-controldata"><function>pg_control_system()</function></link>,
+ <function>pg_control_checkpoint()</function>,
+ <function>pg_control_recovery()</function>, and
+ <function>pg_control_init()</function> functions to expose fields of
+ <filename>pg_control</filename> to <acronym>SQL</acronym> (Joe Conway, Michael
Paquier)
</para>
</listitem>
2016-02-17 [a5c43b886] Add new system view, pg_config
-->
<para>
- Add <link linkend="view-pg-config"><structname>pg_config</></link>
+ Add <link linkend="view-pg-config"><structname>pg_config</structname></link>
system view (Joe Conway)
</para>
<para>
This view exposes the same information available from
- the <application>pg_config</> command-line utility,
+ the <application>pg_config</application> command-line utility,
namely assorted compile-time configuration information for
- <productname>PostgreSQL</>.
+ <productname>PostgreSQL</productname>.
</para>
</listitem>
2015-08-10 [3f811c2d6] Add confirmed_flush column to pg_replication_slots.
-->
<para>
- Add a <structfield>confirmed_flush_lsn</> column to the <link
- linkend="view-pg-replication-slots"><structname>pg_replication_slots</></link>
+ Add a <structfield>confirmed_flush_lsn</structfield> column to the <link
+ linkend="view-pg-replication-slots"><structname>pg_replication_slots</structname></link>
system view (Marko Tiikkaja)
</para>
</listitem>
-->
<para>
Add <link
- linkend="pg-stat-wal-receiver-view"><structname>pg_stat_wal_receiver</></link>
+ linkend="pg-stat-wal-receiver-view"><structname>pg_stat_wal_receiver</structname></link>
system view to provide information about the state of a hot-standby
- server's <acronym>WAL</> receiver process (Michael Paquier)
+ server's <acronym>WAL</acronym> receiver process (Michael Paquier)
</para>
</listitem>
-->
<para>
Add <link
- linkend="functions-info-session-table"><function>pg_blocking_pids()</></>
+ linkend="functions-info-session-table"><function>pg_blocking_pids()</function></link>
function to reliably identify which sessions block which others
(Tom Lane)
</para>
This function returns an array of the process IDs of any
sessions that are blocking the session with the given process ID.
Historically users have obtained such information using a self-join
- on the <structname>pg_locks</> view. However, it is unreasonably
+ on the <structname>pg_locks</structname> view. However, it is unreasonably
tedious to do it that way with any modicum of correctness, and
the addition of parallel queries has made the old approach entirely
impractical, since locks might be held or awaited by child worker
-->
<para>
Add function <link
- linkend="functions-admin-backup-table"><function>pg_current_xlog_flush_location()</></>
+ linkend="functions-admin-backup-table"><function>pg_current_xlog_flush_location()</function></link>
to expose the current transaction log flush location (Tomas Vondra)
</para>
</listitem>
-->
<para>
Add function <link
- linkend="functions-info-session-table"><function>pg_notification_queue_usage()</></>
- to report how full the <command>NOTIFY</> queue is (Brendan Jurd)
+ linkend="functions-info-session-table"><function>pg_notification_queue_usage()</function></link>
+ to report how full the <command>NOTIFY</command> queue is (Brendan Jurd)
</para>
</listitem>
The memory usage dump that is output to the postmaster log during an
out-of-memory failure now summarizes statistics when there are a
large number of memory contexts, rather than possibly generating
- a very large report. There is also a <quote>grand total</>
+ a very large report. There is also a <quote>grand total</quote>
summary line now.
</para>
</listitem>
</sect4>
<sect4>
- <title><acronym>Authentication</></title>
+ <title><acronym>Authentication</acronym></title>
<itemizedlist>
2016-04-08 [34c33a1f0] Add BSD authentication method.
-->
<para>
- Add a <link linkend="auth-bsd"><acronym>BSD</> authentication
+ Add a <link linkend="auth-bsd"><acronym>BSD</acronym> authentication
method</link> to allow use of
- the <systemitem class="osname">BSD</> Authentication service for
- <productname>PostgreSQL</> client authentication (Marisa Emerson)
+ the <systemitem class="osname">BSD</systemitem> Authentication service for
+ <productname>PostgreSQL</productname> client authentication (Marisa Emerson)
</para>
<para>
BSD Authentication is currently only available on <systemitem
- class="osname">OpenBSD</>.
+ class="osname">OpenBSD</systemitem>.
</para>
</listitem>
2016-04-08 [2f1d2b7a7] Set PAM_RHOST item for PAM authentication
-->
<para>
- When using <link linkend="auth-pam"><acronym>PAM</>
+ When using <link linkend="auth-pam"><acronym>PAM</acronym>
authentication</link>, provide the client IP address or host name
- to <acronym>PAM</> modules via the <literal>PAM_RHOST</> item
+ to <acronym>PAM</acronym> modules via the <literal>PAM_RHOST</literal> item
(Grzegorz Sampolski)
</para>
</listitem>
<para>
All ordinarily-reachable password authentication failure cases
- should now provide specific <literal>DETAIL</> fields in the log.
+ should now provide specific <literal>DETAIL</literal> fields in the log.
</para>
</listitem>
2015-09-06 [643beffe8] Support RADIUS passwords up to 128 characters
-->
<para>
- Support <link linkend="auth-radius"><acronym>RADIUS</> passwords</>
+ Support <link linkend="auth-radius"><acronym>RADIUS</acronym> passwords</link>
up to 128 characters long (Marko Tiikkaja)
</para>
</listitem>
2016-04-08 [35e2e357c] Add authentication parameters compat_realm and upn_usena
-->
<para>
- Add new <link linkend="sspi-auth"><acronym>SSPI</>
+ Add new <link linkend="sspi-auth"><acronym>SSPI</acronym>
authentication</link> parameters
- <varname>compat_realm</> and <varname>upn_username</> to control
- whether <productname>NetBIOS</> or <productname>Kerberos</>
- realm names and user names are used during <acronym>SSPI</>
+ <varname>compat_realm</varname> and <varname>upn_username</varname> to control
+ whether <productname>NetBIOS</productname> or <productname>Kerberos</productname>
+ realm names and user names are used during <acronym>SSPI</acronym>
authentication (Christian Ullrich)
</para>
</listitem>
2015-09-08 [1aba62ec6] Allow per-tablespace effective_io_concurrency
-->
<para>
- Allow <varname>effective_io_concurrency</> to be set per-tablespace
+ Allow <varname>effective_io_concurrency</varname> to be set per-tablespace
to support cases where different tablespaces have different I/O
characteristics (Julien Rouhaud)
</para>
2015-09-07 [b1e1862a1] Coordinate log_line_prefix options 'm' and 'n' to share
-->
<para>
- Add <xref linkend="guc-log-line-prefix"> option <literal>%n</> to
+ Add <xref linkend="guc-log-line-prefix"> option <literal>%n</literal> to
print the current time in Unix epoch form, with milliseconds (Tomas
Vondra, Jeff Davis)
</para>
Add <xref linkend="guc-syslog-sequence-numbers"> and <xref
linkend="guc-syslog-split-messages"> configuration parameters
to provide more control over the message format when logging to
- <systemitem>syslog</> (Peter Eisentraut)
+ <systemitem>syslog</systemitem> (Peter Eisentraut)
</para>
</listitem>
2016-03-18 [b555ed810] Merge wal_level "archive" and "hot_standby" into new nam
-->
<para>
- Merge the <literal>archive</> and <literal>hot_standby</> values
+ Merge the <literal>archive</literal> and <literal>hot_standby</literal> values
of the <xref linkend="guc-wal-level"> configuration parameter
- into a single new value <literal>replica</> (Peter Eisentraut)
+ into a single new value <literal>replica</literal> (Peter Eisentraut)
</para>
<para>
Making a distinction between these settings is no longer useful,
and merging them is a step towards a planned future simplification
of replication setup. The old names are still accepted but are
- converted to <literal>replica</> internally.
+ converted to <literal>replica</literal> internally.
</para>
</listitem>
2016-02-02 [7d17e683f] Add support for systemd service notifications
-->
<para>
- Add configure option <option>--with-systemd</> to enable
- calling <function>sd_notify()</> at server start and stop (Peter
+ Add configure option <option>--with-systemd</option> to enable
+ calling <function>sd_notify()</function> at server start and stop (Peter
Eisentraut)
</para>
<para>
- This allows the use of <application>systemd</> service units of
- type <literal>notify</>, which greatly simplifies the management
- of <productname>PostgreSQL</> under <application>systemd</>.
+ This allows the use of <application>systemd</application> service units of
+ type <literal>notify</literal>, which greatly simplifies the management
+ of <productname>PostgreSQL</productname> under <application>systemd</application>.
</para>
</listitem>
2016-03-19 [9a83564c5] Allow SSL server key file to have group read access if o
-->
<para>
- Allow the server's <acronym>SSL</> key file to have group read
- access if it is owned by <literal>root</> (Christoph Berg)
+ Allow the server's <acronym>SSL</acronym> key file to have group read
+ access if it is owned by <literal>root</literal> (Christoph Berg)
</para>
<para>
Formerly, we insisted the key file be owned by the
- user running the <productname>PostgreSQL</> server, but
+ user running the <productname>PostgreSQL</productname> server, but
that is inconvenient on some systems (such as <systemitem
- class="osname">Debian</>) that are configured to manage
+ class="osname">Debian</systemitem>) that are configured to manage
certificates centrally. Therefore, allow the case where the key
- file is owned by <literal>root</> and has group read access.
+ file is owned by <literal>root</literal> and has group read access.
It is up to the operating system administrator to ensure that
the group does not include any untrusted users.
</para>
2016-04-26 [c6ff84b06] Emit invalidations to standby for transactions without x
-->
<para>
- Ensure that invalidation messages are recorded in <acronym>WAL</>
- even when issued by a transaction that has no <acronym>XID</>
+ Ensure that invalidation messages are recorded in <acronym>WAL</acronym>
+ even when issued by a transaction that has no <acronym>XID</acronym>
assigned (Andres Freund)
</para>
2016-04-28 [e2c79e14d] Prevent multiple cleanup process for pending list in GIN
-->
<para>
- Prevent multiple processes from trying to clean a <acronym>GIN</>
+ Prevent multiple processes from trying to clean a <acronym>GIN</acronym>
index's pending list concurrently (Teodor Sigaev, Jeff Janes)
</para>
2016-03-29 [314cbfc5d] Add new replication mode synchronous_commit = 'remote_ap
-->
<para>
- Add new setting <literal>remote_apply</> for configuration
+ Add new setting <literal>remote_apply</literal> for configuration
parameter <xref linkend="guc-synchronous-commit"> (Thomas Munro)
</para>
<para>
In this mode, the master waits for the transaction to be
- <emphasis>applied</> on the standby server, not just written
+ <emphasis>applied</emphasis> on the standby server, not just written
to disk. That means that you can count on a transaction started
on the standby to see all commits previously acknowledged by
the master.
<para>
Add a feature to the replication
protocol, and a corresponding option to <link
- linkend="functions-replication-table"><function>pg_create_physical_replication_slot()</></>,
- to allow reserving <acronym>WAL</> immediately when creating a
+ linkend="functions-replication-table"><function>pg_create_physical_replication_slot()</function></link>,
+ to allow reserving <acronym>WAL</acronym> immediately when creating a
replication slot (Gurjeet Singh, Michael Paquier)
</para>
<para>
This allows the creation of a replication slot to guarantee
- that all the <acronym>WAL</> needed for a base backup will be
+ that all the <acronym>WAL</acronym> needed for a base backup will be
available.
</para>
</listitem>
-->
<para>
Add a <option>--slot</option> option to
- <link linkend="app-pgbasebackup"><application>pg_basebackup</></>
+ <link linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
(Peter Eisentraut)
</para>
<para>
- This lets <application>pg_basebackup</> use a replication
- slot defined for <acronym>WAL</> streaming. After the base
+ This lets <application>pg_basebackup</application> use a replication
+ slot defined for <acronym>WAL</acronym> streaming. After the base
backup completes, selecting the same slot for regular streaming
replication allows seamless startup of the new standby server.
</para>
-->
<para>
Extend <link
- linkend="functions-admin-backup-table"><function>pg_start_backup()</></>
- and <function>pg_stop_backup()</> to support non-exclusive backups
+ linkend="functions-admin-backup-table"><function>pg_start_backup()</function></link>
+ and <function>pg_stop_backup()</function> to support non-exclusive backups
(Magnus Hagander)
</para>
</listitem>
-->
<para>
Allow functions that return sets of tuples to return simple
- <literal>NULL</>s (Andrew Gierth, Tom Lane)
+ <literal>NULL</literal>s (Andrew Gierth, Tom Lane)
</para>
<para>
- In the context of <literal>SELECT FROM function(...)</>, a function
+ In the context of <literal>SELECT FROM function(...)</literal>, a function
that returned a set of composite values was previously not allowed
- to return a plain <literal>NULL</> value as part of the set.
- Now that is allowed and interpreted as a row of <literal>NULL</>s.
+ to return a plain <literal>NULL</literal> value as part of the set.
+ Now that is allowed and interpreted as a row of <literal>NULL</literal>s.
This avoids corner-case errors with, for example, unnesting an
array of composite values.
</para>
-->
<para>
Fully support array subscripts and field selections in the
- target column list of an <command>INSERT</> with multiple
- <literal>VALUES</> rows (Tom Lane)
+ target column list of an <command>INSERT</command> with multiple
+ <literal>VALUES</literal> rows (Tom Lane)
</para>
<para>
Previously, such cases failed if the same target column was
mentioned more than once, e.g., <literal>INSERT INTO tab (x[1],
- x[2]) VALUES (...)</>.
+ x[2]) VALUES (...)</literal>.
</para>
</listitem>
2016-03-25 [d543170f2] Don't split up SRFs when choosing to postpone SELECT out
-->
<para>
- When appropriate, postpone evaluation of <command>SELECT</>
- output expressions until after an <literal>ORDER BY</> sort
+ When appropriate, postpone evaluation of <command>SELECT</command>
+ output expressions until after an <literal>ORDER BY</literal> sort
(Konstantin Knizhnik)
</para>
<para>
This change ensures that volatile or expensive functions in the
output list are executed in the order suggested by <literal>ORDER
- BY</>, and that they are not evaluated more times than required
- when there is a <literal>LIMIT</> clause. Previously, these
+ BY</literal>, and that they are not evaluated more times than required
+ when there is a <literal>LIMIT</literal> clause. Previously, these
properties held if the ordering was performed by an index scan or
pre-merge-join sort, but not if it was performed by a top-level
sort.
</para>
<para>
- This change allows command tags, e.g. <command>SELECT</>, to
+ This change allows command tags, e.g. <command>SELECT</command>, to
correctly report tuple counts larger than 4 billion. This also
- applies to PL/pgSQL's <command>GET DIAGNOSTICS ... ROW_COUNT</>
+ applies to PL/pgSQL's <command>GET DIAGNOSTICS ... ROW_COUNT</command>
command.
</para>
</listitem>
-->
<para>
Avoid doing encoding conversions by converting through the
- <literal>MULE_INTERNAL</> encoding (Tom Lane)
+ <literal>MULE_INTERNAL</literal> encoding (Tom Lane)
</para>
<para>
Previously, many conversions for Cyrillic and Central
European single-byte encodings were done by converting to a
- related <literal>MULE_INTERNAL</> coding scheme and then to the
+ related <literal>MULE_INTERNAL</literal> coding scheme and then to the
destination encoding. Aside from being inefficient, this meant
that when the conversion encountered an untranslatable character,
the error message would confusingly complain about failure to
- convert to or from <literal>MULE_INTERNAL</>, rather than the
+ convert to or from <literal>MULE_INTERNAL</literal>, rather than the
user-visible encoding.
</para>
</listitem>
<para>
Previously, the foreign join pushdown infrastructure left the
question of security entirely up to individual foreign data
- wrappers, but that made it too easy for an <acronym>FDW</> to
+ wrappers, but that made it too easy for an <acronym>FDW</acronym> to
inadvertently create subtle security holes. So, make it the core
code's job to determine which role ID will access each table,
and do not attempt join pushdown unless the role is the same for
2015-11-27 [92e38182d] COPY (INSERT/UPDATE/DELETE .. RETURNING ..)
-->
<para>
- Allow <command>COPY</> to copy the output of an
- <literal>INSERT</>/<literal>UPDATE</>/<literal>DELETE</>
- ... <literal>RETURNING</> query (Marko Tiikkaja)
+ Allow <command>COPY</command> to copy the output of an
+ <literal>INSERT</literal>/<literal>UPDATE</literal>/<literal>DELETE</literal>
+ ... <literal>RETURNING</literal> query (Marko Tiikkaja)
</para>
<para>
- Previously, an intermediate <acronym>CTE</> had to be written to
+ Previously, an intermediate <acronym>CTE</acronym> had to be written to
get this result.
</para>
</listitem>
2016-04-05 [f2fcad27d] Support ALTER THING .. DEPENDS ON EXTENSION
-->
<para>
- Introduce <command>ALTER <replaceable>object</> DEPENDS ON
+ Introduce <command>ALTER <replaceable>object</replaceable> DEPENDS ON
EXTENSION</command> (Abhijit Menon-Sen)
</para>
<para>
This command allows a database object to be marked as depending
on an extension, so that it will be dropped automatically if
- the extension is dropped (without needing <literal>CASCADE</>).
+ the extension is dropped (without needing <literal>CASCADE</literal>).
However, the object is not part of the extension, and thus will
- be dumped separately by <application>pg_dump</>.
+ be dumped separately by <application>pg_dump</application>.
</para>
</listitem>
2015-11-19 [bc4996e61] Make ALTER .. SET SCHEMA do nothing, instead of throwing
-->
<para>
- Make <command>ALTER <replaceable>object</> SET SCHEMA</> do nothing
+ Make <command>ALTER <replaceable>object</replaceable> SET SCHEMA</command> do nothing
when the object is already in the requested schema, rather than
throwing an error as it historically has for most object types
(Marti Raudsepp)
2015-07-29 [2cd40adb8] Add IF NOT EXISTS processing to ALTER TABLE ADD COLUMN
-->
<para>
- Add an <option>IF NOT EXISTS</> option to <command>ALTER TABLE
- ADD COLUMN</> (Fabrízio de Royes Mello)
+ Add an <option>IF NOT EXISTS</option> option to <command>ALTER TABLE
+ ADD COLUMN</command> (Fabrízio de Royes Mello)
</para>
</listitem>
2016-03-10 [fcb4bfddb] Reduce lock level for altering fillfactor
-->
<para>
- Reduce the lock strength needed by <command>ALTER TABLE</>
+ Reduce the lock strength needed by <command>ALTER TABLE</command>
when setting fillfactor and autovacuum-related relation options
(Fabrízio de Royes Mello, Simon Riggs)
</para>
-->
<para>
Introduce <link linkend="sql-create-access-method"><command>CREATE
- ACCESS METHOD</></> to allow extensions to create index access
+ ACCESS METHOD</command></link> to allow extensions to create index access
methods (Alexander Korotkov, Petr Jelínek)
</para>
</listitem>
2015-10-03 [b67aaf21e] Add CASCADE support for CREATE EXTENSION.
-->
<para>
- Add a <literal>CASCADE</> option to <command>CREATE
+ Add a <literal>CASCADE</literal> option to <command>CREATE
EXTENSION</command> to automatically create any extensions the
requested one depends on (Petr Jelínek)
</para>
2015-10-05 [b943f502b] Have CREATE TABLE LIKE add OID column if any LIKEd table
-->
<para>
- Make <command>CREATE TABLE ... LIKE</> include an <type>OID</>
+ Make <command>CREATE TABLE ... LIKE</command> include an <type>OID</type>
column if any source table has one (Bruce Momjian)
</para>
</listitem>
2015-12-16 [f27a6b15e] Mark CHECK constraints declared NOT VALID valid if creat
-->
<para>
- If a <literal>CHECK</> constraint is declared <literal>NOT VALID</>
+ If a <literal>CHECK</literal> constraint is declared <literal>NOT VALID</literal>
in a table creation command, automatically mark it as valid
(Amit Langote, Amul Sul)
</para>
<para>
This is safe because the table has no existing rows. This matches
- the longstanding behavior of <literal>FOREIGN KEY</> constraints.
+ the longstanding behavior of <literal>FOREIGN KEY</literal> constraints.
</para>
</listitem>
2016-03-25 [c94959d41] Fix DROP OPERATOR to reset oprcom/oprnegate links to the
-->
<para>
- Fix <command>DROP OPERATOR</> to clear
- <structname>pg_operator</>.<structfield>oprcom</> and
- <structname>pg_operator</>.<structfield>oprnegate</> links to
+ Fix <command>DROP OPERATOR</command> to clear
+ <structname>pg_operator</structname>.<structfield>oprcom</structfield> and
+ <structname>pg_operator</structname>.<structfield>oprnegate</structfield> links to
the dropped operator (Roma Sokolov)
</para>
<para>
Formerly such links were left as-is, which could pose a problem
in the somewhat unlikely event that the dropped operator's
- <type>OID</> was reused for another operator.
+ <type>OID</type> was reused for another operator.
</para>
</listitem>
2016-07-11 [4d042999f] Print a given subplan only once in EXPLAIN.
-->
<para>
- Do not show the same subplan twice in <command>EXPLAIN</> output
+ Do not show the same subplan twice in <command>EXPLAIN</command> output
(Tom Lane)
</para>
<para>
In certain cases, typically involving SubPlan nodes in index
- conditions, <command>EXPLAIN</> would print data for the same
+ conditions, <command>EXPLAIN</command> would print data for the same
subplan twice.
</para>
</listitem>
-->
<para>
Disallow creation of indexes on system columns, except for
- <type>OID</> columns (David Rowley)
+ <type>OID</type> columns (David Rowley)
</para>
<para>
checks that would throw an error if they were called by a
non-superuser. This forced the use of superuser roles for
some relatively pedestrian tasks. The hard-wired error checks
- are now gone in favor of making <application>initdb</> revoke the
- default public <literal>EXECUTE</> privilege on these functions.
+ are now gone in favor of making <application>initdb</application> revoke the
+ default public <literal>EXECUTE</literal> privilege on these functions.
This allows installations to choose to grant usage of such
functions to trusted roles that do not need all superuser
privileges.
</para>
<para>
- Currently the only such role is <literal>pg_signal_backend</>,
+ Currently the only such role is <literal>pg_signal_backend</literal>,
but more are expected to be added in future.
</para>
</listitem>
2016-06-27 [6734a1cac] Change predecence of phrase operator.
-->
<para>
- Improve <link linkend="textsearch">full-text search</> to support
+ Improve <link linkend="textsearch">full-text search</link> to support
searching for phrases, that is, lexemes appearing adjacent to each
other in a specific order, or with a specified distance between
them (Teodor Sigaev, Oleg Bartunov, Dmitry Ivanov)
</para>
<para>
- A phrase-search query can be specified in <type>tsquery</>
- input using the new operators <literal><-></> and
- <literal><<replaceable>N</>></literal>. The former means
+ A phrase-search query can be specified in <type>tsquery</type>
+ input using the new operators <literal><-></literal> and
+ <literal><<replaceable>N</replaceable>></literal>. The former means
that the lexemes before and after it must appear adjacent to
each other in that order. The latter means they must be exactly
- <replaceable>N</> lexemes apart.
+ <replaceable>N</replaceable> lexemes apart.
</para>
</listitem>
-->
<para>
Allow omitting one or both boundaries in an array slice specifier,
- e.g. <literal>array_col[3:]</> (Yury Zhuravlev)
+ e.g. <literal>array_col[3:]</literal> (Yury Zhuravlev)
</para>
<para>
<para>
This change prevents unexpected out-of-range errors for
- <type>timestamp with time zone</> values very close to the
- implementation limits. Previously, the <quote>same</> value might
- be accepted or not depending on the <varname>timezone</> setting,
+ <type>timestamp with time zone</type> values very close to the
+ implementation limits. Previously, the <quote>same</quote> value might
+ be accepted or not depending on the <varname>timezone</varname> setting,
meaning that a dump and reload could fail on a value that had been
accepted when presented. Now the limits are enforced according
- to the equivalent <acronym>UTC</> time, not local time, so as to
- be independent of <varname>timezone</>.
+ to the equivalent <acronym>UTC</acronym> time, not local time, so as to
+ be independent of <varname>timezone</varname>.
</para>
<para>
- Also, <productname>PostgreSQL</> is now more careful to detect
+ Also, <productname>PostgreSQL</productname> is now more careful to detect
overflow in operations that compute new date or timestamp values,
- such as <type>date</> <literal>+</> <type>integer</>.
+ such as <type>date</type> <literal>+</literal> <type>integer</type>.
</para>
</listitem>
2016-03-30 [50861cd68] Improve portability of I/O behavior for the geometric ty
-->
<para>
- For geometric data types, make sure <literal>infinity</> and
- <literal>NaN</> component values are treated consistently during
+ For geometric data types, make sure <literal>infinity</literal> and
+ <literal>NaN</literal> component values are treated consistently during
input and output (Tom Lane)
</para>
<para>
Such values will now always print the same as they would in
- a simple <type>float8</> column, and be accepted the same way
+ a simple <type>float8</type> column, and be accepted the same way
on input. Previously the behavior was platform-dependent.
</para>
</listitem>
-->
<para>
Upgrade
- the <link linkend="textsearch-ispell-dictionary"><literal>ispell</></>
- dictionary type to handle modern <productname>Hunspell</> files and
+ the <link linkend="textsearch-ispell-dictionary"><literal>ispell</literal></link>
+ dictionary type to handle modern <productname>Hunspell</productname> files and
support more languages (Artur Zakirov)
</para>
</listitem>
-->
<para>
Implement look-behind constraints
- in <link linkend="functions-posix-regexp">regular expressions</>
+ in <link linkend="functions-posix-regexp">regular expressions</link>
(Tom Lane)
</para>
-->
<para>
In regular expressions, if an apparent three-digit octal escape
- <literal>\</><replaceable>nnn</> would exceed 377 (255 decimal),
+ <literal>\</literal><replaceable>nnn</replaceable> would exceed 377 (255 decimal),
assume it is a two-digit octal escape instead (Tom Lane)
</para>
<para>
- This makes the behavior match current <application>Tcl</> releases.
+ This makes the behavior match current <application>Tcl</application> releases.
</para>
</listitem>
2015-11-07 [c5e86ea93] Add "xid <> xid" and "xid <> int4" operators.
-->
<para>
- Add transaction ID operators <type>xid</> <literal><></>
- <type>xid</> and <type>xid</> <literal><></> <type>int4</>,
+ Add transaction ID operators <type>xid</type> <literal><></literal>
+ <type>xid</type> and <type>xid</type> <literal><></literal> <type>int4</type>,
for consistency with the corresponding equality operators
(Michael Paquier)
</para>
-->
<para>
Add <link
- linkend="functions-json-processing-table"><function>jsonb_insert()</></>
- function to insert a new element into a <type>jsonb</> array,
- or a not-previously-existing key into a <type>jsonb</> object
+ linkend="functions-json-processing-table"><function>jsonb_insert()</function></link>
+ function to insert a new element into a <type>jsonb</type> array,
+ or a not-previously-existing key into a <type>jsonb</type> object
(Dmitry Dolgov)
</para>
</listitem>
2016-05-05 [18a02ad2a] Fix corner-case loss of precision in numeric pow() calcu
-->
<para>
- Improve the accuracy of the <function>ln()</>, <function>log()</>,
- <function>exp()</>, and <function>pow()</> functions for type
- <type>numeric</> (Dean Rasheed)
+ Improve the accuracy of the <function>ln()</function>, <function>log()</function>,
+ <function>exp()</function>, and <function>pow()</function> functions for type
+ <type>numeric</type> (Dean Rasheed)
</para>
</listitem>
-->
<para>
Add a <link
- linkend="functions-math-func-table"><function>scale(numeric)</></>
- function to extract the display scale of a <type>numeric</> value
+ linkend="functions-math-func-table"><function>scale(numeric)</function></link>
+ function to extract the display scale of a <type>numeric</type> value
(Marko Tiikkaja)
</para>
</listitem>
<para>
For example, <link
- linkend="functions-math-trig-table"><function>sind()</></>
- measures its argument in degrees, whereas <function>sin()</>
+ linkend="functions-math-trig-table"><function>sind()</function></link>
+ measures its argument in degrees, whereas <function>sin()</function>
measures in radians. These functions go to some lengths to
deliver exact results for values where an exact result can be
expected, for instance <literal>sind(30) = 0.5</literal>.
2016-01-22 [fd5200c3d] Improve cross-platform consistency of Inf/NaN handling i
-->
<para>
- Ensure that trigonometric functions handle <literal>infinity</>
- and <literal>NaN</> inputs per the <acronym>POSIX</> standard
+ Ensure that trigonometric functions handle <literal>infinity</literal>
+ and <literal>NaN</literal> inputs per the <acronym>POSIX</acronym> standard
(Dean Rasheed)
</para>
<para>
- The <acronym>POSIX</> standard says that these functions should
- return <literal>NaN</> for <literal>NaN</> input, and should throw
- an error for out-of-range inputs including <literal>infinity</>.
+ The <acronym>POSIX</acronym> standard says that these functions should
+ return <literal>NaN</literal> for <literal>NaN</literal> input, and should throw
+ an error for out-of-range inputs including <literal>infinity</literal>.
Previously our behavior varied across platforms.
</para>
</listitem>
-->
<para>
Make <link
- linkend="functions-datetime-table"><function>to_timestamp(float8)</></>
- convert float <literal>infinity</> to
- timestamp <literal>infinity</> (Vitaly Burovoy)
+ linkend="functions-datetime-table"><function>to_timestamp(float8)</function></link>
+ convert float <literal>infinity</literal> to
+ timestamp <literal>infinity</literal> (Vitaly Burovoy)
</para>
<para>
2016-05-05 [0b9a23443] Rename tsvector delete() to ts_delete(), and filter() to
-->
<para>
- Add new functions for <type>tsvector</> data (Stas Kelvich)
+ Add new functions for <type>tsvector</type> data (Stas Kelvich)
</para>
<para>
The new functions are <link
- linkend="textsearch-functions-table"><function>ts_delete()</></>,
- <function>ts_filter()</>, <function>unnest()</>,
- <function>tsvector_to_array()</>, <function>array_to_tsvector()</>,
- and a variant of <function>setweight()</> that sets the weight
+ linkend="textsearch-functions-table"><function>ts_delete()</function></link>,
+ <function>ts_filter()</function>, <function>unnest()</function>,
+ <function>tsvector_to_array()</function>, <function>array_to_tsvector()</function>,
+ and a variant of <function>setweight()</function> that sets the weight
only for specified lexeme(s).
</para>
</listitem>
2015-09-17 [9acb9007d] Fix oversight in tsearch type check
-->
<para>
- Allow <link linkend="textsearch-statistics"><function>ts_stat()</></>
- and <link linkend="textsearch-update-triggers"><function>tsvector_update_trigger()</></>
+ Allow <link linkend="textsearch-statistics"><function>ts_stat()</function></link>
+ and <link linkend="textsearch-update-triggers"><function>tsvector_update_trigger()</function></link>
to operate on values that are of types binary-compatible with the
expected argument type, not just exactly that type; for example
- allow <type>citext</> where <type>text</> is expected (Teodor
+ allow <type>citext</type> where <type>text</type> is expected (Teodor
Sigaev)
</para>
</listitem>
-->
<para>
Add variadic functions <link
- linkend="functions-comparison-func-table"><function>num_nulls()</></>
- and <function>num_nonnulls()</> that count the number of their
+ linkend="functions-comparison-func-table"><function>num_nulls()</function></link>
+ and <function>num_nonnulls()</function> that count the number of their
arguments that are null or non-null (Marko Tiikkaja)
</para>
<para>
- An example usage is <literal>CHECK(num_nonnulls(a,b,c) = 1)</>
- which asserts that exactly one of a,b,c is not <literal>NULL</>.
+ An example usage is <literal>CHECK(num_nonnulls(a,b,c) = 1)</literal>
+ which asserts that exactly one of a,b,c is not <literal>NULL</literal>.
These functions can also be used to count the number of null or
nonnull elements in an array.
</para>
-->
<para>
Add function <link
- linkend="functions-string-other"><function>parse_ident()</></>
- to split a qualified, possibly quoted <acronym>SQL</> identifier
+ linkend="functions-string-other"><function>parse_ident()</function></link>
+ to split a qualified, possibly quoted <acronym>SQL</acronym> identifier
into its parts (Pavel Stehule)
</para>
</listitem>
-->
<para>
In <link
- linkend="functions-formatting-table"><function>to_number()</></>,
- interpret a <literal>V</> format code as dividing by 10 to the
- power of the number of digits following <literal>V</> (Bruce
+ linkend="functions-formatting-table"><function>to_number()</function></link>,
+ interpret a <literal>V</literal> format code as dividing by 10 to the
+ power of the number of digits following <literal>V</literal> (Bruce
Momjian)
</para>
<para>
This makes it operate in an inverse fashion to
- <function>to_char()</>.
+ <function>to_char()</function>.
</para>
</listitem>
-->
<para>
Make the <link
- linkend="functions-info-catalog-table"><function>to_reg*()</></>
- functions accept type <type>text</> not <type>cstring</>
+ linkend="functions-info-catalog-table"><function>to_reg*()</function></link>
+ functions accept type <type>text</type> not <type>cstring</type>
(Petr Korobeinikov)
</para>
-->
<para>
Add <link
- linkend="functions-admin-dbsize"><function>pg_size_bytes()</></>
+ linkend="functions-admin-dbsize"><function>pg_size_bytes()</function></link>
function to convert human-readable size strings to numbers (Pavel
Stehule, Vitaly Burovoy, Dean Rasheed)
</para>
<para>
This function converts strings like those produced by
- <function>pg_size_pretty()</> into bytes. An example
+ <function>pg_size_pretty()</function> into bytes. An example
usage is <literal>SELECT oid::regclass FROM pg_class WHERE
- pg_total_relation_size(oid) > pg_size_bytes('10 GB')</>.
+ pg_total_relation_size(oid) > pg_size_bytes('10 GB')</literal>.
</para>
</listitem>
-->
<para>
In <link
- linkend="functions-admin-dbsize"><function>pg_size_pretty()</></>,
+ linkend="functions-admin-dbsize"><function>pg_size_pretty()</function></link>,
format negative numbers similarly to positive ones (Adrian
Vondendriesch)
</para>
2015-07-02 [10fb48d66] Add an optional missing_ok argument to SQL function curr
-->
<para>
- Add an optional <replaceable>missing_ok</> argument to the <link
- linkend="functions-admin-set-table"><function>current_setting()</></>
+ Add an optional <replaceable>missing_ok</replaceable> argument to the <link
+ linkend="functions-admin-set-table"><function>current_setting()</function></link>
function (David Christensen)
</para>
<para>
This allows avoiding an error for an unrecognized parameter
- name, instead returning a <literal>NULL</>.
+ name, instead returning a <literal>NULL</literal>.
</para>
</listitem>
-->
<para>
Change various catalog-inspection functions to return
- <literal>NULL</> for invalid input (Michael Paquier)
+ <literal>NULL</literal> for invalid input (Michael Paquier)
</para>
<para>
<link
- linkend="functions-info-catalog-table"><function>pg_get_viewdef()</></>
- now returns <literal>NULL</> if given an invalid view <type>OID</>,
- and several similar functions likewise return <literal>NULL</> for
+ linkend="functions-info-catalog-table"><function>pg_get_viewdef()</function></link>
+ now returns <literal>NULL</literal> if given an invalid view <type>OID</type>,
+ and several similar functions likewise return <literal>NULL</literal> for
bad input. Previously, such cases usually led to <quote>cache
- lookup failed</> errors, which are not meant to occur in
+ lookup failed</quote> errors, which are not meant to occur in
user-facing cases.
</para>
</listitem>
-->
<para>
Fix <link
- linkend="pg-replication-origin-xact-reset"><function>pg_replication_origin_xact_reset()</></>
+ linkend="pg-replication-origin-xact-reset"><function>pg_replication_origin_xact_reset()</function></link>
to not have any arguments (Fujii Masao)
</para>
<para>
The documentation said that it has no arguments, and the C code did
- not expect any arguments, but the entry in <structname>pg_proc</>
+ not expect any arguments, but the entry in <structname>pg_proc</structname>
mistakenly specified two arguments.
</para>
</listitem>
-->
<para>
In <link linkend="plpgsql">PL/pgSQL</link>, detect mismatched
- <command>CONTINUE</> and <command>EXIT</> statements while
+ <command>CONTINUE</command> and <command>EXIT</command> statements while
compiling a function, rather than at execution time
(Jim Nasby)
</para>
2016-07-02 [3a4a33ad4] PL/Python: Report argument parsing errors using exceptio
-->
<para>
- Extend <application>PL/Python</>'s error-reporting and
+ Extend <application>PL/Python</application>'s error-reporting and
message-reporting functions to allow specifying additional message
fields besides the primary error message (Pavel Stehule)
</para>
-->
<para>
Allow PL/Python functions to call themselves recursively
- via <application>SPI</>, and fix the behavior when multiple
+ via <application>SPI</application>, and fix the behavior when multiple
set-returning PL/Python functions are called within one query
(Alexey Grishchenko, Tom Lane)
</para>
2016-03-02 [e2609323e] Make PL/Tcl require Tcl 8.4 or later.
-->
<para>
- Modernize <application>PL/Tcl</> to use Tcl's <quote>object</>
- <acronym>API</>s instead of simple strings (Jim Nasby, Karl
+ Modernize <application>PL/Tcl</application> to use Tcl's <quote>object</quote>
+ <acronym>API</acronym>s instead of simple strings (Jim Nasby, Karl
Lehenbauer)
</para>
<para>
This can improve performance substantially in some cases.
- Note that <application>PL/Tcl</> now requires Tcl 8.4 or later.
+ Note that <application>PL/Tcl</application> now requires Tcl 8.4 or later.
</para>
</listitem>
2016-03-25 [cd37bb785] Improve PL/Tcl errorCode facility by providing decoded n
-->
<para>
- In <application>PL/Tcl</>, make database-reported errors return
- additional information in Tcl's <varname>errorCode</> global
+ In <application>PL/Tcl</application>, make database-reported errors return
+ additional information in Tcl's <varname>errorCode</varname> global
variable (Jim Nasby, Tom Lane)
</para>
2016-03-02 [c8c7c93de] Fix PL/Tcl's encoding conversion logic.
-->
<para>
- Fix <application>PL/Tcl</> to perform encoding conversion between
- the database encoding and <literal>UTF-8</>, which is what Tcl
+ Fix <application>PL/Tcl</application> to perform encoding conversion between
+ the database encoding and <literal>UTF-8</literal>, which is what Tcl
expects (Tom Lane)
</para>
<para>
Previously, strings were passed through without conversion,
- leading to misbehavior with non-<literal>ASCII</> characters when
- the database encoding was not <literal>UTF-8</>.
+ leading to misbehavior with non-<literal>ASCII</literal> characters when
+ the database encoding was not <literal>UTF-8</literal>.
</para>
</listitem>
-->
<para>
Add a nonlocalized version of
- the <link linkend="protocol-error-fields">severity field</> in
+ the <link linkend="protocol-error-fields">severity field</link> in
error and notice messages (Tom Lane)
</para>
This commit is also listed under psql and PL/pgSQL
-->
<para>
- Introduce a feature in <application>libpq</> whereby the
- <literal>CONTEXT</> field of messages can be suppressed, either
+ Introduce a feature in <application>libpq</application> whereby the
+ <literal>CONTEXT</literal> field of messages can be suppressed, either
always or only for non-error messages (Pavel Stehule)
</para>
<para>
The default behavior of <link
- linkend="libpq-pqerrormessage"><function>PQerrorMessage()</></>
- is now to print <literal>CONTEXT</>
+ linkend="libpq-pqerrormessage"><function>PQerrorMessage()</function></link>
+ is now to print <literal>CONTEXT</literal>
only for errors. The new function <link
- linkend="libpq-pqseterrorcontextvisibility"><function>PQsetErrorContextVisibility()</></>
+ linkend="libpq-pqseterrorcontextvisibility"><function>PQsetErrorContextVisibility()</function></link>
can be used to adjust this.
</para>
</listitem>
2016-04-03 [e3161b231] Add libpq support for recreating an error message with d
-->
<para>
- Add support in <application>libpq</> for regenerating an error
+ Add support in <application>libpq</application> for regenerating an error
message with a different verbosity level (Alex Shulgin)
</para>
<para>
This is done with the new function <link
- linkend="libpq-pqresultverboseerrormessage"><function>PQresultVerboseErrorMessage()</></>.
- This supports <application>psql</>'s new <literal>\errverbose</>
+ linkend="libpq-pqresultverboseerrormessage"><function>PQresultVerboseErrorMessage()</function></link>.
+ This supports <application>psql</application>'s new <literal>\errverbose</literal>
feature, and may be useful for other clients as well.
</para>
</listitem>
2015-11-27 [40cb21f70] Improve PQhost() to return useful data for default Unix-
-->
<para>
- Improve <application>libpq</>'s <link
- linkend="libpq-pqhost"><function>PQhost()</></> function to return
+ Improve <application>libpq</application>'s <link
+ linkend="libpq-pqhost"><function>PQhost()</function></link> function to return
useful data for default Unix-socket connections (Tom Lane)
</para>
<para>
- Previously it would return <literal>NULL</> if no explicit host
+ Previously it would return <literal>NULL</literal> if no explicit host
specification had been given; now it returns the default socket
directory path.
</para>
2016-02-16 [fc1ae7d2e] Change ecpg lexer to accept comments with line breaks in
-->
<para>
- Fix <application>ecpg</>'s lexer to handle line breaks within
+ Fix <application>ecpg</application>'s lexer to handle line breaks within
comments starting on preprocessor directive lines (Michael Meskes)
</para>
</listitem>
2015-09-14 [d02426029] Check existency of table/schema for -t/-n option (pg_dum
-->
<para>
- Add a <option>--strict-names</> option
- to <link linkend="APP-PGDUMP"><application>pg_dump</></>
- and <link linkend="APP-PGRESTORE"><application>pg_restore</></>
+ Add a <option>--strict-names</option> option
+ to <link linkend="app-pgdump"><application>pg_dump</application></link>
+ and <link linkend="app-pgrestore"><application>pg_restore</application></link>
(Pavel Stehule)
</para>
2016-05-06 [e1b120a8c] Only issue LOCK TABLE commands when necessary
-->
<para>
- In <application>pg_dump</>, dump locally-made changes of privilege
+ In <application>pg_dump</application>, dump locally-made changes of privilege
assignments for system objects (Stephen Frost)
</para>
While it has always been possible for a superuser to change
the privilege assignments for built-in or extension-created
objects, such changes were formerly lost in a dump and reload.
- Now, <application>pg_dump</> recognizes and dumps such changes.
+ Now, <application>pg_dump</application> recognizes and dumps such changes.
(This works only when dumping from a 9.6 or later server, however.)
</para>
</listitem>
2016-09-08 [31eb14504] Allow pg_dump to dump non-extension members of an extens
-->
<para>
- Allow <application>pg_dump</> to dump non-extension-owned objects
+ Allow <application>pg_dump</application> to dump non-extension-owned objects
that are within an extension-owned schema
(Martín Marqués)
</para>
2016-04-06 [3b3fcc4ee] pg_dump: Add table qualifications to some tags
-->
<para>
- In <application>pg_dump</> output, include the table name in object
+ In <application>pg_dump</application> output, include the table name in object
tags for object types that are only uniquely named per-table
(for example, triggers) (Peter Eisentraut)
</para>
</itemizedlist>
<sect4>
- <title><xref linkend="APP-PSQL"></title>
+ <title><xref linkend="app-psql"></title>
<itemizedlist>
<para>
The specified operations are carried out in the order in which the
- options are given, and then <application>psql</> terminates.
+ options are given, and then <application>psql</application> terminates.
</para>
</listitem>
2016-04-08 [c09b18f21] Support \crosstabview in psql
-->
<para>
- Add a <command>\crosstabview</> command that prints the results of
+ Add a <command>\crosstabview</command> command that prints the results of
a query in a cross-tabulated display (Daniel Vérité)
</para>
2016-04-03 [3cc38ca7d] Add psql \errverbose command to see last server error at
-->
<para>
- Add an <literal>\errverbose</> command that shows the last server
+ Add an <literal>\errverbose</literal> command that shows the last server
error at full verbosity (Alex Shulgin)
</para>
<para>
This is useful after getting an unexpected error — you
- no longer need to adjust the <varname>VERBOSITY</> variable and
+ no longer need to adjust the <varname>VERBOSITY</varname> variable and
recreate the failure in order to see error fields that are not
shown by default.
</para>
2016-05-06 [9b66aa006] Fix psql's \ev and \sv commands so that they handle view
-->
<para>
- Add <literal>\ev</> and <literal>\sv</> commands for editing and
+ Add <literal>\ev</literal> and <literal>\sv</literal> commands for editing and
showing view definitions (Petr Korobeinikov)
</para>
<para>
- These are parallel to the existing <literal>\ef</> and
- <literal>\sf</> commands for functions.
+ These are parallel to the existing <literal>\ef</literal> and
+ <literal>\sf</literal> commands for functions.
</para>
</listitem>
2016-04-04 [2bbe9112a] Add a \gexec command to psql for evaluation of computed
-->
<para>
- Add a <command>\gexec</> command that executes a query and
+ Add a <command>\gexec</command> command that executes a query and
re-submits the result(s) as new queries (Corey Huinker)
</para>
</listitem>
2015-10-05 [2145a7660] psql: allow \pset C in setting the title, matches \C
-->
<para>
- Allow <literal>\pset C <replaceable>string</></literal>
+ Allow <literal>\pset C <replaceable>string</replaceable></literal>
to set the table title, for consistency with <literal>\C
- <replaceable>string</></literal> (Bruce Momjian)
+ <replaceable>string</replaceable></literal> (Bruce Momjian)
</para>
</listitem>
2016-03-11 [69ab7b9d6] psql: Don't automatically use expanded format when there
-->
<para>
- In <literal>\pset expanded auto</> mode, do not use expanded
+ In <literal>\pset expanded auto</literal> mode, do not use expanded
format for query results with only one column (Andreas Karlsson,
Robert Haas)
</para>
2016-06-15 [9901d8ac2] Use strftime("%c") to format timestamps in psql's \watch
-->
<para>
- Improve the headers output by the <command>\watch</> command
+ Improve the headers output by the <command>\watch</command> command
(Michael Paquier, Tom Lane)
</para>
<para>
- Include the <command>\pset title</> string if one has
+ Include the <command>\pset title</command> string if one has
been set, and shorten the prefabricated part of the
- header to be <literal><replaceable>timestamp</> (every
- <replaceable>N</>s)</literal>. Also, the timestamp format now
- obeys <application>psql</>'s locale environment.
+ header to be <literal><replaceable>timestamp</replaceable> (every
+ <replaceable>N</replaceable>s)</literal>. Also, the timestamp format now
+ obeys <application>psql</application>'s locale environment.
</para>
</listitem>
2015-07-07 [275f05c99] Add psql PROMPT variable showing the pid of the connecte
-->
<para>
- Add a <literal>PROMPT</> option <literal>%p</> to insert the
+ Add a <literal>PROMPT</literal> option <literal>%p</literal> to insert the
process ID of the connected backend (Julien Rouhaud)
</para>
</listitem>
This commit is also listed under libpq and PL/pgSQL
-->
<para>
- Introduce a feature whereby the <literal>CONTEXT</> field of
+ Introduce a feature whereby the <literal>CONTEXT</literal> field of
messages can be suppressed, either always or only for non-error
messages (Pavel Stehule)
</para>
<para>
- Printing <literal>CONTEXT</> only for errors is now the default
+ Printing <literal>CONTEXT</literal> only for errors is now the default
behavior. This can be changed by setting the special variable
<varname>SHOW_CONTEXT</varname>.
</para>
2016-07-11 [a670c24c3] Improve output of psql's \df+ command.
-->
<para>
- Make <command>\df+</> show function access privileges and
+ Make <command>\df+</command> show function access privileges and
parallel-safety attributes (Michael Paquier)
</para>
</listitem>
2016-03-20 [68ab8e8ba] SQL commands in pgbench scripts are now ended by semicol
-->
<para>
- SQL commands in <application>pgbench</> scripts are now ended by
+ SQL commands in <application>pgbench</application> scripts are now ended by
semicolons, not newlines (Kyotaro Horiguchi, Tom Lane)
</para>
Existing custom scripts will need to be modified to add a semicolon
at the end of each line that does not have one already. (Doing so
does not break the script for use with older versions
- of <application>pgbench</>.)
+ of <application>pgbench</application>.)
</para>
</listitem>
-->
<para>
Support floating-point arithmetic, as well as some <link
- linkend="pgbench-builtin-functions">built-in functions</>, in
+ linkend="pgbench-builtin-functions">built-in functions</link>, in
expressions in backslash commands (Fabien Coelho)
</para>
</listitem>
2016-03-29 [ad9566470] pgbench: Remove \setrandom.
-->
<para>
- Replace <command>\setrandom</> with built-in functions (Fabien
+ Replace <command>\setrandom</command> with built-in functions (Fabien
Coelho)
</para>
<para>
The new built-in functions include <link
- linkend="pgbench-functions"><function>random()</></>,
- <function>random_exponential()</>, and
- <function>random_gaussian()</>, which perform the same work as
- <command>\setrandom</>, but are easier to use since they can be
+ linkend="pgbench-functions"><function>random()</function></link>,
+ <function>random_exponential()</function>, and
+ <function>random_gaussian()</function>, which perform the same work as
+ <command>\setrandom</command>, but are easier to use since they can be
embedded in larger expressions. Since these additions have made
- <command>\setrandom</> obsolete, remove it.
+ <command>\setrandom</command> obsolete, remove it.
</para>
</listitem>
</para>
<para>
- This is done with the new <option>-b</> switch, which works
- similarly to <option>-f</> for custom scripts.
+ This is done with the new <option>-b</option> switch, which works
+ similarly to <option>-f</option> for custom scripts.
</para>
</listitem>
</para>
<para>
- When multiple scripts are specified, each <application>pgbench</>
+ When multiple scripts are specified, each <application>pgbench</application>
transaction randomly chooses one to execute. Formerly this was
always done with uniform probability, but now different selection
probabilities can be specified for different scripts.
2015-09-16 [1def9063c] pgbench progress with timestamp
-->
<para>
- Add a <option>--progress-timestamp</> option to report progress
+ Add a <option>--progress-timestamp</option> option to report progress
with Unix epoch timestamps, instead of time since the run started
(Fabien Coelho)
</para>
2015-07-03 [ba3deeefb] Lift the limitation that # of clients must be a multiple
-->
<para>
- Allow the number of client connections (<option>-c</>) to not
- be an exact multiple of the number of threads (<option>-j</>)
+ Allow the number of client connections (<option>-c</option>) to not
+ be an exact multiple of the number of threads (<option>-j</option>)
(Fabien Coelho)
</para>
</listitem>
2016-03-09 [accf7616f] pgbench: When -T is used, don't wait for transactions be
-->
<para>
- When the <option>-T</> option is used, stop promptly at the end
+ When the <option>-T</option> option is used, stop promptly at the end
of the specified time (Fabien Coelho)
</para>
<para>
Previously, specifying a low transaction rate could cause
- <application>pgbench</> to wait significantly longer than
+ <application>pgbench</application> to wait significantly longer than
specified.
</para>
</listitem>
2015-12-17 [66d947b9d] Adjust behavior of single-user -j mode for better initdb
-->
<para>
- Improve error reporting during <application>initdb</>'s
+ Improve error reporting during <application>initdb</application>'s
post-bootstrap phase (Tom Lane)
</para>
<para>
Previously, an error here led to reporting the entire input
- file as the <quote>failing query</>; now just the current
+ file as the <quote>failing query</quote>; now just the current
query is reported. To get the desired behavior, queries in
- <application>initdb</>'s input files must be separated by blank
+ <application>initdb</application>'s input files must be separated by blank
lines.
</para>
</listitem>
2016-08-30 [d9720e437] Fix initdb misbehavior when user mis-enters superuser pa
-->
<para>
- Speed up <application>initdb</> by using just one
+ Speed up <application>initdb</application> by using just one
standalone-backend session for all the post-bootstrap steps
(Tom Lane)
</para>
2015-12-01 [e50cda784] Use pg_rewind when target timeline was switched
-->
<para>
- Improve <link linkend="app-pgrewind"><application>pg_rewind</></>
+ Improve <link linkend="app-pgrewind"><application>pg_rewind</application></link>
so that it can work when the target timeline changes (Alexander
Korotkov)
</para>
-->
<para>
Remove obsolete
- <function>heap_formtuple</>/<function>heap_modifytuple</>/<function>heap_deformtuple</>
+ <function>heap_formtuple</function>/<function>heap_modifytuple</function>/<function>heap_deformtuple</function>
functions (Peter Geoghegan)
</para>
</listitem>
2016-08-27 [b9fe6cbc8] Add macros to make AllocSetContextCreate() calls simpler
-->
<para>
- Add macros to make <function>AllocSetContextCreate()</> calls simpler
+ Add macros to make <function>AllocSetContextCreate()</function> calls simpler
and safer (Tom Lane)
</para>
<para>
Writing out the individual sizing parameters for a memory context
is now deprecated in favor of using one of the new
- macros <symbol>ALLOCSET_DEFAULT_SIZES</>,
- <symbol>ALLOCSET_SMALL_SIZES</>,
- or <symbol>ALLOCSET_START_SMALL_SIZES</>.
+ macros <symbol>ALLOCSET_DEFAULT_SIZES</symbol>,
+ <symbol>ALLOCSET_SMALL_SIZES</symbol>,
+ or <symbol>ALLOCSET_START_SMALL_SIZES</symbol>.
Existing code continues to work, however.
</para>
</listitem>
2015-08-05 [de6fd1c89] Rely on inline functions even if that causes warnings in
-->
<para>
- Unconditionally use <literal>static inline</> functions in header
+ Unconditionally use <literal>static inline</literal> functions in header
files (Andres Freund)
</para>
2016-05-06 [6bd356c33] Add TAP tests for pg_dump
-->
<para>
- Improve <application>TAP</> testing infrastructure (Michael
+ Improve <application>TAP</application> testing infrastructure (Michael
Paquier, Craig Ringer, Álvaro Herrera, Stephen Frost)
</para>
2015-09-11 [aa65de042] When trace_lwlocks is used, identify individual lwlocks
-->
<para>
- Make <varname>trace_lwlocks</> identify individual locks by name
+ Make <varname>trace_lwlocks</varname> identify individual locks by name
(Robert Haas)
</para>
</listitem>
2016-01-05 [4f18010af] Convert psql's tab completion for backslash commands to
-->
<para>
- Improve <application>psql</>'s tab-completion code infrastructure
+ Improve <application>psql</application>'s tab-completion code infrastructure
(Thomas Munro, Michael Paquier)
</para>
2016-01-05 [efa318bcf] Make pg_shseclabel available in early backend startup
-->
<para>
- Nail the <structname>pg_shseclabel</> system catalog into cache,
+ Nail the <structname>pg_shseclabel</structname> system catalog into cache,
so that it is available for access during connection authentication
(Adam Brightwell)
</para>
-->
<para>
Restructure <link linkend="indexam">index access
- method <acronym>API</></> to hide most of it at
- the <application>C</> level (Alexander Korotkov, Andrew Gierth)
+ method <acronym>API</acronym></link> to hide most of it at
+ the <application>C</application> level (Alexander Korotkov, Andrew Gierth)
</para>
<para>
- This change modernizes the index <acronym>AM API</> to look more
+ This change modernizes the index <acronym>AM API</acronym> to look more
like the designs we have adopted for foreign data wrappers and
- tablesample handlers. This simplifies the <application>C</> code
+ tablesample handlers. This simplifies the <application>C</application> code
and makes it much more practical to define index access methods in
installable extensions. A consequence is that most of the columns
- of the <structname>pg_am</> system catalog have disappeared.
+ of the <structname>pg_am</structname> system catalog have disappeared.
New <link linkend="functions-info-catalog-table">inspection
functions</link> have been added to allow SQL queries to determine
index AM properties that used to be discoverable
- from <structname>pg_am</>.
+ from <structname>pg_am</structname>.
</para>
</listitem>
-->
<para>
Add <link
- linkend="catalog-pg-init-privs"><structname>pg_init_privs</></>
+ linkend="catalog-pg-init-privs"><structname>pg_init_privs</structname></link>
system catalog to hold original privileges
- of <application>initdb</>-created and extension-created objects
+ of <application>initdb</application>-created and extension-created objects
(Stephen Frost)
</para>
<para>
- This infrastructure allows <application>pg_dump</> to dump changes
+ This infrastructure allows <application>pg_dump</application> to dump changes
that an installation may have made in privileges attached to
system objects. Formerly, such changes would be lost in a dump
and reload, but now they are preserved.
2016-02-04 [c1772ad92] Change the way that LWLocks for extensions are allocated
-->
<para>
- Change the way that extensions allocate custom <literal>LWLocks</>
+ Change the way that extensions allocate custom <literal>LWLocks</literal>
(Amit Kapila, Robert Haas)
</para>
<para>
- The <function>RequestAddinLWLocks()</> function is removed,
- and replaced by <function>RequestNamedLWLockTranche()</>.
- This allows better identification of custom <literal>LWLocks</>,
+ The <function>RequestAddinLWLocks()</function> function is removed,
+ and replaced by <function>RequestNamedLWLockTranche()</function>.
+ This allows better identification of custom <literal>LWLocks</literal>,
and is less error-prone.
</para>
</listitem>
</para>
<para>
- This change allows <application>FDW</>s or custom scan providers
+ This change allows <application>FDW</application>s or custom scan providers
to store data in a plan tree in a more convenient format than
was previously possible.
</para>
-->
<para>
Make the planner deal with post-scan/join query steps by generating
- and comparing <literal>Paths</>, replacing a lot of ad-hoc logic
+ and comparing <literal>Paths</literal>, replacing a lot of ad-hoc logic
(Tom Lane)
</para>
2016-03-24 [c1156411a] Move psql's psqlscan.l into src/fe_utils.
-->
<para>
- Separate out <application>psql</>'s <application>flex</> lexer to
+ Separate out <application>psql</application>'s <application>flex</application> lexer to
make it usable by other client programs (Tom Lane, Kyotaro
Horiguchi)
</para>
This eliminates code duplication for programs that need to be able
to parse SQL commands well enough to identify command boundaries.
Doing that in full generality is more painful than one could
- wish, and up to now only <application>psql</> has really gotten
+ wish, and up to now only <application>psql</application> has really gotten
it right among our supported client programs.
</para>
<para>
- A new source-code subdirectory <filename>src/fe_utils/</> has
+ A new source-code subdirectory <filename>src/fe_utils/</filename> has
been created to hold this and other code that is shared across
our client programs. Formerly such sharing was accomplished by
symbolic linking or copying source files at build time, which
2016-03-21 [98a64d0bd] Introduce WaitEventSet API.
-->
<para>
- Introduce <literal>WaitEventSet</> <acronym>API</> to allow
+ Introduce <literal>WaitEventSet</literal> <acronym>API</acronym> to allow
efficient waiting for event sets that usually do not change from
one wait to the next (Andres Freund, Amit Kapila)
</para>
2016-04-01 [65578341a] Add Generic WAL interface
-->
<para>
- Add a generic interface for writing <acronym>WAL</> records
+ Add a generic interface for writing <acronym>WAL</acronym> records
(Alexander Korotkov, Petr Jelínek, Markus Nullmeier)
</para>
<para>
- This change allows extensions to write <acronym>WAL</> records for
+ This change allows extensions to write <acronym>WAL</acronym> records for
changes to pages using a standard layout. The problem of needing to
- replay <acronym>WAL</> without access to the extension is solved by
+ replay <acronym>WAL</acronym> without access to the extension is solved by
having generic replay code. This allows extensions to implement,
- for example, index access methods and have <acronym>WAL</>
+ for example, index access methods and have <acronym>WAL</acronym>
support for them.
</para>
</listitem>
2016-04-06 [3fe3511d0] Generic Messages for Logical Decoding
-->
<para>
- Support generic <acronym>WAL</> messages for logical decoding
+ Support generic <acronym>WAL</acronym> messages for logical decoding
(Petr Jelínek, Andres Freund)
</para>
<para>
This feature allows extensions to insert data into the
- <acronym>WAL</> stream that can be read by logical-decoding
+ <acronym>WAL</acronym> stream that can be read by logical-decoding
plugins, but is not connected to physical data restoration.
</para>
</listitem>
-->
<para>
Allow SP-GiST operator classes to store an arbitrary
- <quote>traversal value</> while descending the index (Alexander
+ <quote>traversal value</quote> while descending the index (Alexander
Lebedev, Teodor Sigaev)
</para>
<para>
- This is somewhat like the <quote>reconstructed value</>, but it
+ This is somewhat like the <quote>reconstructed value</quote>, but it
could be any arbitrary chunk of data, not necessarily of the same
data type as the indexed column.
</para>
2016-04-04 [66229ac00] Introduce a LOG_SERVER_ONLY ereport level, which is neve
-->
<para>
- Introduce a <literal>LOG_SERVER_ONLY</> message level for
- <function>ereport()</> (David Steele)
+ Introduce a <literal>LOG_SERVER_ONLY</literal> message level for
+ <function>ereport()</function> (David Steele)
</para>
<para>
- This level acts like <literal>LOG</> except that the message is
+ This level acts like <literal>LOG</literal> except that the message is
never sent to the client. It is meant for use in auditing and
similar applications.
</para>
2016-07-01 [548af97fc] Provide and use a makefile target to build all generated
-->
<para>
- Provide a <filename>Makefile</> target to build all generated
+ Provide a <filename>Makefile</filename> target to build all generated
headers (Michael Paquier, Tom Lane)
</para>
<para>
- <literal>submake-generated-headers</> can now be invoked to ensure
+ <literal>submake-generated-headers</literal> can now be invoked to ensure
that generated backend header files are up-to-date. This is
- useful in subdirectories that might be built <quote>standalone</>.
+ useful in subdirectories that might be built <quote>standalone</quote>.
</para>
</listitem>
2016-03-13 [7a8d87483] Rename auto_explain.sample_ratio to sample_rate
-->
<para>
- Add configuration parameter <literal>auto_explain.sample_rate</> to
- allow <link linkend="auto-explain"><filename>contrib/auto_explain</></>
+ Add configuration parameter <literal>auto_explain.sample_rate</literal> to
+ allow <link linkend="auto-explain"><filename>contrib/auto_explain</filename></link>
to capture just a configurable fraction of all queries (Craig
Ringer, Julien Rouhaud)
</para>
2016-04-01 [9ee014fc8] Bloom index contrib module
-->
<para>
- Add <link linkend="bloom"><filename>contrib/bloom</></> module that
+ Add <link linkend="bloom"><filename>contrib/bloom</filename></link> module that
implements an index access method based on Bloom filtering (Teodor
Sigaev, Alexander Korotkov)
</para>
2015-12-28 [81ee726d8] Code and docs review for cube kNN support.
-->
<para>
- In <link linkend="cube"><filename>contrib/cube</></>, introduce
+ In <link linkend="cube"><filename>contrib/cube</filename></link>, introduce
distance operators for cubes, and support kNN-style searches in
GiST indexes on cube columns (Stas Kelvich)
</para>
2016-02-03 [41d2c081c] Make hstore_to_jsonb_loose match hstore_to_json_loose on
-->
<para>
- Make <filename>contrib/hstore</>'s <link
- linkend="hstore-func-table"><function>hstore_to_jsonb_loose()</></>
- and <function>hstore_to_json_loose()</> functions agree on what
+ Make <filename>contrib/hstore</filename>'s <link
+ linkend="hstore-func-table"><function>hstore_to_jsonb_loose()</function></link>
+ and <function>hstore_to_json_loose()</function> functions agree on what
is a number (Tom Lane)
</para>
<para>
- Previously, <function>hstore_to_jsonb_loose()</> would convert
- numeric-looking strings to <acronym>JSON</> numbers, rather than
- strings, even if they did not exactly match the <acronym>JSON</>
+ Previously, <function>hstore_to_jsonb_loose()</function> would convert
+ numeric-looking strings to <acronym>JSON</acronym> numbers, rather than
+ strings, even if they did not exactly match the <acronym>JSON</acronym>
syntax specification for numbers. This was inconsistent with
- <function>hstore_to_json_loose()</>, so tighten the test to match
- the <acronym>JSON</> syntax.
+ <function>hstore_to_json_loose()</function>, so tighten the test to match
+ the <acronym>JSON</acronym> syntax.
</para>
</listitem>
-->
<para>
Add selectivity estimation functions for
- <link linkend="intarray"><filename>contrib/intarray</></> operators
+ <link linkend="intarray"><filename>contrib/intarray</filename></link> operators
to improve plans for queries using those operators (Yury Zhuravlev,
Alexander Korotkov)
</para>
-->
<para>
Make <link
- linkend="pageinspect"><filename>contrib/pageinspect</></>'s
- <function>heap_page_items()</> function show the raw data in each
- tuple, and add new functions <function>tuple_data_split()</> and
- <function>heap_page_item_attrs()</> for inspection of individual
+ linkend="pageinspect"><filename>contrib/pageinspect</filename></link>'s
+ <function>heap_page_items()</function> function show the raw data in each
+ tuple, and add new functions <function>tuple_data_split()</function> and
+ <function>heap_page_item_attrs()</function> for inspection of individual
tuple fields (Nikolay Shaplov)
</para>
</listitem>
2016-03-09 [188f359d3] pgcrypto: support changing S2K iteration count
-->
<para>
- Add an optional <literal>S2K</> iteration count parameter to
- <link linkend="pgcrypto"><filename>contrib/pgcrypto</></>'s
- <function>pgp_sym_encrypt()</> function (Jeff Janes)
+ Add an optional <literal>S2K</literal> iteration count parameter to
+ <link linkend="pgcrypto"><filename>contrib/pgcrypto</filename></link>'s
+ <function>pgp_sym_encrypt()</function> function (Jeff Janes)
</para>
</listitem>
2016-03-16 [f576b17cd] Add word_similarity to pg_trgm contrib module.
-->
<para>
- Add support for <quote>word similarity</> to
- <link linkend="pgtrgm"><filename>contrib/pg_trgm</></>
+ Add support for <quote>word similarity</quote> to
+ <link linkend="pgtrgm"><filename>contrib/pg_trgm</filename></link>
(Alexander Korotkov, Artur Zakirov)
</para>
-->
<para>
Add configuration parameter
- <varname>pg_trgm.similarity_threshold</> for
- <filename>contrib/pg_trgm</>'s similarity threshold (Artur Zakirov)
+ <varname>pg_trgm.similarity_threshold</varname> for
+ <filename>contrib/pg_trgm</filename>'s similarity threshold (Artur Zakirov)
</para>
<para>
This threshold has always been configurable, but formerly it was
- controlled by special-purpose functions <function>set_limit()</>
- and <function>show_limit()</>. Those are now deprecated.
+ controlled by special-purpose functions <function>set_limit()</function>
+ and <function>show_limit()</function>. Those are now deprecated.
</para>
</listitem>
2015-07-20 [97f301464] This supports the triconsistent function for pg_trgm GIN
-->
<para>
- Improve <filename>contrib/pg_trgm</>'s GIN operator class to
+ Improve <filename>contrib/pg_trgm</filename>'s GIN operator class to
speed up index searches in which both common and rare keys appear
(Jeff Janes)
</para>
-->
<para>
Improve performance of similarity searches in
- <filename>contrib/pg_trgm</> GIN indexes (Christophe Fornaroli)
+ <filename>contrib/pg_trgm</filename> GIN indexes (Christophe Fornaroli)
</para>
</listitem>
-->
<para>
Add <link
- linkend="pgvisibility"><filename>contrib/pg_visibility</></> module
+ linkend="pgvisibility"><filename>contrib/pg_visibility</filename></link> module
to allow examining table visibility maps (Robert Haas)
</para>
</listitem>
2015-09-07 [49124613f] contrib/sslinfo: add ssl_extension_info SRF
-->
<para>
- Add <link linkend="sslinfo"><function>ssl_extension_info()</></>
- function to <filename>contrib/sslinfo</>, to print information
- about <acronym>SSL</> extensions present in the <literal>X509</>
+ Add <link linkend="sslinfo"><function>ssl_extension_info()</function></link>
+ function to <filename>contrib/sslinfo</filename>, to print information
+ about <acronym>SSL</acronym> extensions present in the <literal>X509</literal>
certificate used for the current connection (Dmitry Voronin)
</para>
</listitem>
</itemizedlist>
<sect4>
- <title><link linkend="postgres-fdw"><filename>postgres_fdw</></></title>
+ <title><link linkend="postgres-fdw"><filename>postgres_fdw</filename></link></title>
<itemizedlist>
2016-03-18 [0bf3ae88a] Directly modify foreign tables.
-->
<para>
- When feasible, perform <command>UPDATE</> or <command>DELETE</>
+ When feasible, perform <command>UPDATE</command> or <command>DELETE</command>
entirely on the remote server (Etsuro Fujita)
</para>
<para>
- Formerly, remote updates involved sending a <command>SELECT FOR UPDATE</>
+ Formerly, remote updates involved sending a <command>SELECT FOR UPDATE</command>
command and then updating or deleting the selected rows one-by-one.
While that is still necessary if the operation requires any local
processing, it can now be done remotely if all elements of the
</para>
<para>
- Formerly, <filename>postgres_fdw</> always fetched 100 rows at
+ Formerly, <filename>postgres_fdw</filename> always fetched 100 rows at
a time from remote queries; now that behavior is configurable.
</para>
</listitem>