Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 92ba324

Browse files
committed
Merge branch 'REL_10_STABLE' into PGPRO10
2 parents 333811e + 4e3f2b3 commit 92ba324

38 files changed

+1359
-305
lines changed

contrib/auto_explain/auto_explain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ _PG_init(void)
7878
"Zero prints all plans. -1 turns this feature off.",
7979
&auto_explain_log_min_duration,
8080
-1,
81-
-1, INT_MAX / 1000,
81+
-1, INT_MAX,
8282
PGC_SUSET,
8383
GUC_UNIT_MS,
8484
NULL,

doc/src/sgml/ddl.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3061,7 +3061,7 @@ CREATE TABLE measurement (
30613061
parent. Note that specifying bounds such that the new partition's
30623062
values will overlap with those in one or more existing partitions will
30633063
cause an error. Inserting data into the parent table that does not map
3064-
to one of the existing partitions will cause an error; appropriate
3064+
to one of the existing partitions will cause an error; an appropriate
30653065
partition must be added manually.
30663066
</para>
30673067

doc/src/sgml/libpq.sgml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8230,13 +8230,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
82308230
<programlisting>
82318231
<![CDATA[
82328232
/*
8233+
* src/test/examples/testlibpq.c
8234+
*
8235+
*
82338236
* testlibpq.c
82348237
*
82358238
* Test the C version of libpq, the PostgreSQL frontend library.
82368239
*/
82378240
#include <stdio.h>
82388241
#include <stdlib.h>
8239-
#include <libpq-fe.h>
8242+
#include "libpq-fe.h"
82408243

82418244
static void
82428245
exit_nicely(PGconn *conn)
@@ -8357,6 +8360,9 @@ main(int argc, char **argv)
83578360
<programlisting>
83588361
<![CDATA[
83598362
/*
8363+
* src/test/examples/testlibpq2.c
8364+
*
8365+
*
83608366
* testlibpq2.c
83618367
* Test of the asynchronous notification interface
83628368
*
@@ -8389,6 +8395,10 @@ main(int argc, char **argv)
83898395
#include <errno.h>
83908396
#include <sys/time.h>
83918397
#include <sys/types.h>
8398+
#ifdef HAVE_SYS_SELECT_H
8399+
#include <sys/select.h>
8400+
#endif
8401+
83928402
#include "libpq-fe.h"
83938403

83948404
static void
@@ -8500,6 +8510,9 @@ main(int argc, char **argv)
85008510
<programlisting>
85018511
<![CDATA[
85028512
/*
8513+
* src/test/examples/testlibpq3.c
8514+
*
8515+
*
85038516
* testlibpq3.c
85048517
* Test out-of-line parameters and binary I/O.
85058518
*

doc/src/sgml/ref/create_table.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ CREATE TABLE distributors (
14801480
<programlisting>
14811481
CREATE TABLE distributors (
14821482
did integer,
1483-
name varchar(40)
1483+
name varchar(40),
14841484
CONSTRAINT con1 CHECK (did &gt; 100 AND name &lt;&gt; '')
14851485
);
14861486
</programlisting>

doc/src/sgml/release-10.sgml

Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,233 @@
11
<!-- doc/src/sgml/release-10.sgml -->
22
<!-- See header comment in release.sgml about typical markup -->
33

4+
<sect1 id="release-10-3">
5+
<title>Release 10.3</title>
6+
7+
<formalpara>
8+
<title>Release date:</title>
9+
<para>2018-03-01</para>
10+
</formalpara>
11+
12+
<para>
13+
This release contains a variety of fixes from 10.2.
14+
For information about new features in major release 10, see
15+
<xref linkend="release-10">.
16+
</para>
17+
18+
<sect2>
19+
<title>Migration to Version 10.3</title>
20+
21+
<para>
22+
A dump/restore is not required for those running 10.X.
23+
</para>
24+
25+
<para>
26+
However, if you are upgrading from a version earlier than 10.2,
27+
see <xref linkend="release-10-2">.
28+
</para>
29+
</sect2>
30+
31+
<sect2>
32+
<title>Changes</title>
33+
34+
<itemizedlist>
35+
36+
<listitem>
37+
<!--
38+
Author: Peter Eisentraut <peter_e@gmx.net>
39+
Branch: master [bc1adc651] 2018-02-23 22:13:21 -0500
40+
Branch: REL_10_STABLE [b9bf23abb] 2018-02-23 22:09:26 -0500
41+
-->
42+
<para>
43+
Prevent logical replication from trying to ship changes for
44+
unpublishable relations (Peter Eisentraut)
45+
</para>
46+
47+
<para>
48+
A publication marked <literal>FOR ALL TABLES</literal> would
49+
incorrectly ship changes in materialized views
50+
and <structname>information_schema</structname> tables, which are
51+
supposed to be omitted from the change stream.
52+
</para>
53+
<para>
54+
</para>
55+
</listitem>
56+
57+
<listitem>
58+
<!--
59+
Author: Tom Lane <tgl@sss.pgh.pa.us>
60+
Branch: master [159efe4af] 2018-02-19 16:00:31 -0500
61+
Branch: REL_10_STABLE [517e0fe86] 2018-02-19 16:00:18 -0500
62+
Branch: REL9_6_STABLE [795f2112e] 2018-02-19 16:00:18 -0500
63+
Branch: REL9_5_STABLE [340d63bfb] 2018-02-19 16:00:18 -0500
64+
Branch: REL9_4_STABLE [e11b6488e] 2018-02-19 16:00:18 -0500
65+
Branch: REL9_3_STABLE [ea6d67cf8] 2018-02-19 16:00:18 -0500
66+
-->
67+
<para>
68+
Fix misbehavior of concurrent-update rechecks with CTE references
69+
appearing in subplans (Tom Lane)
70+
</para>
71+
72+
<para>
73+
If a CTE (<literal>WITH</literal> clause reference) is used in an
74+
InitPlan or SubPlan, and the query requires a recheck due to trying
75+
to update or lock a concurrently-updated row, incorrect results could
76+
be obtained.
77+
</para>
78+
</listitem>
79+
80+
<listitem>
81+
<!--
82+
Author: Tom Lane <tgl@sss.pgh.pa.us>
83+
Branch: master [9afd513df] 2018-02-23 13:47:33 -0500
84+
Branch: REL_10_STABLE [c458970ad] 2018-02-23 13:47:33 -0500
85+
Branch: REL9_6_STABLE [e7c02a54a] 2018-02-23 13:47:33 -0500
86+
Branch: REL9_5_STABLE [7dc5f316f] 2018-02-23 13:47:33 -0500
87+
Branch: REL9_4_STABLE [f6dd08489] 2018-02-23 13:47:33 -0500
88+
Branch: REL9_3_STABLE [71a0d0c5a] 2018-02-23 13:47:33 -0500
89+
-->
90+
<para>
91+
Fix planner failures with overlapping mergejoin clauses in an outer
92+
join (Tom Lane)
93+
</para>
94+
95+
<para>
96+
These mistakes led to <quote>left and right pathkeys do not match in
97+
mergejoin</quote> or <quote>outer pathkeys do not match
98+
mergeclauses</quote> planner errors in corner cases.
99+
</para>
100+
</listitem>
101+
102+
<listitem>
103+
<!--
104+
Author: Tom Lane <tgl@sss.pgh.pa.us>
105+
Branch: master [38b41f182] 2018-02-21 18:40:24 -0500
106+
Branch: REL_10_STABLE [5ab5d21aa] 2018-02-21 18:40:24 -0500
107+
Branch: REL9_6_STABLE [66e203c85] 2018-02-21 18:40:24 -0500
108+
Branch: REL9_5_STABLE [9936f1499] 2018-02-21 18:40:24 -0500
109+
Branch: REL9_4_STABLE [2d12c5593] 2018-02-21 18:40:24 -0500
110+
Branch: REL9_3_STABLE [d3b0a23a2] 2018-02-21 18:40:24 -0500
111+
-->
112+
<para>
113+
Repair <application>pg_upgrade</application>'s failure to
114+
preserve <structfield>relfrozenxid</structfield> for materialized
115+
views (Tom Lane, Andres Freund)
116+
</para>
117+
118+
<para>
119+
This oversight could lead to data corruption in materialized views
120+
after an upgrade, manifesting as <quote>could not access status of
121+
transaction</quote> or <quote>found xmin from before
122+
relfrozenxid</quote> errors. The problem would be more likely to
123+
occur in seldom-refreshed materialized views, or ones that were
124+
maintained only with <command>REFRESH MATERIALIZED VIEW
125+
CONCURRENTLY</command>.
126+
</para>
127+
128+
<para>
129+
If such corruption is observed, it can be repaired by refreshing the
130+
materialized view (without <literal>CONCURRENTLY</literal>).
131+
</para>
132+
</listitem>
133+
134+
<listitem>
135+
<!--
136+
Author: Tom Lane <tgl@sss.pgh.pa.us>
137+
Branch: master [3486bcf9e] 2018-02-20 11:23:42 -0500
138+
Branch: REL_10_STABLE [6753f6c41] 2018-02-20 11:23:34 -0500
139+
-->
140+
<para>
141+
Fix incorrect <application>pg_dump</application> output for some
142+
non-default sequence limit values (Alexey Bashtanov)
143+
</para>
144+
</listitem>
145+
146+
<listitem>
147+
<!--
148+
Author: Tom Lane <tgl@sss.pgh.pa.us>
149+
Branch: master [5c9f2564f] 2018-02-11 13:24:15 -0500
150+
Branch: REL_10_STABLE [1298fccef] 2018-02-11 13:24:15 -0500
151+
-->
152+
<para>
153+
Fix <application>pg_dump</application>'s mishandling
154+
of <literal>STATISTICS</literal> objects (Tom Lane)
155+
</para>
156+
157+
<para>
158+
An extended statistics object's schema was mislabeled in the dump's
159+
table of contents, possibly leading to the wrong results in a
160+
schema-selective restore. Its ownership was not correctly restored,
161+
either. Also, change the logic so that statistics objects are
162+
dumped/restored, or not, as independent objects rather than tying
163+
them to the dump/restore decision for the table they are on. The
164+
original definition could not scale to the planned future extension to
165+
cross-table statistics.
166+
</para>
167+
</listitem>
168+
169+
<listitem>
170+
<!--
171+
Author: Tom Lane <tgl@sss.pgh.pa.us>
172+
Branch: master [e748e902d] 2018-02-14 14:47:18 -0500
173+
Branch: REL_10_STABLE [4081e1136] 2018-02-14 14:47:18 -0500
174+
Branch: REL9_6_STABLE [0a2381d13] 2018-02-14 14:47:18 -0500
175+
Branch: REL9_5_STABLE [db1c597f3] 2018-02-14 14:47:18 -0500
176+
Branch: REL9_4_STABLE [bd8718637] 2018-02-14 14:47:18 -0500
177+
Branch: REL9_3_STABLE [457e9e88e] 2018-02-14 14:47:18 -0500
178+
-->
179+
<para>
180+
Fix incorrect reporting of PL/Python function names in
181+
error <literal>CONTEXT</literal> stacks (Tom Lane)
182+
</para>
183+
184+
<para>
185+
An error occurring within a nested PL/Python function call (that is,
186+
one reached via a SPI query from another PL/Python function) would
187+
result in a stack trace showing the inner function's name twice,
188+
rather than the expected results. Also, an error in a nested
189+
PL/Python <literal>DO</literal> block could result in a null pointer
190+
dereference crash on some platforms.
191+
</para>
192+
</listitem>
193+
194+
<listitem>
195+
<!--
196+
Author: Tom Lane <tgl@sss.pgh.pa.us>
197+
Branch: master [8af87f411] 2018-02-23 14:39:17 -0500
198+
Branch: REL_10_STABLE [0222e897d] 2018-02-23 14:39:18 -0500
199+
Branch: REL9_6_STABLE [be87cd2a0] 2018-02-23 14:39:20 -0500
200+
Branch: REL9_5_STABLE [753875ed4] 2018-02-23 14:39:21 -0500
201+
Branch: REL9_4_STABLE [3ba503bde] 2018-02-23 14:39:22 -0500
202+
Branch: REL9_3_STABLE [a7a6051cf] 2018-02-23 14:39:23 -0500
203+
-->
204+
<para>
205+
Allow <filename>contrib/auto_explain</filename>'s
206+
<varname>log_min_duration</varname> setting to range up
207+
to <literal>INT_MAX</literal>, or about 24 days instead of 35 minutes
208+
(Tom Lane)
209+
</para>
210+
</listitem>
211+
212+
<listitem>
213+
<!--
214+
Author: Robert Haas <rhaas@postgresql.org>
215+
Branch: master [935dee9ad] 2018-02-09 15:54:45 -0500
216+
Author: Andres Freund <andres@anarazel.de>
217+
Branch: REL_10_STABLE [2ff2baa22] 2018-02-22 12:54:45 -0800
218+
Branch: REL9_6_STABLE [83fce670e] 2018-02-22 12:58:43 -0800
219+
-->
220+
<para>
221+
Mark assorted GUC variables as <literal>PGDLLIMPORT</literal>, to
222+
ease porting extension modules to Windows (Metin Doslu)
223+
</para>
224+
</listitem>
225+
226+
</itemizedlist>
227+
228+
</sect2>
229+
</sect1>
230+
4231
<sect1 id="release-10-2">
5232
<title>Release 10.2</title>
6233

0 commit comments

Comments
 (0)