~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-updates

« back to all changes in this revision

Viewing changes to doc/src/sgml/release-9.0.sgml

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2012-08-16 17:06:20 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120816170620-jo0bdsnqqc4u5iqf
Tags: 9.1.5-0ubuntu11.10
* New upstream bug fix/security release:
 - Prevent access to external files/URLs via XML entity references
   (Noah Misch, Tom Lane)
   xml_parse() would attempt to fetch external files or URLs as needed
   to resolve DTD and entity references in an XML value, thus allowing
   unprivileged database users to attempt to fetch data with the
   privileges of the database server. While the external data wouldn't
   get returned directly to the user, portions of it could be exposed
   in error messages if the data didn't parse as valid XML; and in any
   case the mere ability to check existence of a file might be useful
   to an attacker. (CVE-2012-3489)
 - Prevent access to external files/URLs via "contrib/xml2"'s
   xslt_process() (Peter Eisentraut)
   libxslt offers the ability to read and write both files and URLs
   through stylesheet commands, thus allowing unprivileged database
   users to both read and write data with the privileges of the
   database server. Disable that through proper use of libxslt's
   security options. (CVE-2012-3488)
   Also, remove xslt_process()'s ability to fetch documents and
   stylesheets from external files/URLs. While this was a documented
   "feature", it was long regarded as a bad idea. The fix for
   CVE-2012-3489 broke that capability, and rather than expend effort
   on trying to fix it, we're just going to summarily remove it.
 - Prevent too-early recycling of btree index pages (Noah Misch)
   When we allowed read-only transactions to skip assigning XIDs, we
   introduced the possibility that a deleted btree page could be
   recycled while a read-only transaction was still in flight to it.
   This would result in incorrect index search results. The
   probability of such an error occurring in the field seems very low
   because of the timing requirements, but nonetheless it should be
   fixed.
 - Fix crash-safety bug with newly-created-or-reset sequences (Tom
   Lane)
   If "ALTER SEQUENCE" was executed on a freshly created or reset
   sequence, and then precisely one nextval() call was made on it, and
   then the server crashed, WAL replay would restore the sequence to a
   state in which it appeared that no nextval() had been done, thus
   allowing the first sequence value to be returned again by the next
   nextval() call. In particular this could manifest for serial
   columns, since creation of a serial column's sequence includes an
   "ALTER SEQUENCE OWNED BY" step.
 - Fix race condition in enum-type value comparisons (Robert Haas, Tom
   Lane)
   Comparisons could fail when encountering an enum value added since
   the current query started.
 - Fix txid_current() to report the correct epoch when not in hot
   standby (Heikki Linnakangas)
   This fixes a regression introduced in the previous minor release.
 - Prevent selection of unsuitable replication connections as the
   synchronous standby (Fujii Masao)
   The master might improperly choose pseudo-servers such as
   pg_receivexlog or pg_basebackup as the synchronous standby, and
   then wait indefinitely for them.
 - Fix bug in startup of Hot Standby when a master transaction has
   many subtransactions (Andres Freund)
   This mistake led to failures reported as "out-of-order XID
   insertion in KnownAssignedXids".
 - Ensure the "backup_label" file is fsync'd after pg_start_backup()
   (Dave Kerr)
 - Fix timeout handling in walsender processes (Tom Lane)
   WAL sender background processes neglected to establish a SIGALRM
   handler, meaning they would wait forever in some corner cases where
   a timeout ought to happen.
 - Wake walsenders after each background flush by walwriter (Andres
   Freund, Simon Riggs)
   This greatly reduces replication delay when the workload contains
   only asynchronously-committed transactions.
 - Fix LISTEN/NOTIFY to cope better with I/O problems, such as out of
   disk space (Tom Lane)
   After a write failure, all subsequent attempts to send more NOTIFY
   messages would fail with messages like "Could not read from file
   "pg_notify/nnnn" at offset nnnnn: Success".
 - Only allow autovacuum to be auto-canceled by a directly blocked
   process (Tom Lane)
   The original coding could allow inconsistent behavior in some
   cases; in particular, an autovacuum could get canceled after less
   than deadlock_timeout grace period.
 - Improve logging of autovacuum cancels (Robert Haas)
 - Fix log collector so that log_truncate_on_rotation works during the
   very first log rotation after server start (Tom Lane)
 - Fix WITH attached to a nested set operation
   (UNION/INTERSECT/EXCEPT) (Tom Lane)
 - Ensure that a whole-row reference to a subquery doesn't include any
   extra GROUP BY or ORDER BY columns (Tom Lane)
 - Fix dependencies generated during ALTER TABLE ... ADD CONSTRAINT
   USING INDEX (Tom Lane)
   This command left behind a redundant pg_depend entry for the index,
   which could confuse later operations, notably ALTER TABLE ... ALTER
   COLUMN TYPE on one of the indexed columns.
 - Fix "REASSIGN OWNED" to work on extensions (Alvaro Herrera)
 - Disallow copying whole-row references in CHECK constraints and
   index definitions during "CREATE TABLE" (Tom Lane)
   This situation can arise in "CREATE TABLE" with LIKE or INHERITS.
   The copied whole-row variable was incorrectly labeled with the row
   type of the original table not the new one. Rejecting the case
   seems reasonable for LIKE, since the row types might well diverge
   later. For INHERITS we should ideally allow it, with an implicit
   coercion to the parent table's row type; but that will require more
   work than seems safe to back-patch.
 - Fix memory leak in ARRAY(SELECT ...) subqueries (Heikki
   Linnakangas, Tom Lane)
 - Fix planner to pass correct collation to operator selectivity
   estimators (Tom Lane)
   This was not previously required by any core selectivity estimation
   function, but third-party code might need it.
 - Fix extraction of common prefixes from regular expressions (Tom
   Lane)
   The code could get confused by quantified parenthesized
   subexpressions, such as ^(foo)?bar. This would lead to incorrect
   index optimization of searches for such patterns.
 - Fix bugs with parsing signed "hh":"mm" and "hh":"mm":"ss" fields in
   interval constants (Amit Kapila, Tom Lane)
 - Fix pg_dump to better handle views containing partial GROUP BY
   lists (Tom Lane)
   A view that lists only a primary key column in GROUP BY, but uses
   other table columns as if they were grouped, gets marked as
   depending on the primary key. Improper handling of such primary key
   dependencies in pg_dump resulted in poorly-ordered dumps, which at
   best would be inefficient to restore and at worst could result in
   outright failure of a parallel pg_restore run.
 - In PL/Perl, avoid setting UTF8 flag when in SQL_ASCII encoding
   (Alex Hunsaker, Kyotaro Horiguchi, Alvaro Herrera)
 - Use Postgres' encoding conversion functions, not Python's, when
   converting a Python Unicode string to the server encoding in
   PL/Python (Jan Urbanski)
   This avoids some corner-case problems, notably that Python doesn't
   support all the encodings Postgres does. A notable functional
   change is that if the server encoding is SQL_ASCII, you will get
   the UTF-8 representation of the string; formerly, any non-ASCII
   characters in the string would result in an error.
 - Fix mapping of PostgreSQL encodings to Python encodings in
   PL/Python (Jan Urbanski)
 - Report errors properly in "contrib/xml2"'s xslt_process() (Tom
   Lane)
 - Update time zone data files to tzdata release 2012e for DST law
   changes in Morocco and Tokelau

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!-- doc/src/sgml/release-9.0.sgml -->
2
2
<!-- See header comment in release.sgml about typical markup -->
3
3
 
 
4
 <sect1 id="release-9-0-9">
 
5
  <title>Release 9.0.9</title>
 
6
 
 
7
  <note>
 
8
  <title>Release Date</title>
 
9
  <simpara>2012-08-17</simpara>
 
10
  </note>
 
11
 
 
12
  <para>
 
13
   This release contains a variety of fixes from 9.0.8.
 
14
   For information about new features in the 9.0 major release, see
 
15
   <xref linkend="release-9-0">.
 
16
  </para>
 
17
 
 
18
  <sect2>
 
19
   <title>Migration to Version 9.0.9</title>
 
20
 
 
21
   <para>
 
22
    A dump/restore is not required for those running 9.0.X.
 
23
   </para>
 
24
 
 
25
   <para>
 
26
    However, if you are upgrading from a version earlier than 9.0.6,
 
27
    see the release notes for 9.0.6.
 
28
   </para>
 
29
 
 
30
  </sect2>
 
31
 
 
32
  <sect2>
 
33
   <title>Changes</title>
 
34
 
 
35
   <itemizedlist>
 
36
 
 
37
    <listitem>
 
38
     <para>
 
39
      Prevent access to external files/URLs via XML entity references
 
40
      (Noah Misch, Tom Lane)
 
41
     </para>
 
42
 
 
43
     <para>
 
44
      <function>xml_parse()</> would attempt to fetch external files or
 
45
      URLs as needed to resolve DTD and entity references in an XML value,
 
46
      thus allowing unprivileged database users to attempt to fetch data
 
47
      with the privileges of the database server.  While the external data
 
48
      wouldn't get returned directly to the user, portions of it could be
 
49
      exposed in error messages if the data didn't parse as valid XML; and
 
50
      in any case the mere ability to check existence of a file might be
 
51
      useful to an attacker.  (CVE-2012-3489)
 
52
     </para>
 
53
    </listitem>
 
54
 
 
55
    <listitem>
 
56
     <para>
 
57
      Prevent access to external files/URLs via <filename>contrib/xml2</>'s
 
58
      <function>xslt_process()</> (Peter Eisentraut)
 
59
     </para>
 
60
 
 
61
     <para>
 
62
      <application>libxslt</> offers the ability to read and write both
 
63
      files and URLs through stylesheet commands, thus allowing
 
64
      unprivileged database users to both read and write data with the
 
65
      privileges of the database server.  Disable that through proper use
 
66
      of <application>libxslt</>'s security options.  (CVE-2012-3488)
 
67
     </para>
 
68
 
 
69
     <para>
 
70
      Also, remove <function>xslt_process()</>'s ability to fetch documents
 
71
      and stylesheets from external files/URLs.  While this was a
 
72
      documented <quote>feature</>, it was long regarded as a bad idea.
 
73
      The fix for CVE-2012-3489 broke that capability, and rather than
 
74
      expend effort on trying to fix it, we're just going to summarily
 
75
      remove it.
 
76
     </para>
 
77
    </listitem>
 
78
 
 
79
    <listitem>
 
80
     <para>
 
81
      Prevent too-early recycling of btree index pages (Noah Misch)
 
82
     </para>
 
83
 
 
84
     <para>
 
85
      When we allowed read-only transactions to skip assigning XIDs, we
 
86
      introduced the possibility that a deleted btree page could be
 
87
      recycled while a read-only transaction was still in flight to it.
 
88
      This would result in incorrect index search results.  The probability
 
89
      of such an error occurring in the field seems very low because of the
 
90
      timing requirements, but nonetheless it should be fixed.
 
91
     </para>
 
92
    </listitem>
 
93
 
 
94
    <listitem>
 
95
     <para>
 
96
      Fix crash-safety bug with newly-created-or-reset sequences (Tom Lane)
 
97
     </para>
 
98
 
 
99
     <para>
 
100
      If <command>ALTER SEQUENCE</> was executed on a freshly created or
 
101
      reset sequence, and then precisely one <function>nextval()</> call
 
102
      was made on it, and then the server crashed, WAL replay would restore
 
103
      the sequence to a state in which it appeared that no
 
104
      <function>nextval()</> had been done, thus allowing the first
 
105
      sequence value to be returned again by the next
 
106
      <function>nextval()</> call.  In particular this could manifest for
 
107
      <type>serial</> columns, since creation of a serial column's sequence
 
108
      includes an <command>ALTER SEQUENCE OWNED BY</> step.
 
109
     </para>
 
110
    </listitem>
 
111
 
 
112
    <listitem>
 
113
     <para>
 
114
      Fix <function>txid_current()</> to report the correct epoch when not
 
115
      in hot standby (Heikki Linnakangas)
 
116
     </para>
 
117
 
 
118
     <para>
 
119
      This fixes a regression introduced in the previous minor release.
 
120
     </para>
 
121
    </listitem>
 
122
 
 
123
    <listitem>
 
124
     <para>
 
125
      Fix bug in startup of Hot Standby when a master transaction has many
 
126
      subtransactions (Andres Freund)
 
127
     </para>
 
128
 
 
129
     <para>
 
130
      This mistake led to failures reported as <quote>out-of-order XID
 
131
      insertion in KnownAssignedXids</>.
 
132
     </para>
 
133
    </listitem>
 
134
 
 
135
    <listitem>
 
136
     <para>
 
137
      Ensure the <filename>backup_label</> file is fsync'd after
 
138
      <function>pg_start_backup()</> (Dave Kerr)
 
139
     </para>
 
140
    </listitem>
 
141
 
 
142
    <listitem>
 
143
     <para>
 
144
      Fix timeout handling in walsender processes (Tom Lane)
 
145
     </para>
 
146
 
 
147
     <para>
 
148
      WAL sender background processes neglected to establish a
 
149
      <systemitem>SIGALRM</> handler, meaning they would wait forever in
 
150
      some corner cases where a timeout ought to happen.
 
151
     </para>
 
152
    </listitem>
 
153
 
 
154
    <listitem>
 
155
     <para>
 
156
      Back-patch 9.1 improvement to compress the fsync request queue
 
157
      (Robert Haas)
 
158
     </para>
 
159
 
 
160
     <para>
 
161
      This improves performance during checkpoints.  The 9.1 change
 
162
      has now seen enough field testing to seem safe to back-patch.
 
163
     </para>
 
164
    </listitem>
 
165
 
 
166
    <listitem>
 
167
     <para>
 
168
      Fix <literal>LISTEN</>/<literal>NOTIFY</> to cope better with I/O
 
169
      problems, such as out of disk space (Tom Lane)
 
170
     </para>
 
171
 
 
172
     <para>
 
173
      After a write failure, all subsequent attempts to send more
 
174
      <literal>NOTIFY</> messages would fail with messages like
 
175
      <quote>Could not read from file "pg_notify/<replaceable>nnnn</>" at
 
176
      offset <replaceable>nnnnn</>: Success</quote>.
 
177
     </para>
 
178
    </listitem>
 
179
 
 
180
    <listitem>
 
181
     <para>
 
182
      Only allow autovacuum to be auto-canceled by a directly blocked
 
183
      process (Tom Lane)
 
184
     </para>
 
185
 
 
186
     <para>
 
187
      The original coding could allow inconsistent behavior in some cases;
 
188
      in particular, an autovacuum could get canceled after less than
 
189
      <literal>deadlock_timeout</> grace period.
 
190
     </para>
 
191
    </listitem>
 
192
 
 
193
    <listitem>
 
194
     <para>
 
195
      Improve logging of autovacuum cancels (Robert Haas)
 
196
     </para>
 
197
    </listitem>
 
198
 
 
199
    <listitem>
 
200
     <para>
 
201
      Fix log collector so that <literal>log_truncate_on_rotation</> works
 
202
      during the very first log rotation after server start (Tom Lane)
 
203
     </para>
 
204
    </listitem>
 
205
 
 
206
    <listitem>
 
207
     <para>
 
208
      Fix <literal>WITH</> attached to a nested set operation
 
209
      (<literal>UNION</>/<literal>INTERSECT</>/<literal>EXCEPT</>)
 
210
      (Tom Lane)
 
211
     </para>
 
212
    </listitem>
 
213
 
 
214
    <listitem>
 
215
     <para>
 
216
      Ensure that a whole-row reference to a subquery doesn't include any
 
217
      extra <literal>GROUP BY</> or <literal>ORDER BY</> columns (Tom Lane)
 
218
     </para>
 
219
    </listitem>
 
220
 
 
221
    <listitem>
 
222
     <para>
 
223
      Disallow copying whole-row references in <literal>CHECK</>
 
224
      constraints and index definitions during <command>CREATE TABLE</>
 
225
      (Tom Lane)
 
226
     </para>
 
227
 
 
228
     <para>
 
229
      This situation can arise in <command>CREATE TABLE</> with
 
230
      <literal>LIKE</> or <literal>INHERITS</>.  The copied whole-row
 
231
      variable was incorrectly labeled with the row type of the original
 
232
      table not the new one.  Rejecting the case seems reasonable for
 
233
      <literal>LIKE</>, since the row types might well diverge later.  For
 
234
      <literal>INHERITS</> we should ideally allow it, with an implicit
 
235
      coercion to the parent table's row type; but that will require more
 
236
      work than seems safe to back-patch.
 
237
     </para>
 
238
    </listitem>
 
239
 
 
240
    <listitem>
 
241
     <para>
 
242
      Fix memory leak in <literal>ARRAY(SELECT ...)</> subqueries (Heikki
 
243
      Linnakangas, Tom Lane)
 
244
     </para>
 
245
    </listitem>
 
246
 
 
247
    <listitem>
 
248
     <para>
 
249
      Fix extraction of common prefixes from regular expressions (Tom Lane)
 
250
     </para>
 
251
 
 
252
     <para>
 
253
      The code could get confused by quantified parenthesized
 
254
      subexpressions, such as <literal>^(foo)?bar</>.  This would lead to
 
255
      incorrect index optimization of searches for such patterns.
 
256
     </para>
 
257
    </listitem>
 
258
 
 
259
    <listitem>
 
260
     <para>
 
261
      Fix bugs with parsing signed
 
262
      <replaceable>hh</><literal>:</><replaceable>mm</> and
 
263
      <replaceable>hh</><literal>:</><replaceable>mm</><literal>:</><replaceable>ss</>
 
264
      fields in <type>interval</> constants (Amit Kapila, Tom Lane)
 
265
     </para>
 
266
    </listitem>
 
267
 
 
268
    <listitem>
 
269
     <para>
 
270
      Use Postgres' encoding conversion functions, not Python's, when
 
271
      converting a Python Unicode string to the server encoding in
 
272
      PL/Python (Jan Urbanski)
 
273
     </para>
 
274
 
 
275
     <para>
 
276
      This avoids some corner-case problems, notably that Python doesn't
 
277
      support all the encodings Postgres does.  A notable functional change
 
278
      is that if the server encoding is SQL_ASCII, you will get the UTF-8
 
279
      representation of the string; formerly, any non-ASCII characters in
 
280
      the string would result in an error.
 
281
     </para>
 
282
    </listitem>
 
283
 
 
284
    <listitem>
 
285
     <para>
 
286
      Fix mapping of PostgreSQL encodings to Python encodings in PL/Python
 
287
      (Jan Urbanski)
 
288
     </para>
 
289
    </listitem>
 
290
 
 
291
    <listitem>
 
292
     <para>
 
293
      Report errors properly in <filename>contrib/xml2</>'s
 
294
      <function>xslt_process()</> (Tom Lane)
 
295
     </para>
 
296
    </listitem>
 
297
 
 
298
    <listitem>
 
299
     <para>
 
300
      Update time zone data files to <application>tzdata</> release 2012e
 
301
      for DST law changes in Morocco and Tokelau
 
302
     </para>
 
303
    </listitem>
 
304
 
 
305
   </itemizedlist>
 
306
 
 
307
  </sect2>
 
308
 </sect1>
 
309
 
4
310
 <sect1 id="release-9-0-8">
5
311
  <title>Release 9.0.8</title>
6
312