~ubuntu-branches/ubuntu/precise/postgresql-9.1/precise-security

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-02-27 07:30:59 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120227073059-u7fux640td9s0t0q
Tags: 9.1.3-1
* Urgency medium due to security fixes.
* New upstream security/bug fix release:
  - Require execute permission on the trigger function for "CREATE
    TRIGGER".
    This missing check could allow another user to execute a trigger
    function with forged input data, by installing it on a table he
    owns. This is only of significance for trigger functions marked
    SECURITY DEFINER, since otherwise trigger functions run as the
    table owner anyway. (CVE-2012-0866)
  - Remove arbitrary limitation on length of common name in SSL
    certificates.
    Both libpq and the server truncated the common name extracted from
    an SSL certificate at 32 bytes. Normally this would cause nothing
    worse than an unexpected verification failure, but there are some
    rather-implausible scenarios in which it might allow one
    certificate holder to impersonate another. The victim would have to
    have a common name exactly 32 bytes long, and the attacker would
    have to persuade a trusted CA to issue a certificate in which the
    common name has that string as a prefix. Impersonating a server
    would also require some additional exploit to redirect client
    connections. (CVE-2012-0867)
  - Convert newlines to spaces in names written in pg_dump comments.
    pg_dump was incautious about sanitizing object names that are
    emitted within SQL comments in its output script. A name containing
    a newline would at least render the script syntactically incorrect.
    Maliciously crafted object names could present a SQL injection risk
    when the script is reloaded. (CVE-2012-0868)
  - Fix btree index corruption from insertions concurrent with
    vacuuming.
    An index page split caused by an insertion could sometimes cause a
    concurrently-running "VACUUM" to miss removing index entries that
    it should remove. After the corresponding table rows are removed,
    the dangling index entries would cause errors (such as "could not
    read block N in file ...") or worse, silently wrong query results
    after unrelated rows are re-inserted at the now-free table
    locations. This bug has been present since release 8.2, but occurs
    so infrequently that it was not diagnosed until now. If you have
    reason to suspect that it has happened in your database, reindexing
    the affected index will fix things.
  - Fix transient zeroing of shared buffers during WAL replay.
    The replay logic would sometimes zero and refill a shared buffer,
    so that the contents were transiently invalid. In hot standby mode
    this can result in a query that's executing in parallel seeing
    garbage data. Various symptoms could result from that, but the most
    common one seems to be "invalid memory alloc request size".
  - Fix handling of data-modifying WITH subplans in READ COMMITTED
    rechecking.
    A WITH clause containing "INSERT"/"UPDATE"/"DELETE" would crash if
    the parent "UPDATE" or "DELETE" command needed to be re-evaluated
    at one or more rows due to concurrent updates in READ COMMITTED
    mode.
  - Fix corner case in SSI transaction cleanup.
    When finishing up a read-write serializable transaction, a crash
    could occur if all remaining active serializable transactions are
    read-only.
  - Fix postmaster to attempt restart after a hot-standby crash.
    A logic error caused the postmaster to terminate, rather than
    attempt to restart the cluster, if any backend process crashed
    while operating in hot standby mode.
  - Fix "CLUSTER"/"VACUUM FULL" handling of toast values owned by
    recently-updated rows.
    This oversight could lead to "duplicate key value violates unique
    constraint" errors being reported against the toast table's index
    during one of these commands.
  - Update per-column permissions, not only per-table permissions, when
    changing table owner.
    Failure to do this meant that any previously granted column
    permissions were still shown as having been granted by the old
    owner. This meant that neither the new owner nor a superuser could
    revoke the now-untraceable-to-table-owner permissions.
  - Support foreign data wrappers and foreign servers in "REASSIGN
    OWNED".
    This command failed with "unexpected classid" errors if it needed
    to change the ownership of any such objects.
  - Allow non-existent values for some settings in "ALTER USER/DATABASE
    SET".
    Allow default_text_search_config, default_tablespace, and
    temp_tablespaces to be set to names that are not known. This is
    because they might be known in another database where the setting
    is intended to be used, or for the tablespace cases because the
    tablespace might not be created yet. The same issue was previously
    recognized for search_path, and these settings now act like that
    one.
  - Fix "unsupported node type" error caused by COLLATE in an "INSERT"
    expression.
  - Avoid crashing when we have problems deleting table files
    post-commit.
    Dropping a table should lead to deleting the underlying disk files
    only after the transaction commits. In event of failure then (for
    instance, because of wrong file permissions) the code is supposed
    to just emit a warning message and go on, since it's too late to
    abort the transaction. This logic got broken as of release 8.4,
    causing such situations to result in a PANIC and an unrestartable
    database.
  - Recover from errors occurring during WAL replay of "DROP
    TABLESPACE".
    Replay will attempt to remove the tablespace's directories, but
    there are various reasons why this might fail (for example,
    incorrect ownership or permissions on those directories). Formerly
    the replay code would panic, rendering the database unrestartable
    without manual intervention. It seems better to log the problem and
    continue, since the only consequence of failure to remove the
    directories is some wasted disk space.
  - Fix race condition in logging AccessExclusiveLocks for hot standby.
    Sometimes a lock would be logged as being held by "transaction
    zero". This is at least known to produce assertion failures on
    slave servers, and might be the cause of more serious problems.
  - Track the OID counter correctly during WAL replay, even when it
    wraps around.
  - Prevent emitting misleading "consistent recovery state reached" log
    message at the beginning of crash recovery.
  - Fix initial value of pg_stat_replication.replay_location.
  - Fix regular expression back-references with - attached.
    Rather than enforcing an exact string match, the code would
    effectively accept any string that satisfies the pattern
    sub-expression referenced by the back-reference symbol.
    A similar problem still afflicts back-references that are embedded
    in a larger quantified expression, rather than being the immediate
    subject of the quantifier. This will be addressed in a future
    PostgreSQL release.
  - Fix recently-introduced memory leak in processing of inet/cidr
    values.
  - Fix planner's ability to push down index-expression restrictions
    through UNION ALL.
  - Fix planning of WITH clauses referenced in "UPDATE"/"DELETE" on an
    inherited table.
    This bug led to "could not find plan for CTE" failures.
  - Fix GIN cost estimation to handle column IN (...) index conditions.
    This oversight would usually lead to crashes if such a condition
    could be used with a GIN index.
  - Fix dangling pointer after "CREATE TABLE AS"/"SELECT INTO" in a
    SQL-language function.
    In most cases this only led to an assertion failure in
    assert-enabled builds, but worse consequences seem possible.
  - Fix I/O-conversion-related memory leaks in plpgsql.
  - Work around bug in perl's SvPVutf8() function.
    This function crashes when handed a typeglob or certain read-only
    objects such as $^V. Make plperl avoid passing those to it.
  - In pg_dump, don't dump contents of an extension's configuration
    tables if the extension itself is not being dumped.
  - Improve pg_dump's handling of inherited table columns.
    pg_dump mishandled situations where a child column has a different
    default expression than its parent column. If the default is
    textually identical to the parent's default, but not actually the
    same (for instance, because of schema search path differences) it
    would not be recognized as different, so that after dump and
    restore the child would be allowed to inherit the parent's default.
    Child columns that are NOT NULL where their parent is not could
    also be restored subtly incorrectly.
  - Fix pg_restore's direct-to-database mode for INSERT-style table data.
    Direct-to-database restores from archive files made with
    "--inserts" or "--column-inserts" options fail when using
    pg_restore from a release dated September or December 2011, as a
    result of an oversight in a fix for another problem. The archive
    file itself is not at fault, and text-mode output is okay.
  - Teach pg_upgrade to handle renaming of plpython's shared library.
    Upgrading a pre-9.1 database that included plpython would fail
    because of this oversight.
  - Allow pg_upgrade to process tables containing regclass columns.
    Since pg_upgrade now takes care to preserve pg_class OIDs, there
    was no longer any reason for this restriction.
  - Make libpq ignore ENOTDIR errors when looking for an SSL client
    certificate file.
    This allows SSL connections to be established, though without a
    certificate, even when the user's home directory is set to
    something like /dev/null.
  - Fix some more field alignment issues in ecpg's SQLDA area.
  - Allow AT option in ecpg DEALLOCATE statements.
    The infrastructure to support this has been there for awhile, but
    through an oversight there was still an error check rejecting the
    case.
  - Do not use the variable name when defining a varchar structure in
    ecpg.
  - Fix "contrib/auto_explain"'s JSON output mode to produce valid JSON.
  - Fix error in "contrib/intarray"'s int[] & int[] operator.
    If the smallest integer the two input arrays have in common is 1,
    and there are smaller values in either array, then 1 would be
    incorrectly omitted from the result.
  - Fix error detection in "contrib/pgcrypto"'s encrypt_iv() and
    decrypt_iv().
    These functions failed to report certain types of invalid-input
    errors, and would instead return random garbage values for
    incorrect input.
  - Fix one-byte buffer overrun in "contrib/test_parser".
    The code would try to read one more byte than it should, which
    would crash in corner cases. Since "contrib/test_parser" is only
    example code, this is not a security issue in itself, but bad
    example code is still bad.
  - Use __sync_lock_test_and_set() for spinlocks on ARM, if available.
    This function replaces our previous use of the SWPB instruction,
    which is deprecated and not available on ARMv6 and later. Reports
    suggest that the old code doesn't fail in an obvious way on recent
    ARM boards, but simply doesn't interlock concurrent accesses,
    leading to bizarre failures in multiprocess operation.
  - Use "-fexcess-precision=standard" option when building with gcc
    versions that accept it.
    This prevents assorted scenarios wherein recent versions of gcc
    will produce creative results.
  - Allow use of threaded Python on FreeBSD (Chris Rees)
    Our configure script previously believed that this combination
    wouldn't work; but FreeBSD fixed the problem, so remove that error
    check.
* Drop 00git_inet_cidr_unpack.patch, 01-armel-tas.patch: Applied upstream.
* debian/watch: Use ftp for checking, thanks Peter Eisentraut.
  (Closes: #656129)
* debian/control: Bump Standards-Version to 3.9.3. No changes necessary.

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-7">
 
5
  <title>Release 9.0.7</title>
 
6
 
 
7
  <note>
 
8
  <title>Release Date</title>
 
9
  <simpara>2012-02-27</simpara>
 
10
  </note>
 
11
 
 
12
  <para>
 
13
   This release contains a variety of fixes from 9.0.6.
 
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.7</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
      Require execute permission on the trigger function for
 
40
      <command>CREATE TRIGGER</> (Robert Haas)
 
41
     </para>
 
42
 
 
43
     <para>
 
44
      This missing check could allow another user to execute a trigger
 
45
      function with forged input data, by installing it on a table he owns.
 
46
      This is only of significance for trigger functions marked
 
47
      <literal>SECURITY DEFINER</>, since otherwise trigger functions run
 
48
      as the table owner anyway.  (CVE-2012-0866)
 
49
     </para>
 
50
    </listitem>
 
51
 
 
52
    <listitem>
 
53
     <para>
 
54
      Remove arbitrary limitation on length of common name in SSL
 
55
      certificates (Heikki Linnakangas)
 
56
     </para>
 
57
 
 
58
     <para>
 
59
      Both <application>libpq</> and the server truncated the common name
 
60
      extracted from an SSL certificate at 32 bytes.  Normally this would
 
61
      cause nothing worse than an unexpected verification failure, but there
 
62
      are some rather-implausible scenarios in which it might allow one
 
63
      certificate holder to impersonate another.  The victim would have to
 
64
      have a common name exactly 32 bytes long, and the attacker would have
 
65
      to persuade a trusted CA to issue a certificate in which the common
 
66
      name has that string as a prefix.  Impersonating a server would also
 
67
      require some additional exploit to redirect client connections.
 
68
      (CVE-2012-0867)
 
69
     </para>
 
70
    </listitem>
 
71
 
 
72
    <listitem>
 
73
     <para>
 
74
      Convert newlines to spaces in names written in <application>pg_dump</>
 
75
      comments (Robert Haas)
 
76
     </para>
 
77
 
 
78
     <para>
 
79
      <application>pg_dump</> was incautious about sanitizing object names
 
80
      that are emitted within SQL comments in its output script.  A name
 
81
      containing a newline would at least render the script syntactically
 
82
      incorrect.  Maliciously crafted object names could present a SQL
 
83
      injection risk when the script is reloaded.  (CVE-2012-0868)
 
84
     </para>
 
85
    </listitem>
 
86
 
 
87
    <listitem>
 
88
     <para>
 
89
      Fix btree index corruption from insertions concurrent with vacuuming
 
90
      (Tom Lane)
 
91
     </para>
 
92
 
 
93
     <para>
 
94
      An index page split caused by an insertion could sometimes cause a
 
95
      concurrently-running <command>VACUUM</> to miss removing index entries
 
96
      that it should remove.  After the corresponding table rows are removed,
 
97
      the dangling index entries would cause errors (such as <quote>could not
 
98
      read block N in file ...</>) or worse, silently wrong query results
 
99
      after unrelated rows are re-inserted at the now-free table locations.
 
100
      This bug has been present since release 8.2, but occurs so infrequently
 
101
      that it was not diagnosed until now.  If you have reason to suspect
 
102
      that it has happened in your database, reindexing the affected index
 
103
      will fix things.
 
104
     </para>
 
105
    </listitem>
 
106
 
 
107
    <listitem>
 
108
     <para>
 
109
      Fix transient zeroing of shared buffers during WAL replay (Tom Lane)
 
110
     </para>
 
111
 
 
112
     <para>
 
113
      The replay logic would sometimes zero and refill a shared buffer, so
 
114
      that the contents were transiently invalid.  In hot standby mode this
 
115
      can result in a query that's executing in parallel seeing garbage data.
 
116
      Various symptoms could result from that, but the most common one seems
 
117
      to be <quote>invalid memory alloc request size</>.
 
118
     </para>
 
119
    </listitem>
 
120
 
 
121
    <listitem>
 
122
     <para>
 
123
      Fix postmaster to attempt restart after a hot-standby crash (Tom Lane)
 
124
     </para>
 
125
 
 
126
     <para>
 
127
      A logic error caused the postmaster to terminate, rather than attempt
 
128
      to restart the cluster, if any backend process crashed while operating
 
129
      in hot standby mode.
 
130
     </para>
 
131
    </listitem>
 
132
 
 
133
    <listitem>
 
134
     <para>
 
135
      Fix <command>CLUSTER</>/<command>VACUUM FULL</> handling of toast
 
136
      values owned by recently-updated rows (Tom Lane)
 
137
     </para>
 
138
 
 
139
     <para>
 
140
      This oversight could lead to <quote>duplicate key value violates unique
 
141
      constraint</> errors being reported against the toast table's index
 
142
      during one of these commands.
 
143
     </para>
 
144
    </listitem>
 
145
 
 
146
    <listitem>
 
147
     <para>
 
148
      Update per-column permissions, not only per-table permissions, when
 
149
      changing table owner (Tom Lane)
 
150
     </para>
 
151
 
 
152
     <para>
 
153
      Failure to do this meant that any previously granted column permissions
 
154
      were still shown as having been granted by the old owner.  This meant
 
155
      that neither the new owner nor a superuser could revoke the
 
156
      now-untraceable-to-table-owner permissions.
 
157
     </para>
 
158
    </listitem>
 
159
 
 
160
    <listitem>
 
161
     <para>
 
162
      Support foreign data wrappers and foreign servers in
 
163
      <command>REASSIGN OWNED</> (Alvaro Herrera)
 
164
     </para>
 
165
 
 
166
     <para>
 
167
      This command failed with <quote>unexpected classid</> errors if
 
168
      it needed to change the ownership of any such objects.
 
169
     </para>
 
170
    </listitem>
 
171
 
 
172
    <listitem>
 
173
     <para>
 
174
      Allow non-existent values for some settings in <command>ALTER
 
175
      USER/DATABASE SET</> (Heikki Linnakangas)
 
176
     </para>
 
177
 
 
178
     <para>
 
179
      Allow <varname>default_text_search_config</>,
 
180
      <varname>default_tablespace</>, and <varname>temp_tablespaces</> to be
 
181
      set to names that are not known.  This is because they might be known
 
182
      in another database where the setting is intended to be used, or for the
 
183
      tablespace cases because the tablespace might not be created yet.  The
 
184
      same issue was previously recognized for <varname>search_path</>, and
 
185
      these settings now act like that one.
 
186
     </para>
 
187
    </listitem>
 
188
 
 
189
    <listitem>
 
190
     <para>
 
191
      Avoid crashing when we have problems deleting table files post-commit
 
192
      (Tom Lane)
 
193
     </para>
 
194
 
 
195
     <para>
 
196
      Dropping a table should lead to deleting the underlying disk files only
 
197
      after the transaction commits.  In event of failure then (for instance,
 
198
      because of wrong file permissions) the code is supposed to just emit a
 
199
      warning message and go on, since it's too late to abort the
 
200
      transaction.  This logic got broken as of release 8.4, causing such
 
201
      situations to result in a PANIC and an unrestartable database.
 
202
     </para>
 
203
    </listitem>
 
204
 
 
205
    <listitem>
 
206
     <para>
 
207
      Recover from errors occurring during WAL replay of <command>DROP
 
208
      TABLESPACE</> (Tom Lane)
 
209
     </para>
 
210
 
 
211
     <para>
 
212
      Replay will attempt to remove the tablespace's directories, but there
 
213
      are various reasons why this might fail (for example, incorrect
 
214
      ownership or permissions on those directories).  Formerly the replay
 
215
      code would panic, rendering the database unrestartable without manual
 
216
      intervention.  It seems better to log the problem and continue, since
 
217
      the only consequence of failure to remove the directories is some
 
218
      wasted disk space.
 
219
     </para>
 
220
    </listitem>
 
221
 
 
222
    <listitem>
 
223
     <para>
 
224
      Fix race condition in logging AccessExclusiveLocks for hot standby
 
225
      (Simon Riggs)
 
226
     </para>
 
227
 
 
228
     <para>
 
229
      Sometimes a lock would be logged as being held by <quote>transaction
 
230
      zero</>.  This is at least known to produce assertion failures on
 
231
      slave servers, and might be the cause of more serious problems.
 
232
     </para>
 
233
    </listitem>
 
234
 
 
235
    <listitem>
 
236
     <para>
 
237
      Track the OID counter correctly during WAL replay, even when it wraps
 
238
      around (Tom Lane)
 
239
     </para>
 
240
 
 
241
     <para>
 
242
      Previously the OID counter would remain stuck at a high value until the
 
243
      system exited replay mode.  The practical consequences of that are
 
244
      usually nil, but there are scenarios wherein a standby server that's
 
245
      been promoted to master might take a long time to advance the OID
 
246
      counter to a reasonable value once values are needed.
 
247
     </para>
 
248
    </listitem>
 
249
 
 
250
    <listitem>
 
251
     <para>
 
252
      Prevent emitting misleading <quote>consistent recovery state reached</>
 
253
      log message at the beginning of crash recovery (Heikki Linnakangas)
 
254
     </para>
 
255
    </listitem>
 
256
 
 
257
    <listitem>
 
258
     <para>
 
259
      Fix initial value of
 
260
      <structname>pg_stat_replication</>.<structfield>replay_location</>
 
261
      (Fujii Masao)
 
262
     </para>
 
263
 
 
264
     <para>
 
265
      Previously, the value shown would be wrong until at least one WAL
 
266
      record had been replayed.
 
267
     </para>
 
268
    </listitem>
 
269
 
 
270
    <listitem>
 
271
     <para>
 
272
      Fix regular expression back-references with <literal>*</> attached
 
273
      (Tom Lane)
 
274
     </para>
 
275
 
 
276
     <para>
 
277
      Rather than enforcing an exact string match, the code would effectively
 
278
      accept any string that satisfies the pattern sub-expression referenced
 
279
      by the back-reference symbol.
 
280
     </para>
 
281
 
 
282
     <para>
 
283
      A similar problem still afflicts back-references that are embedded in a
 
284
      larger quantified expression, rather than being the immediate subject
 
285
      of the quantifier.  This will be addressed in a future
 
286
      <productname>PostgreSQL</> release.
 
287
     </para>
 
288
    </listitem>
 
289
 
 
290
    <listitem>
 
291
     <para>
 
292
      Fix recently-introduced memory leak in processing of
 
293
      <type>inet</>/<type>cidr</> values (Heikki Linnakangas)
 
294
     </para>
 
295
 
 
296
     <para>
 
297
      A patch in the December 2011 releases of <productname>PostgreSQL</>
 
298
      caused memory leakage in these operations, which could be significant
 
299
      in scenarios such as building a btree index on such a column.
 
300
     </para>
 
301
    </listitem>
 
302
 
 
303
    <listitem>
 
304
     <para>
 
305
      Fix dangling pointer after <command>CREATE TABLE AS</>/<command>SELECT
 
306
      INTO</> in a SQL-language function (Tom Lane)
 
307
     </para>
 
308
 
 
309
     <para>
 
310
      In most cases this only led to an assertion failure in assert-enabled
 
311
      builds, but worse consequences seem possible.
 
312
     </para>
 
313
    </listitem>
 
314
 
 
315
    <listitem>
 
316
     <para>
 
317
      Avoid double close of file handle in syslogger on Windows (MauMau)
 
318
     </para>
 
319
 
 
320
     <para>
 
321
      Ordinarily this error was invisible, but it would cause an exception
 
322
      when running on a debug version of Windows.
 
323
     </para>
 
324
    </listitem>
 
325
 
 
326
    <listitem>
 
327
     <para>
 
328
      Fix I/O-conversion-related memory leaks in plpgsql
 
329
      (Andres Freund, Jan Urbanski, Tom Lane)
 
330
     </para>
 
331
 
 
332
     <para>
 
333
      Certain operations would leak memory until the end of the current
 
334
      function.
 
335
     </para>
 
336
    </listitem>
 
337
 
 
338
    <listitem>
 
339
     <para>
 
340
      Improve <application>pg_dump</>'s handling of inherited table columns
 
341
      (Tom Lane)
 
342
     </para>
 
343
 
 
344
     <para>
 
345
      <application>pg_dump</> mishandled situations where a child column has
 
346
      a different default expression than its parent column.  If the default
 
347
      is textually identical to the parent's default, but not actually the
 
348
      same (for instance, because of schema search path differences) it would
 
349
      not be recognized as different, so that after dump and restore the
 
350
      child would be allowed to inherit the parent's default.  Child columns
 
351
      that are <literal>NOT NULL</> where their parent is not could also be
 
352
      restored subtly incorrectly.
 
353
     </para>
 
354
    </listitem>
 
355
 
 
356
    <listitem>
 
357
     <para>
 
358
      Fix <application>pg_restore</>'s direct-to-database mode for
 
359
      INSERT-style table data (Tom Lane)
 
360
     </para>
 
361
 
 
362
     <para>
 
363
      Direct-to-database restores from archive files made with
 
364
      <option>--inserts</> or <option>--column-inserts</> options fail when
 
365
      using <application>pg_restore</> from a release dated September or
 
366
      December 2011, as a result of an oversight in a fix for another
 
367
      problem.  The archive file itself is not at fault, and text-mode
 
368
      output is okay.
 
369
     </para>
 
370
    </listitem>
 
371
 
 
372
    <listitem>
 
373
     <para>
 
374
      Allow <application>pg_upgrade</> to process tables containing
 
375
      <type>regclass</> columns (Bruce Momjian)
 
376
     </para>
 
377
 
 
378
     <para>
 
379
      Since <application>pg_upgrade</> now takes care to preserve
 
380
      <structname>pg_class</> OIDs, there was no longer any reason for this
 
381
      restriction.
 
382
     </para>
 
383
    </listitem>
 
384
 
 
385
    <listitem>
 
386
     <para>
 
387
      Make <application>libpq</> ignore <literal>ENOTDIR</> errors
 
388
      when looking for an SSL client certificate file
 
389
      (Magnus Hagander)
 
390
     </para>
 
391
 
 
392
     <para>
 
393
      This allows SSL connections to be established, though without a
 
394
      certificate, even when the user's home directory is set to something
 
395
      like <literal>/dev/null</>.
 
396
     </para>
 
397
    </listitem>
 
398
 
 
399
    <listitem>
 
400
     <para>
 
401
      Fix some more field alignment issues in <application>ecpg</>'s SQLDA area
 
402
      (Zoltan Boszormenyi)
 
403
     </para>
 
404
    </listitem>
 
405
 
 
406
    <listitem>
 
407
     <para>
 
408
      Allow <literal>AT</> option in <application>ecpg</>
 
409
      <literal>DEALLOCATE</> statements (Michael Meskes)
 
410
     </para>
 
411
 
 
412
     <para>
 
413
      The infrastructure to support this has been there for awhile, but
 
414
      through an oversight there was still an error check rejecting the case.
 
415
     </para>
 
416
    </listitem>
 
417
 
 
418
    <listitem>
 
419
     <para>
 
420
      Do not use the variable name when defining a varchar structure in ecpg
 
421
      (Michael Meskes)
 
422
     </para>
 
423
    </listitem>
 
424
 
 
425
    <listitem>
 
426
     <para>
 
427
      Fix <filename>contrib/auto_explain</>'s JSON output mode to produce
 
428
      valid JSON (Andrew Dunstan)
 
429
     </para>
 
430
 
 
431
     <para>
 
432
      The output used brackets at the top level, when it should have used
 
433
      braces.
 
434
     </para>
 
435
    </listitem>
 
436
 
 
437
    <listitem>
 
438
     <para>
 
439
      Fix error in <filename>contrib/intarray</>'s <literal>int[] &amp;
 
440
      int[]</> operator (Guillaume Lelarge)
 
441
     </para>
 
442
 
 
443
     <para>
 
444
      If the smallest integer the two input arrays have in common is 1,
 
445
      and there are smaller values in either array, then 1 would be
 
446
      incorrectly omitted from the result.
 
447
     </para>
 
448
    </listitem>
 
449
 
 
450
    <listitem>
 
451
     <para>
 
452
      Fix error detection in <filename>contrib/pgcrypto</>'s
 
453
      <function>encrypt_iv()</> and <function>decrypt_iv()</>
 
454
      (Marko Kreen)
 
455
     </para>
 
456
 
 
457
     <para>
 
458
      These functions failed to report certain types of invalid-input errors,
 
459
      and would instead return random garbage values for incorrect input.
 
460
     </para>
 
461
    </listitem>
 
462
 
 
463
    <listitem>
 
464
     <para>
 
465
      Fix one-byte buffer overrun in <filename>contrib/test_parser</>
 
466
      (Paul Guyot)
 
467
     </para>
 
468
 
 
469
     <para>
 
470
      The code would try to read one more byte than it should, which would
 
471
      crash in corner cases.
 
472
      Since <filename>contrib/test_parser</> is only example code, this is
 
473
      not a security issue in itself, but bad example code is still bad.
 
474
     </para>
 
475
    </listitem>
 
476
 
 
477
    <listitem>
 
478
     <para>
 
479
      Use <function>__sync_lock_test_and_set()</> for spinlocks on ARM, if
 
480
      available (Martin Pitt)
 
481
     </para>
 
482
 
 
483
     <para>
 
484
      This function replaces our previous use of the <literal>SWPB</>
 
485
      instruction, which is deprecated and not available on ARMv6 and later.
 
486
      Reports suggest that the old code doesn't fail in an obvious way on
 
487
      recent ARM boards, but simply doesn't interlock concurrent accesses,
 
488
      leading to bizarre failures in multiprocess operation.
 
489
     </para>
 
490
    </listitem>
 
491
 
 
492
    <listitem>
 
493
     <para>
 
494
      Use <option>-fexcess-precision=standard</> option when building with
 
495
      gcc versions that accept it (Andrew Dunstan)
 
496
     </para>
 
497
 
 
498
     <para>
 
499
      This prevents assorted scenarios wherein recent versions of gcc will
 
500
      produce creative results.
 
501
     </para>
 
502
    </listitem>
 
503
 
 
504
    <listitem>
 
505
     <para>
 
506
      Allow use of threaded Python on FreeBSD (Chris Rees)
 
507
     </para>
 
508
 
 
509
     <para>
 
510
      Our configure script previously believed that this combination wouldn't
 
511
      work; but FreeBSD fixed the problem, so remove that error check.
 
512
     </para>
 
513
    </listitem>
 
514
 
 
515
   </itemizedlist>
 
516
 
 
517
  </sect2>
 
518
 </sect1>
 
519
 
4
520
 <sect1 id="release-9-0-6">
5
521
  <title>Release 9.0.6</title>
6
522