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

Commit 0b1ad5e

Browse files
committed
Merge branch 'PGPROEE9_6' into PGPROEE9_6_MULTIMASTER
2 parents 04a1922 + bf3d1c4 commit 0b1ad5e

File tree

564 files changed

+65150
-35915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

564 files changed

+65150
-35915
lines changed

.ci/run

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
#
3+
# Universal CI hook
4+
#
5+
6+
set -e
7+
8+
./.ci/build_and_test_world

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ lib*.pc
4646
/contrib/pg_query_state/isolation_output/
4747
/contrib/pg_hint_plan/expected/ut-fdw.out
4848
/contrib/pg_hint_plan/sql/ut-fdw.sql
49-

COPYRIGHT

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
PostgreSQL Database Management System
22
(formerly known as Postgres, then as Postgres95)
33

4+
Portions Copyright (c) 2015-2017, Postgres Professional company
5+
46
Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
57

68
Portions Copyright (c) 1994, The Regents of the University of California
79

810
Permission to use, copy, modify, and distribute this software and its
9-
documentation for any purpose, without fee, and without a written agreement
11+
documentation for the purposes of testing and studying its features and performance,
12+
as well as educational purposes, without fee, and without a written agreement
1013
is hereby granted, provided that the above copyright notice and this
11-
paragraph and the following two paragraphs appear in all copies.
14+
paragraph and the following two paragraphs appear in all copies. Using this
15+
software and its documentation for other purposes, including its packaging with
16+
other software, copying, modification and redistribution, requires
17+
a special license from Postgres Professional.
1218

1319
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
1420
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING

HISTORY

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
Release notes for all versions of PostgreSQL can be found on-line at
2-
http://www.postgresql.org/docs/current/static/release.html
3-
4-
Distribution file sets include release notes for their version and preceding
5-
versions. Visit the file doc/src/sgml/html/release.html in an HTML browser.
1+
Release notes for all versions of Postgres Pro Standard can be found on-line at
2+
https://postgrespro.com/docs/postgrespro/9.6/release.html

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ all check install installdirs installcheck installcheck-parallel uninstall clean
2929
\
3030
if [ x"$${GMAKE+set}" = xset ]; then \
3131
echo "Using GNU make found at $${GMAKE}"; \
32+
unset MAKEFLAGS; unset MAKELEVEL; \
3233
$${GMAKE} $@ ; \
3334
else \
3435
echo "You must use GNU make to build PostgreSQL." ; \

README

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
1-
PostgreSQL Database Management System
2-
=====================================
1+
Postgres Pro Standard Database Management System
2+
================================================
33

4-
This directory contains the source code distribution of the PostgreSQL
5-
database management system.
4+
This directory contains the source code distribution of the
5+
Postgres Pro Standard database management system.
66

7-
PostgreSQL is an advanced object-relational database management system
8-
that supports an extended subset of the SQL standard, including
9-
transactions, foreign keys, subqueries, triggers, user-defined types
10-
and functions. This distribution also contains C language bindings.
7+
Postgres Pro Standard is an advanced object-relational database
8+
management system that supports an extended subset of the SQL standard,
9+
including transactions, foreign keys, subqueries, triggers,
10+
user-defined types and functions. This distribution also
11+
contains C language bindings.
1112

12-
PostgreSQL has many language interfaces, many of which are listed here:
13-
14-
http://www.postgresql.org/download
15-
16-
See the file INSTALL for instructions on how to build and install
17-
PostgreSQL. That file also lists supported operating systems and
18-
hardware platforms and contains information regarding any other
19-
software packages that are required to build or run the PostgreSQL
20-
system. Copyright and license information can be found in the
21-
file COPYRIGHT. A comprehensive documentation set is included in this
22-
distribution; it can be read as described in the installation
23-
instructions.
13+
Copyright and license information can be found in the
14+
file COPYRIGHT. A comprehensive documentation set is included in this
15+
distribution.
2416

2517
The latest version of this software may be obtained at
26-
http://www.postgresql.org/download/. For more information look at our
27-
web site located at http://www.postgresql.org/.
18+
https://postgrespro.com/products/download. For more information look at our
19+
web site located at http://postgrespro.com/.

README.git

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git and so will not be present if you are using a git checkout.
66

77
If you are using a git checkout, you can view the most recent installation
88
instructions at:
9-
http://www.postgresql.org/docs/devel/static/installation.html
9+
https://www.postgresql.org/docs/devel/static/installation.html
1010

1111
Users compiling from git will also need compatible versions of Bison, Flex,
1212
and Perl, as discussed in the install documentation. These programs are not

config/perl.m4

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,33 @@ AC_DEFUN([PGAC_CHECK_PERL_CONFIGS],
4949
[m4_foreach([pgac_item], [$1], [PGAC_CHECK_PERL_CONFIG(pgac_item)])])
5050

5151

52+
# PGAC_CHECK_PERL_EMBED_CCFLAGS
53+
# -----------------------------
54+
# We selectively extract stuff from $Config{ccflags}. We don't really need
55+
# anything except -D switches, and other sorts of compiler switches can
56+
# actively break things if Perl was compiled with a different compiler.
57+
# Moreover, although Perl likes to put stuff like -D_LARGEFILE_SOURCE and
58+
# -D_FILE_OFFSET_BITS=64 here, it would be fatal to try to compile PL/Perl
59+
# to a different libc ABI than core Postgres uses. The available information
60+
# says that all the symbols that affect Perl's own ABI begin with letters,
61+
# so it should be sufficient to adopt -D switches for symbols not beginning
62+
# with underscore. An exception is that we need to let through
63+
# -D_USE_32BIT_TIME_T if it's present. (We probably could restrict that to
64+
# only get through on Windows, but for the moment we let it through always.)
65+
# For debugging purposes, let's have the configure output report the raw
66+
# ccflags value as well as the set of flags we chose to adopt.
67+
AC_DEFUN([PGAC_CHECK_PERL_EMBED_CCFLAGS],
68+
[AC_REQUIRE([PGAC_PATH_PERL])
69+
AC_MSG_CHECKING([for CFLAGS recommended by Perl])
70+
perl_ccflags=`$PERL -MConfig -e ['print $Config{ccflags}']`
71+
AC_MSG_RESULT([$perl_ccflags])
72+
AC_MSG_CHECKING([for CFLAGS to compile embedded Perl])
73+
perl_embed_ccflags=`$PERL -MConfig -e ['foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}']`
74+
AC_SUBST(perl_embed_ccflags)dnl
75+
AC_MSG_RESULT([$perl_embed_ccflags])
76+
])# PGAC_CHECK_PERL_EMBED_CCFLAGS
77+
78+
5279
# PGAC_CHECK_PERL_EMBED_LDFLAGS
5380
# -----------------------------
5481
# We are after Embed's ldopts, but without the subset mentioned in

configure

Lines changed: 73 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for PostgreSQL 9.6.3.
3+
# Generated by GNU Autoconf 2.69 for PostgreSQL 9.6.5.
44
#
55
# Report bugs to <bugs@postgrespro.ru>.
66
#
@@ -583,8 +583,8 @@ MAKEFLAGS=
583583
# Identity of this package.
584584
PACKAGE_NAME='PostgreSQL'
585585
PACKAGE_TARNAME='postgrespro'
586-
PACKAGE_VERSION='9.6.3'
587-
PACKAGE_STRING='PostgreSQL 9.6.3'
586+
PACKAGE_VERSION='9.6.5'
587+
PACKAGE_STRING='PostgreSQL 9.6.5'
588588
PACKAGE_BUGREPORT='bugs@postgrespro.ru'
589589
PACKAGE_URL=''
590590

@@ -672,6 +672,7 @@ python_version
672672
python_majorversion
673673
PYTHON
674674
perl_embed_ldflags
675+
perl_embed_ccflags
675676
perl_useshrplib
676677
perl_privlibexp
677678
perl_archlibexp
@@ -722,6 +723,7 @@ with_perl
722723
with_tcl
723724
enable_thread_safety
724725
INCLUDES
726+
with_rsocket
725727
autodepend
726728
TAS
727729
GCC
@@ -780,6 +782,7 @@ infodir
780782
docdir
781783
oldincludedir
782784
includedir
785+
runstatedir
783786
localstatedir
784787
sharedstatedir
785788
sysconfdir
@@ -825,6 +828,7 @@ with_wal_segsize
825828
with_CC
826829
enable_depend
827830
enable_cassert
831+
with_rsocket
828832
enable_thread_safety
829833
with_tcl
830834
with_tclconfig
@@ -904,6 +908,7 @@ datadir='${datarootdir}'
904908
sysconfdir='${prefix}/etc'
905909
sharedstatedir='${prefix}/com'
906910
localstatedir='${prefix}/var'
911+
runstatedir='${localstatedir}/run'
907912
includedir='${prefix}/include'
908913
oldincludedir='/usr/include'
909914
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1156,6 +1161,15 @@ do
11561161
| -silent | --silent | --silen | --sile | --sil)
11571162
silent=yes ;;
11581163

1164+
-runstatedir | --runstatedir | --runstatedi | --runstated \
1165+
| --runstate | --runstat | --runsta | --runst | --runs \
1166+
| --run | --ru | --r)
1167+
ac_prev=runstatedir ;;
1168+
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1169+
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1170+
| --run=* | --ru=* | --r=*)
1171+
runstatedir=$ac_optarg ;;
1172+
11591173
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11601174
ac_prev=sbindir ;;
11611175
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1293,7 +1307,7 @@ fi
12931307
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12941308
datadir sysconfdir sharedstatedir localstatedir includedir \
12951309
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296-
libdir localedir mandir
1310+
libdir localedir mandir runstatedir
12971311
do
12981312
eval ac_val=\$$ac_var
12991313
# Remove trailing slashes.
@@ -1406,7 +1420,7 @@ if test "$ac_init_help" = "long"; then
14061420
# Omit some internal or obsolete options to make the list less imposing.
14071421
# This message is too long to be a string in the A/UX 3.1 sh.
14081422
cat <<_ACEOF
1409-
\`configure' configures PostgreSQL 9.6.3 to adapt to many kinds of systems.
1423+
\`configure' configures PostgreSQL 9.6.5 to adapt to many kinds of systems.
14101424

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

@@ -1446,6 +1460,7 @@ Fine tuning of the installation directories:
14461460
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14471461
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14481462
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463+
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14491464
--libdir=DIR object code libraries [EPREFIX/lib]
14501465
--includedir=DIR C header files [PREFIX/include]
14511466
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1471,7 +1486,7 @@ fi
14711486

14721487
if test -n "$ac_init_help"; then
14731488
case $ac_init_help in
1474-
short | recursive ) echo "Configuration of PostgreSQL 9.6.3:";;
1489+
short | recursive ) echo "Configuration of PostgreSQL 9.6.5:";;
14751490
esac
14761491
cat <<\_ACEOF
14771492

@@ -1517,6 +1532,7 @@ Optional Packages:
15171532
--with-wal-segsize=SEGSIZE
15181533
set WAL segment size in MB [16]
15191534
--with-CC=CMD set compiler (deprecated)
1535+
--with-rsocket replace socket with rsocket (RDMA socket API)
15201536
--with-tcl build Tcl modules (PL/Tcl)
15211537
--with-tclconfig=DIR tclConfig.sh is in DIR
15221538
--with-perl build Perl modules (PL/Perl)
@@ -1625,7 +1641,7 @@ fi
16251641
test -n "$ac_init_help" && exit $ac_status
16261642
if $ac_init_version; then
16271643
cat <<\_ACEOF
1628-
PostgreSQL configure 9.6.3
1644+
PostgreSQL configure 9.6.5
16291645
generated by GNU Autoconf 2.69
16301646

16311647
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2337,7 +2353,7 @@ cat >config.log <<_ACEOF
23372353
This file contains any messages produced by compilers while
23382354
running configure, to aid debugging if configure makes a mistake.
23392355

2340-
It was created by PostgreSQL $as_me 9.6.3, which was
2356+
It was created by PostgreSQL $as_me 9.6.5, which was
23412357
generated by GNU Autoconf 2.69. Invocation command line was
23422358

23432359
$ $0 $@
@@ -5300,6 +5316,41 @@ fi
53005316

53015317

53025318

5319+
#
5320+
# Replace socket with rsocket
5321+
#
5322+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with rsocket support" >&5
5323+
$as_echo_n "checking whether to build with rsocket support... " >&6; }
5324+
5325+
5326+
5327+
# Check whether --with-rsocket was given.
5328+
if test "${with_rsocket+set}" = set; then :
5329+
withval=$with_rsocket;
5330+
case $withval in
5331+
yes)
5332+
5333+
$as_echo "#define WITH_RSOCKET 1" >>confdefs.h
5334+
5335+
;;
5336+
no)
5337+
:
5338+
;;
5339+
*)
5340+
as_fn_error $? "no argument expected for --with-rsocket option" "$LINENO" 5
5341+
;;
5342+
esac
5343+
5344+
else
5345+
with_rsocket=no
5346+
5347+
fi
5348+
5349+
5350+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rsocket" >&5
5351+
$as_echo "$with_rsocket" >&6; }
5352+
5353+
53035354
#
53045355
# Include directories
53055356
#
@@ -7661,6 +7712,18 @@ documentation for details. Use --without-perl to disable building
76617712
PL/Perl." "$LINENO" 5
76627713
fi
76637714

7715+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
7716+
$as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
7717+
perl_ccflags=`$PERL -MConfig -e 'print $Config{ccflags}'`
7718+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
7719+
$as_echo "$perl_ccflags" >&6; }
7720+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
7721+
$as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
7722+
perl_embed_ccflags=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
7723+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
7724+
$as_echo "$perl_embed_ccflags" >&6; }
7725+
7726+
76647727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
76657728
$as_echo_n "checking for flags to link embedded Perl... " >&6; }
76667729
if test "$PORTNAME" = "win32" ; then
@@ -18772,7 +18835,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1877218835
# report actual input values of CONFIG_FILES etc. instead of their
1877318836
# values after options handling.
1877418837
ac_log="
18775-
This file was extended by PostgreSQL $as_me 9.6.3, which was
18838+
This file was extended by PostgreSQL $as_me 9.6.5, which was
1877618839
generated by GNU Autoconf 2.69. Invocation command line was
1877718840

1877818841
CONFIG_FILES = $CONFIG_FILES
@@ -18842,7 +18905,7 @@ _ACEOF
1884218905
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1884318906
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1884418907
ac_cs_version="\\
18845-
PostgreSQL config.status 9.6.3
18908+
PostgreSQL config.status 9.6.5
1884618909
configured by $0, generated by GNU Autoconf 2.69,
1884718910
with options \\"\$ac_cs_config\\"
1884818911

configure.in

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dnl Read the Autoconf manual for details.
1717
dnl
1818
m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
1919

20-
AC_INIT([PostgreSQL], [9.6.3], [bugs@postgrespro.ru],[postgrespro])
20+
AC_INIT([PostgreSQL], [9.6.5], [bugs@postgrespro.ru],[postgrespro])
2121
PACKAGE_TARNAME=postgrespro
2222

2323
m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
@@ -574,6 +574,16 @@ PGAC_ARG_BOOL(enable, cassert, no, [enable assertion checks (for debugging)],
574574
[Define to 1 to build with assertion checks. (--enable-cassert)])])
575575

576576

577+
#
578+
# Replace socket with rsocket
579+
#
580+
AC_MSG_CHECKING([whether to build with rsocket support])
581+
PGAC_ARG_BOOL(with, rsocket, no, [replace socket with rsocket (RDMA socket API)],
582+
[AC_DEFINE([WITH_RSOCKET], 1,
583+
[Define to 1 to build with rsocket instead socket. (--with-rsocket)])])
584+
AC_MSG_RESULT([$with_rsocket])
585+
AC_SUBST(with_rsocket)
586+
577587
#
578588
# Include directories
579589
#
@@ -959,6 +969,7 @@ You might have to rebuild your Perl installation. Refer to the
959969
documentation for details. Use --without-perl to disable building
960970
PL/Perl.])
961971
fi
972+
PGAC_CHECK_PERL_EMBED_CCFLAGS
962973
PGAC_CHECK_PERL_EMBED_LDFLAGS
963974
fi
964975

contrib/hstore_plperl/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ endif
4343
# last, probably because it sometimes contains some header files with names
4444
# that clash with some of ours, or with some that we include, notably on
4545
# Windows.
46-
override CPPFLAGS := $(CPPFLAGS) -I$(perl_archlibexp)/CORE
46+
override CPPFLAGS := $(CPPFLAGS) $(perl_embed_ccflags) -I$(perl_archlibexp)/CORE

0 commit comments

Comments
 (0)