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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-06-04 06:47:45 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120604064745-dvs00jnur0vgkwqs
Tags: 9.1.4-1
* Urgency medium due to security fixes.
* New upstream bug fix/security release:
  - Fix incorrect password transformation in "contrib/pgcrypto"'s DES
    crypt() function.
    If a password string contained the byte value 0x80, the remainder
    of the password was ignored, causing the password to be much weaker
    than it appeared. With this fix, the rest of the string is properly
    included in the DES hash. Any stored password values that are
    affected by this bug will thus no longer match, so the stored
    values may need to be updated. (CVE-2012-2143)
  - Ignore SECURITY DEFINER and SET attributes for a procedural
    language's call handler. Applying such attributes to a call handler
    could crash the server. (CVE-2012-2655)
  - Make "contrib/citext"'s upgrade script fix collations of citext
    arrays and domains over citext.
    Release 9.1.2 provided a fix for collations of citext columns and
    indexes in databases upgraded or reloaded from pre-9.1
    installations, but that fix was incomplete: it neglected to handle
    arrays and domains over citext. This release extends the module's
    upgrade script to handle these cases. As before, if you have
    already run the upgrade script, you'll need to run the collation
    update commands by hand instead. See the 9.1.2 release notes for
    more information about doing this.
  - Allow numeric timezone offsets in timestamp input to be up to 16
    hours away from UTC. Some historical time zones have offsets larger than
    15 hours, the previous limit. This could result in dumped data values
    being rejected during reload.
  - Fix timestamp conversion to cope when the given time is exactly the
    last DST transition time for the current timezone.
    This oversight has been there a long time, but was not noticed
    previously because most DST-using zones are presumed to have an
    indefinite sequence of future DST transitions.
  - Fix text to name and char to name casts to perform string
    truncation correctly in multibyte encodings.
  - Fix memory copying bug in to_tsquery().
  - Ensure txid_current() reports the correct epoch when executed in
    hot standby.
  - Fix planner's handling of outer PlaceHolderVars within subqueries.
    This bug concerns sub-SELECTs that reference variables coming from
    the nullable side of an outer join of the surrounding query. In
    9.1, queries affected by this bug would fail with "ERROR:
    Upper-level PlaceHolderVar found where not expected". But in 9.0
    and 8.4, you'd silently get possibly-wrong answers, since the value
    transmitted into the subquery wouldn't go to null when it should.
  - Fix planning of UNION ALL subqueries with output columns that are
    not simple variables.
    Planning of such cases got noticeably worse in 9.1 as a result of a
    misguided fix for "MergeAppend child's targetlist doesn't match
    MergeAppend" errors. Revert that fix and do it another way.
  - Fix slow session startup when pg_attribute is very large.
    If pg_attribute exceeds one-fourth of shared_buffers, cache
    rebuilding code that is sometimes needed during session start would
    trigger the synchronized-scan logic, causing it to take many times
    longer than normal. The problem was particularly acute if many new
    sessions were starting at once.
  - Ensure sequential scans check for query cancel reasonably often.
    A scan encountering many consecutive pages that contain no live
    tuples would not respond to interrupts meanwhile.
  - Ensure the Windows implementation of PGSemaphoreLock() clears
    ImmediateInterruptOK before returning.
    This oversight meant that a query-cancel interrupt received later
    in the same query could be accepted at an unsafe time, with
    unpredictable but not good consequences.
  - Show whole-row variables safely when printing views or rules.
    Corner cases involving ambiguous names (that is, the name could be
    either a table or column name of the query) were printed in an
    ambiguous way, risking that the view or rule would be interpreted
    differently after dump and reload. Avoid the ambiguous case by
    attaching a no-op cast.
  - Fix "COPY FROM" to properly handle null marker strings that
    correspond to invalid encoding.
    A null marker string such as E'\\0' should work, and did work in
    the past, but the case got broken in 8.4.
  - Fix "EXPLAIN VERBOSE" for writable CTEs containing RETURNING
    clauses.
  - Fix "PREPARE TRANSACTION" to work correctly in the presence of
    advisory locks.
    Historically, "PREPARE TRANSACTION" has simply ignored any
    session-level advisory locks the session holds, but this case was
    accidentally broken in 9.1.
  - Fix truncation of unlogged tables.
  - Ignore missing schemas during non-interactive assignments of
    search_path.
    This re-aligns 9.1's behavior with that of older branches.
    Previously 9.1 would throw an error for nonexistent schemas
    mentioned in search_path settings obtained from places such as
    "ALTER DATABASE SET".
  - Fix bugs with temporary or transient tables used in extension
    scripts.
    This includes cases such as a rewriting "ALTER TABLE" within an
    extension update script, since that uses a transient table behind
    the scenes.
  - Ensure autovacuum worker processes perform stack depth checking
    properly.
    Previously, infinite recursion in a function invoked by
    auto-"ANALYZE" could crash worker processes.
  - Fix logging collector to not lose log coherency under high load.
    The collector previously could fail to reassemble large messages if
    it got too busy.
  - Fix logging collector to ensure it will restart file rotation after
    receiving SIGHUP.
  - Fix "too many LWLocks taken" failure in GiST indexes.
  - Fix WAL replay logic for GIN indexes to not fail if the index was
    subsequently dropped.
  - Correctly detect SSI conflicts of prepared transactions after a
    crash.
  - Avoid synchronous replication delay when committing a transaction
    that only modified temporary tables.
    In such a case the transaction's commit record need not be flushed
    to standby servers, but some of the code didn't know that and
    waited for it to happen anyway.
  - Fix error handling in pg_basebackup.
  - Fix walsender to not go into a busy loop if connection is
    terminated.
  - Fix memory leak in PL/pgSQL's "RETURN NEXT" command.
  - Fix PL/pgSQL's "GET DIAGNOSTICS" command when the target is the
    function's first variable.
  - Ensure that PL/Perl package-qualifies the _TD variable.
    This bug caused trigger invocations to fail when they are nested
    within a function invocation that changes the current package.
  - Fix PL/Python functions returning composite types to accept a
    string for their result value.
    This case was accidentally broken by the 9.1 additions to allow a
    composite result value to be supplied in other formats, such as
    dictionaries.
  - Fix potential access off the end of memory in psql's expanded
    display ("\x") mode.
  - Fix several performance problems in pg_dump when the database
    contains many objects.
    pg_dump could get very slow if the database contained many schemas,
    or if many objects are in dependency loops, or if there are many
    owned sequences.
  - Fix memory and file descriptor leaks in pg_restore when reading a
    directory-format archive.
  - Fix pg_upgrade for the case that a database stored in a non-default
    tablespace contains a table in the cluster's default tablespace.
  - In ecpg, fix rare memory leaks and possible overwrite of one byte
    after the sqlca_t structure.
  - Fix "contrib/dblink"'s dblink_exec() to not leak temporary database
    connections upon error.
  - Fix "contrib/dblink" to report the correct connection name in error
    messages.
  - Fix "contrib/vacuumlo" to use multiple transactions when dropping
    many large objects.
    This change avoids exceeding max_locks_per_transaction when many
    objects need to be dropped. The behavior can be adjusted with the
    new -l (limit) option.
* debian/control: Bump debhelper build dependency to >= 8, as it does not
  build with earlier versions.
* debian/control: Move bzr branches to alioth, so that other members of
  pkg-postgresql can commit. Update Vcs-* tags.
* debian/control: Set Maintainer: to pkg-postgresql group, and move myself
  to Uploaders:.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!-- doc/src/sgml/release-8.4.sgml -->
2
2
<!-- See header comment in release.sgml about typical markup -->
3
3
 
 
4
 <sect1 id="release-8-4-12">
 
5
  <title>Release 8.4.12</title>
 
6
 
 
7
  <note>
 
8
  <title>Release Date</title>
 
9
  <simpara>2012-06-04</simpara>
 
10
  </note>
 
11
 
 
12
  <para>
 
13
   This release contains a variety of fixes from 8.4.11.
 
14
   For information about new features in the 8.4 major release, see
 
15
   <xref linkend="release-8-4">.
 
16
  </para>
 
17
 
 
18
  <sect2>
 
19
   <title>Migration to Version 8.4.12</title>
 
20
 
 
21
   <para>
 
22
    A dump/restore is not required for those running 8.4.X.
 
23
   </para>
 
24
 
 
25
   <para>
 
26
    However, if you are upgrading from a version earlier than 8.4.10,
 
27
    see the release notes for 8.4.10.
 
28
   </para>
 
29
 
 
30
  </sect2>
 
31
 
 
32
  <sect2>
 
33
   <title>Changes</title>
 
34
 
 
35
   <itemizedlist>
 
36
 
 
37
    <listitem>
 
38
     <para>
 
39
      Fix incorrect password transformation in
 
40
      <filename>contrib/pgcrypto</>'s DES <function>crypt()</> function
 
41
      (Solar Designer)
 
42
     </para>
 
43
 
 
44
     <para>
 
45
      If a password string contained the byte value <literal>0x80</>, the
 
46
      remainder of the password was ignored, causing the password to be much
 
47
      weaker than it appeared.  With this fix, the rest of the string is
 
48
      properly included in the DES hash.  Any stored password values that are
 
49
      affected by this bug will thus no longer match, so the stored values may
 
50
      need to be updated.  (CVE-2012-2143)
 
51
     </para>
 
52
    </listitem>
 
53
 
 
54
    <listitem>
 
55
     <para>
 
56
      Ignore <literal>SECURITY DEFINER</> and <literal>SET</> attributes for
 
57
      a procedural language's call handler (Tom Lane)
 
58
     </para>
 
59
 
 
60
     <para>
 
61
      Applying such attributes to a call handler could crash the server.
 
62
      (CVE-2012-2655)
 
63
     </para>
 
64
    </listitem>
 
65
 
 
66
    <listitem>
 
67
     <para>
 
68
      Allow numeric timezone offsets in <type>timestamp</> input to be up to
 
69
      16 hours away from UTC (Tom Lane)
 
70
     </para>
 
71
 
 
72
     <para>
 
73
      Some historical time zones have offsets larger than 15 hours, the
 
74
      previous limit.  This could result in dumped data values being rejected
 
75
      during reload.
 
76
     </para>
 
77
    </listitem>
 
78
 
 
79
    <listitem>
 
80
     <para>
 
81
      Fix timestamp conversion to cope when the given time is exactly the
 
82
      last DST transition time for the current timezone (Tom Lane)
 
83
     </para>
 
84
 
 
85
     <para>
 
86
      This oversight has been there a long time, but was not noticed
 
87
      previously because most DST-using zones are presumed to have an
 
88
      indefinite sequence of future DST transitions.
 
89
     </para>
 
90
    </listitem>
 
91
 
 
92
    <listitem>
 
93
     <para>
 
94
      Fix <type>text</> to <type>name</> and <type>char</> to <type>name</>
 
95
      casts to perform string truncation correctly in multibyte encodings
 
96
      (Karl Schnaitter)
 
97
     </para>
 
98
    </listitem>
 
99
 
 
100
    <listitem>
 
101
     <para>
 
102
      Fix memory copying bug in <function>to_tsquery()</> (Heikki Linnakangas)
 
103
     </para>
 
104
    </listitem>
 
105
 
 
106
    <listitem>
 
107
     <para>
 
108
      Fix planner's handling of outer PlaceHolderVars within subqueries (Tom
 
109
      Lane)
 
110
     </para>
 
111
 
 
112
     <para>
 
113
      This bug concerns sub-SELECTs that reference variables coming from the
 
114
      nullable side of an outer join of the surrounding query.
 
115
      In 9.1, queries affected by this bug would fail with <quote>ERROR:
 
116
      Upper-level PlaceHolderVar found where not expected</>.  But in 9.0 and
 
117
      8.4, you'd silently get possibly-wrong answers, since the value
 
118
      transmitted into the subquery wouldn't go to null when it should.
 
119
     </para>
 
120
    </listitem>
 
121
 
 
122
    <listitem>
 
123
     <para>
 
124
      Fix slow session startup when <structname>pg_attribute</> is very large
 
125
      (Tom Lane)
 
126
     </para>
 
127
 
 
128
     <para>
 
129
      If <structname>pg_attribute</> exceeds one-fourth of
 
130
      <varname>shared_buffers</>, cache rebuilding code that is sometimes
 
131
      needed during session start would trigger the synchronized-scan logic,
 
132
      causing it to take many times longer than normal.  The problem was
 
133
      particularly acute if many new sessions were starting at once.
 
134
     </para>
 
135
    </listitem>
 
136
 
 
137
    <listitem>
 
138
     <para>
 
139
      Ensure sequential scans check for query cancel reasonably often (Merlin
 
140
      Moncure)
 
141
     </para>
 
142
 
 
143
     <para>
 
144
      A scan encountering many consecutive pages that contain no live tuples
 
145
      would not respond to interrupts meanwhile.
 
146
     </para>
 
147
    </listitem>
 
148
 
 
149
    <listitem>
 
150
     <para>
 
151
      Ensure the Windows implementation of <function>PGSemaphoreLock()</>
 
152
      clears <varname>ImmediateInterruptOK</> before returning (Tom Lane)
 
153
     </para>
 
154
 
 
155
     <para>
 
156
      This oversight meant that a query-cancel interrupt received later
 
157
      in the same query could be accepted at an unsafe time, with
 
158
      unpredictable but not good consequences.
 
159
     </para>
 
160
    </listitem>
 
161
 
 
162
    <listitem>
 
163
     <para>
 
164
      Show whole-row variables safely when printing views or rules
 
165
      (Abbas Butt, Tom Lane)
 
166
     </para>
 
167
 
 
168
     <para>
 
169
      Corner cases involving ambiguous names (that is, the name could be
 
170
      either a table or column name of the query) were printed in an
 
171
      ambiguous way, risking that the view or rule would be interpreted
 
172
      differently after dump and reload.  Avoid the ambiguous case by
 
173
      attaching a no-op cast.
 
174
     </para>
 
175
    </listitem>
 
176
 
 
177
    <listitem>
 
178
     <para>
 
179
      Fix <command>COPY FROM</> to properly handle null marker strings that
 
180
      correspond to invalid encoding (Tom Lane)
 
181
     </para>
 
182
 
 
183
     <para>
 
184
      A null marker string such as <literal>E'\\0'</> should work, and did
 
185
      work in the past, but the case got broken in 8.4.
 
186
     </para>
 
187
    </listitem>
 
188
 
 
189
    <listitem>
 
190
     <para>
 
191
      Ensure autovacuum worker processes perform stack depth checking
 
192
      properly (Heikki Linnakangas)
 
193
     </para>
 
194
 
 
195
     <para>
 
196
      Previously, infinite recursion in a function invoked by
 
197
      auto-<command>ANALYZE</> could crash worker processes.
 
198
     </para>
 
199
    </listitem>
 
200
 
 
201
    <listitem>
 
202
     <para>
 
203
      Fix logging collector to not lose log coherency under high load (Andrew
 
204
      Dunstan)
 
205
     </para>
 
206
 
 
207
     <para>
 
208
      The collector previously could fail to reassemble large messages if it
 
209
      got too busy.
 
210
     </para>
 
211
    </listitem>
 
212
 
 
213
    <listitem>
 
214
     <para>
 
215
      Fix logging collector to ensure it will restart file rotation
 
216
      after receiving <systemitem>SIGHUP</> (Tom Lane)
 
217
     </para>
 
218
    </listitem>
 
219
 
 
220
    <listitem>
 
221
     <para>
 
222
      Fix WAL replay logic for GIN indexes to not fail if the index was
 
223
      subsequently dropped (Tom Lane)
 
224
     </para>
 
225
    </listitem>
 
226
 
 
227
    <listitem>
 
228
     <para>
 
229
      Fix memory leak in PL/pgSQL's <command>RETURN NEXT</> command (Joe
 
230
      Conway)
 
231
     </para>
 
232
    </listitem>
 
233
 
 
234
    <listitem>
 
235
     <para>
 
236
      Fix PL/pgSQL's <command>GET DIAGNOSTICS</> command when the target
 
237
      is the function's first variable (Tom Lane)
 
238
     </para>
 
239
    </listitem>
 
240
 
 
241
    <listitem>
 
242
     <para>
 
243
      Fix potential access off the end of memory in <application>psql</>'s
 
244
      expanded display (<command>\x</>) mode (Peter Eisentraut)
 
245
     </para>
 
246
    </listitem>
 
247
 
 
248
    <listitem>
 
249
     <para>
 
250
      Fix several performance problems in <application>pg_dump</> when
 
251
      the database contains many objects (Jeff Janes, Tom Lane)
 
252
     </para>
 
253
 
 
254
     <para>
 
255
      <application>pg_dump</> could get very slow if the database contained
 
256
      many schemas, or if many objects are in dependency loops, or if there
 
257
      are many owned sequences.
 
258
     </para>
 
259
    </listitem>
 
260
 
 
261
    <listitem>
 
262
     <para>
 
263
      Fix <filename>contrib/dblink</>'s <function>dblink_exec()</> to not leak
 
264
      temporary database connections upon error (Tom Lane)
 
265
     </para>
 
266
    </listitem>
 
267
 
 
268
    <listitem>
 
269
     <para>
 
270
      Fix <filename>contrib/dblink</> to report the correct connection name in
 
271
      error messages (Kyotaro Horiguchi)
 
272
     </para>
 
273
    </listitem>
 
274
 
 
275
    <listitem>
 
276
     <para>
 
277
      Update time zone data files to <application>tzdata</> release 2012c
 
278
      for DST law changes in Antarctica, Armenia, Chile, Cuba, Falkland
 
279
      Islands, Gaza, Haiti, Hebron, Morocco, Syria, and Tokelau Islands;
 
280
      also historical corrections for Canada.
 
281
     </para>
 
282
    </listitem>
 
283
 
 
284
   </itemizedlist>
 
285
 
 
286
  </sect2>
 
287
 </sect1>
 
288
 
4
289
 <sect1 id="release-8-4-11">
5
290
  <title>Release 8.4.11</title>
6
291