Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rel 10 stable #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
ee5572e
Expand coverage of parallel gather merge a bit.
anarazel Aug 14, 2017
2999063
Add missing call to ExecReScanGatherMerge.
robertmhaas Aug 15, 2017
17a2a27
Avoid unnecessary single-child Append nodes.
robertmhaas Aug 15, 2017
d7ab908
Distinguish wait-for-connection from wait-for-write-ready on Windows.
tglsfdc Aug 15, 2017
870da1e
Fix error handling path in autovacuum launcher
alvherre Aug 15, 2017
4e7cd03
doc: Improve PDF bookmarks
petere Aug 15, 2017
292d9b6
Simplify some code in logical replication launcher
petere Aug 15, 2017
0cafc26
doc: Add missing logical replication protocol message
petere Aug 15, 2017
edbad25
Fix logical replication protocol comparison logic
petere Aug 15, 2017
f2f9fcb
Simplify autovacuum work-item implementation
alvherre Aug 15, 2017
7502f39
psql: Add tab completion for \pset pager
petere Aug 15, 2017
3ea5821
Include foreign tables in information_schema.table_privileges
petere Aug 15, 2017
226be40
Initialize replication_slot_catalog_xmin in procarray
petere Aug 16, 2017
a6b174f
Allow continuation lines in ecpg cppline parsing.
Aug 15, 2017
2327690
doc: Add logical replication to comparison matrix
petere Aug 16, 2017
0c16efc
doc: Update URL of DocBook XSL stylesheets
petere Aug 16, 2017
e4892c6
pg_dump: Support using synchronized snapshots on standbys
petere Aug 16, 2017
28c5655
doc: Fix table column count
petere Aug 17, 2017
b469387
Remove bogus line from comment.
robertmhaas Aug 17, 2017
ca49d69
doc: Update RFC URLs
petere Aug 17, 2017
1d7a479
Further tweaks to compiler flags for PL/Perl on Windows.
tglsfdc Aug 17, 2017
de1ca69
Fix ExecReScanGatherMerge.
tglsfdc Aug 17, 2017
7c0ca29
Don't lock tables in RelationGetPartitionDispatchInfo.
robertmhaas Aug 17, 2017
9b64474
Temporarily revert test case from a2b70c89ca1a5fcf6181d3c777d82e7b83d…
tglsfdc Aug 17, 2017
d4b42e5
Fix interaction of triggers, partitioning, and EXPLAIN ANALYZE.
robertmhaas Aug 18, 2017
7c84acc
Fix creation of ICU comments for keyword variants
petere Aug 19, 2017
1c3869c
Fix possible core dump in parallel restore when using a TOC list.
tglsfdc Aug 19, 2017
b8a2549
Inject $(ICU_LIBS) regardless of platform.
nmisch Aug 21, 2017
a79fb8e
Expand set of predefined ICU locales
petere Aug 21, 2017
958ffb8
Don't install ICU collation keyword variants
petere Aug 21, 2017
d34a74d
Backpatch introduction of TupleDescAttr(tupdesc, i).
anarazel Aug 22, 2017
adce891
doc: Mention identity column feature in section on serial
petere Aug 22, 2017
2ac307b
pg_upgrade: Message translatability and style fixes
petere Aug 23, 2017
5e87f7b
Fix translation marker
petere Aug 23, 2017
8bf9469
Tweak some SCRAM error messages and code comments
petere Aug 23, 2017
da19c32
Fix outdated comment
petere Aug 23, 2017
d51b087
Update code comment for temporary replication slots
petere Aug 23, 2017
cf98e38
Increase SCRAM salt length
petere Aug 24, 2017
8a7beca
pg_upgrade: Remove dead code
petere Aug 24, 2017
51d0fa8
psql: Fix \gx when FETCH_COUNT is used
sfrost Aug 24, 2017
1563b8f
Fix harmless thinko in dsa.c.
anarazel Aug 24, 2017
9c57848
Message translatability fixes
petere Aug 25, 2017
33043c6
pg_upgrade: Remove more dead code
petere Aug 25, 2017
3460728
Improve low-level backup documentation.
robertmhaas Aug 25, 2017
145ca36
pg_test_timing: Some NLS fixes
petere Aug 26, 2017
5a62735
Doc: update v10 release notes through today.
tglsfdc Aug 26, 2017
947a0cc
Release notes for 9.6.5, 9.5.9, 9.4.14, 9.3.19, 9.2.23.
tglsfdc Aug 27, 2017
5ecd7cc
Clarify documentation
petere Aug 28, 2017
df44405
Fix over-aggressive sanity check in misc_sanity.sql.
tglsfdc Aug 28, 2017
89f6d58
Translation updates
petere Aug 28, 2017
7dadf7a
Doc: adjust release-note credit for parallel pg_restore fix.
tglsfdc Aug 28, 2017
2ff326d
Stamp 10beta4.
tglsfdc Aug 28, 2017
09ec0eb
Improve docs about numeric formatting patterns (to_char/to_number).
tglsfdc Aug 29, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for PostgreSQL 10beta3.
# Generated by GNU Autoconf 2.69 for PostgreSQL 10beta4.
#
# Report bugs to <[email protected]>.
#
Expand Down Expand Up @@ -582,8 +582,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='PostgreSQL'
PACKAGE_TARNAME='postgresql'
PACKAGE_VERSION='10beta3'
PACKAGE_STRING='PostgreSQL 10beta3'
PACKAGE_VERSION='10beta4'
PACKAGE_STRING='PostgreSQL 10beta4'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_URL=''

Expand Down Expand Up @@ -1409,7 +1409,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures PostgreSQL 10beta3 to adapt to many kinds of systems.
\`configure' configures PostgreSQL 10beta4 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1474,7 +1474,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of PostgreSQL 10beta3:";;
short | recursive ) echo "Configuration of PostgreSQL 10beta4:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1633,7 +1633,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
PostgreSQL configure 10beta3
PostgreSQL configure 10beta4
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2344,7 +2344,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PostgreSQL $as_me 10beta3, which was
It was created by PostgreSQL $as_me 10beta4, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -17334,7 +17334,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by PostgreSQL $as_me 10beta3, which was
This file was extended by PostgreSQL $as_me 10beta4, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -17404,7 +17404,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
PostgreSQL config.status 10beta3
PostgreSQL config.status 10beta4
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dnl Read the Autoconf manual for details.
dnl
m4_pattern_forbid(^PGAC_)dnl to catch undefined macros

AC_INIT([PostgreSQL], [10beta3], [[email protected]])
AC_INIT([PostgreSQL], [10beta4], [[email protected]])

m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
Untested combinations of 'autoconf' and PostgreSQL versions are not
Expand Down
1 change: 0 additions & 1 deletion contrib/postgres_fdw/postgres_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -4497,7 +4497,6 @@ postgresGetForeignJoinPaths(PlannerInfo *root,
* the path list of the joinrel, if one exists. We must be careful to
* call it before adding any ForeignPath, since the ForeignPath might
* dominate the only suitable local path available. We also do it before
* reconstruct the row for EvalPlanQual(). Find an alternative local path
* calling foreign_join_ok(), since that function updates fpinfo and marks
* it as pushable if the join is found to be pushable.
*/
Expand Down
2 changes: 1 addition & 1 deletion doc/bug.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ System Configuration:

Operating System (example: Linux 2.4.18) :

PostgreSQL version (example: PostgreSQL 10beta3): PostgreSQL 10beta3
PostgreSQL version (example: PostgreSQL 10beta4): PostgreSQL 10beta4

Compiler used (example: gcc 3.3.5) :

Expand Down
37 changes: 22 additions & 15 deletions doc/src/sgml/backup.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,11 @@ SELECT pg_start_backup('label', false, false);
<programlisting>
SELECT * FROM pg_stop_backup(false, true);
</programlisting>
This terminates the backup mode and performs an automatic switch to
the next WAL segment. The reason for the switch is to arrange for
This terminates backup mode. On a primary, it also performs an automatic
switch to the next WAL segment. On a standby, it is not possible to
automatically switch WAL segments, so you may wish to run
<function>pg_switch_wal</function> on the primary to perform a manual
switch. The reason for the switch is to arrange for
the last WAL segment file written during the backup interval to be
ready to archive.
</para>
Expand All @@ -908,9 +911,12 @@ SELECT * FROM pg_stop_backup(false, true);
Once the WAL segment files active during the backup are archived, you are
done. The file identified by <function>pg_stop_backup</>'s first return
value is the last segment that is required to form a complete set of
backup files. If <varname>archive_mode</> is enabled,
backup files. On a primary, if <varname>archive_mode</> is enabled and the
<literal>wait_for_archive</> parameter is <literal>true</>,
<function>pg_stop_backup</> does not return until the last segment has
been archived.
On a standby, <varname>archive_mode</> must be <literal>always</> in order
for <function>pg_stop_backup</> to wait.
Archiving of these files happens automatically since you have
already configured <varname>archive_command</>. In most cases this
happens quickly, but you are advised to monitor your archive
Expand All @@ -926,8 +932,9 @@ SELECT * FROM pg_stop_backup(false, true);
</para>
<para>
If the backup process monitors and ensures that all WAL segment files
required for the backup are successfully archived then the second
parameter (which defaults to true) can be set to false to have
required for the backup are successfully archived then the
<literal>wait_for_archive</> parameter (which defaults to true) can be set
to false to have
<function>pg_stop_backup</> return as soon as the stop backup record is
written to the WAL. By default, <function>pg_stop_backup</> will wait
until all WAL has been archived, which can take some time. This option
Expand All @@ -943,9 +950,9 @@ SELECT * FROM pg_stop_backup(false, true);
<title>Making an exclusive low level backup</title>
<para>
The process for an exclusive backup is mostly the same as for a
non-exclusive one, but it differs in a few key steps. It does not allow
more than one concurrent backup to run, and there can be some issues on
the server if it crashes during the backup. Prior to PostgreSQL 9.6, this
non-exclusive one, but it differs in a few key steps. This type of backup
can only be taken on a primary and does not allow concurrent backups.
Prior to <productname>PostgreSQL</> 9.6, this
was the only low-level method available, but it is now recommended that
all users upgrade their scripts to use non-exclusive backups if possible.
</para>
Expand Down Expand Up @@ -1003,6 +1010,11 @@ SELECT pg_start_backup('label', true);
<xref linkend="backup-lowlevel-base-backup-data"> for things to
consider during this backup.
</para>
<para>
Note that if the server crashes during the backup it may not be
possible to restart until the <literal>backup_label</> file has been
manually deleted from the <envar>PGDATA</envar> directory.
</para>
</listitem>
<listitem>
<para>
Expand All @@ -1012,15 +1024,10 @@ SELECT pg_start_backup('label', true);
<programlisting>
SELECT pg_stop_backup();
</programlisting>
This function, when called on a primary, terminates the backup mode and
This function terminates backup mode and
performs an automatic switch to the next WAL segment. The reason for the
switch is to arrange for the last WAL segment written during the backup
interval to be ready to archive. When called on a standby, this function
only terminates backup mode. A subsequent WAL segment switch will be
needed in order to ensure that all WAL files needed to restore the backup
can be archived; if the primary does not have sufficient write activity
to trigger one, <function>pg_switch_wal</function> should be executed on
the primary.
interval to be ready to archive.
</para>
</listitem>
<listitem>
Expand Down
109 changes: 89 additions & 20 deletions doc/src/sgml/charset.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,8 @@ SELECT a COLLATE "C" &lt; b COLLATE "POSIX" FROM test1;
string will be accepted as a locale name.)
See <ulink url="http://userguide.icu-project.org/locale"></ulink> for
information on ICU locale naming. <command>initdb</command> uses the ICU
APIs to extract a set of locales with distinct collation rules to populate
the initial set of collations. Here are some example collations that
might be created:
APIs to extract a set of distinct locales to populate the initial set of
collations. Here are some example collations that might be created:

<variablelist>
<varlistentry>
Expand All @@ -665,31 +664,18 @@ SELECT a COLLATE "C" &lt; b COLLATE "POSIX" FROM test1;
</listitem>
</varlistentry>

<varlistentry>
<term><literal>de-u-co-phonebk-x-icu</literal></term>
<listitem>
<para>German collation, phone book variant</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>de-AT-x-icu</literal></term>
<listitem>
<para>German collation for Austria, default variant</para>
<para>
(As of this writing, there is no,
say, <literal>de-DE-x-icu</literal> or <literal>de-CH-x-icu</literal>,
because those are equivalent to <literal>de-x-icu</literal>.)
(There are also, say, <literal>de-DE-x-icu</literal>
or <literal>de-CH-x-icu</literal>, but as of this writing, they are
equivalent to <literal>de-x-icu</literal>.)
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>de-AT-u-co-phonebk-x-icu</literal></term>
<listitem>
<para>German collation for Austria, phone book variant</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>und-x-icu</literal> (for <quote>undefined</quote>)</term>
<listitem>
Expand All @@ -709,6 +695,90 @@ SELECT a COLLATE "C" &lt; b COLLATE "POSIX" FROM test1;
will draw an error along the lines of <quote>collation "de-x-icu" for
encoding "WIN874" does not exist</>.
</para>

<para>
ICU allows collations to be customized beyond the basic language+country
set that is preloaded by <command>initdb</command>. Users are encouraged
to define their own collation objects that make use of these facilities to
suit the sorting behavior to their requirements. Here are some examples:

<variablelist>
<varlistentry>
<term><literal>CREATE COLLATION "de-u-co-phonebk-x-icu" (provider = icu, locale = 'de-u-co-phonebk')</literal></term>
<listitem>
<para>German collation with phone book collation type</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>CREATE COLLATION "und-u-co-emoji-x-icu" (provider = icu, locale = 'und-u-co-emoji')</literal></term>
<listitem>
<para>
Root collation with Emoji collation type, per Unicode Technical Standard #51
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>CREATE COLLATION digitslast (provider = icu, locale = 'en-u-kr-latn-digit')</literal></term>
<listitem>
<para>
Sort digits after Latin letters. (The default is digits before letters.)
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>CREATE COLLATION upperfirst (provider = icu, locale = 'en-u-kf-upper')</literal></term>
<listitem>
<para>
Sort upper-case letters before lower-case letters. (The default is
lower-case letters first.)
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>CREATE COLLATION special (provider = icu, locale = 'en-u-kf-upper-kr-latn-digit')</literal></term>
<listitem>
<para>
Combines both of the above options.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>CREATE COLLATION numeric (provider = icu, locale = 'en-u-kn-true')</literal></term>
<listitem>
<para>
Numeric ordering, sorts sequences of digits by their numeric value,
for example: <literal>A-21</literal> &lt; <literal>A-123</literal>
(also known as natural sort).
</para>
</listitem>
</varlistentry>
</variablelist>

See <ulink url="http://unicode.org/reports/tr35/tr35-collation.html">Unicode
Technical Standard #35</ulink>
and <ulink url="https://tools.ietf.org/html/bcp47">BCP 47</ulink> for
details. The list of possible collation types (<literal>co</literal>
subtag) can be found in
the <ulink url="http://www.unicode.org/repos/cldr/trunk/common/bcp47/collation.xml">CLDR
repository</ulink>.
The <ulink url="https://ssl.icu-project.org/icu-bin/locexp">ICU Locale
Explorer</ulink> can be used to check the details of a particular locale
definition.
</para>

<para>
Note that while this system allows creating collations that <quote>ignore
case</quote> or <quote>ignore accents</quote> or similar (using
the <literal>ks</literal> key), PostgreSQL does not at the moment allow
such collations to act in a truly case- or accent-insensitive manner. Any
strings that compare equal according to the collation but are not
byte-wise equal will be sorted according to their byte values.
</para>
</sect4>
</sect3>

Expand All @@ -724,7 +794,6 @@ SELECT a COLLATE "C" &lt; b COLLATE "POSIX" FROM test1;
<programlisting>
CREATE COLLATION german FROM "de_DE";
CREATE COLLATION french FROM "fr-x-icu";
CREATE COLLATION "de-DE-x-icu" FROM "de-x-icu";
</programlisting>
</para>

Expand Down
2 changes: 1 addition & 1 deletion doc/src/sgml/client-auth.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ omicron bryanh guest1
<para>
<literal>scram-sha-256</> performs SCRAM-SHA-256 authentication, as
described in
<ulink url="https://tools.ietf.org/html/rfc5802">RFC5802</ulink>. It
<ulink url="https://tools.ietf.org/html/rfc7677">RFC 7677</ulink>. It
is a challenge-response scheme, that prevents password sniffing on
untrusted connections. It is more secure than the <literal>md5</>
method, but might not be supported by older clients.
Expand Down
8 changes: 8 additions & 0 deletions doc/src/sgml/datatype.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,14 @@ FROM generate_series(-3.5, 3.5, 1) as x;
<secondary>and serial type</secondary>
</indexterm>

<note>
<para>
This section describes a PostgreSQL-specific way to create an
autoincrementing column. Another way is to use the SQL-standard
identity column feature, described at <xref linkend="sql-createtable">.
</para>
</note>

<para>
The data types <type>smallserial</type>, <type>serial</type> and
<type>bigserial</type> are not true types, but merely
Expand Down
2 changes: 1 addition & 1 deletion doc/src/sgml/docguide.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
</varlistentry>

<varlistentry>
<term><ulink url="http://wiki.docbook.org/DocBookXslStylesheets">DocBook XSL Stylesheets</ulink></term>
<term><ulink url="https://github.com/docbook/wiki/wiki/DocBookXslStylesheets">DocBook XSL Stylesheets</ulink></term>
<listitem>
<para>
These contain the processing instructions for converting the
Expand Down
Loading