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

Skip to content

ADPG-95 Rel 14.2 sync #1

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

Merged
merged 143 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
3aa858c
Fix instability in 026_overwrite_contrecord.pl test.
tglsfdc Nov 9, 2021
74da4c7
Doc: improve protocol spec for logical replication Type messages.
tglsfdc Nov 10, 2021
56eb02c
Clean up compilation warnings coming from PL/Perl with clang-12~
michaelpq Nov 11, 2021
b609db7
Fix buffer overrun in unicode string normalization with empty input
michaelpq Nov 11, 2021
9aa91cb
Restore lock level to set vacuum flags
alvherre Nov 11, 2021
675cd76
Report any XLogReadRecord() error in XlogReadTwoPhaseData().
nmisch Nov 12, 2021
5f81a48
Fix memory overrun when querying pg_stat_slru
michaelpq Nov 12, 2021
99389cb
Make psql's \password default to CURRENT_USER, not PQuser(conn).
tglsfdc Nov 12, 2021
232fd72
Invalidate relcache when changing REPLICA IDENTITY index.
Nov 16, 2021
51d4213
Doc: add see-also references to CREATE PUBLICATION.
danielgustafsson Nov 17, 2021
5d5779a
Fix display of SQL-standard function's arguments in INSERT/SELECT.
tglsfdc Nov 17, 2021
6b413b4
Handle close() failures more robustly in pg_dump and pg_basebackup.
tglsfdc Nov 17, 2021
53c4a58
Clean up error handling in pg_basebackup's walmethods.c.
tglsfdc Nov 17, 2021
cf3d79a
Add table to regression tests for binary-compatibility checks in pg_u…
michaelpq Nov 18, 2021
048f3ee
Fix quoting of ACL item in table for upgrade binary compatibility checks
michaelpq Nov 18, 2021
ed1c261
Use appropriate -Wno-warning switches when compiling bitcode.
tglsfdc Nov 18, 2021
ead49eb
Fix parallel operations that prevent oldest xmin from advancing.
Nov 19, 2021
6d07cbc
Fix SP-GiST scan initialization logic for binary-compatible cases.
tglsfdc Nov 20, 2021
3bd7556
pg_receivewal, pg_recvlogical: allow canceling initial password prompt.
tglsfdc Nov 21, 2021
c985a43
Add missing words in comment
alvherre Nov 22, 2021
e9af18c
Probe $PROVE not $PERL while checking for modules needed by TAP tests.
tglsfdc Nov 22, 2021
aedc460
Fix pg_dump --inserts mode for generated columns with dropped columns.
tglsfdc Nov 22, 2021
72842a5
Pacify perlcritic.
tglsfdc Nov 22, 2021
0fdf674
Adjust pg_dump's priority ordering for casts.
tglsfdc Nov 22, 2021
6c32c09
Allow Memoize to operate in binary comparison mode
david-rowley Nov 23, 2021
f94edb0
Flush Memoize cache when non-key parameters change
david-rowley Nov 24, 2021
7933bc0
Revert "Flush Memoize cache when non-key parameters change"
david-rowley Nov 24, 2021
0e681fa
Add support for Visual Studio 2022 in build scripts
michaelpq Nov 24, 2021
c2dc7b9
Flush Memoize cache when non-key parameters change, take 2
david-rowley Nov 24, 2021
88482d7
Fix missing space in docs.
hlinnaka Nov 24, 2021
6d1bdd5
Doc: improve documentation about nextval()/setval().
tglsfdc Nov 24, 2021
d2198b4
Fix fstat() emulation on Windows with standard streams
michaelpq Nov 25, 2021
e415916
Block ALTER TABLE .. DROP NOT NULL on columns in replica identity index
michaelpq Nov 25, 2021
1cc13b8
Remove unneeded Python includes
petere Nov 25, 2021
371087d
Fix GRANTED BY support in REVOKE ROLE statements
danielgustafsson Nov 26, 2021
d24dac9
Fix determination of broken LSN in OVERWRITTEN_CONTRECORD
alvherre Nov 26, 2021
2187a22
Document units for max_slot_wal_keep_size
alvherre Nov 26, 2021
1b1e4bf
Harden be-gssapi-common.h for headerscheck
alvherre Nov 26, 2021
ce43b3d
Doc: improve documentation about ORDER BY in matviews.
tglsfdc Nov 29, 2021
5550a9c
Fix compatibility thinko for fstat() on standard streams in win32stat.c
michaelpq Nov 30, 2021
175edaf
Cope with cross-compiling when checking for a random-number source.
tglsfdc Nov 30, 2021
4b8eec7
Doc: Add "Attach Partition" limitation during logical replication.
Dec 1, 2021
8f4b020
Avoid leaking memory during large-scale REASSIGN OWNED BY operations.
tglsfdc Dec 1, 2021
b6dac98
Move into separate file all the SQL queries used in pg_upgrade tests
michaelpq Dec 2, 2021
4cd2928
On Windows, close the client socket explicitly during backend shutdown.
tglsfdc Dec 2, 2021
5cb86a2
postgres_fdw: Fix unexpected reporting of empty message.
MasaoFujii Dec 3, 2021
b6360aa
Doc: Fix misleading wording of CRL parameters
danielgustafsson Dec 3, 2021
ea5ecda
On Windows, also call shutdown() while closing the client socket.
tglsfdc Dec 7, 2021
9309423
Enable settings used in TAP tests for MSVC builds
adunstan Dec 7, 2021
64ab21f
Fix corruption of toast indexes with REINDEX CONCURRENTLY
michaelpq Dec 8, 2021
f2e1730
Fix origin timestamp during decoding of ROLLBACK PREPARED operation.
Dec 8, 2021
90c08ed
Check that we have a working tar before trying to use it
adunstan Dec 8, 2021
e4d73d0
Revert "Check that we have a working tar before trying to use it"
adunstan Dec 8, 2021
3d60343
Doc: improve xfunc-c-type-table.
tglsfdc Dec 8, 2021
614b77d
Fix double publish of child table's data.
Dec 9, 2021
a04fc56
Fix some typos with {a,an}
michaelpq Dec 9, 2021
7615edd
Fix alignment in multirange_get_range() function
akorotkov Dec 13, 2021
5b5455b
isolationtester: append session name to application_name.
anarazel Dec 13, 2021
a80fd2a
Doc: de-document unimplemented geometric operators.
tglsfdc Dec 13, 2021
4be3e00
Remove assertion for replication origins in PREPARE TRANSACTION
michaelpq Dec 14, 2021
25c7faa
Fix datatype confusion in logtape.c's right_offset().
tglsfdc Dec 14, 2021
4ddbd74
Adjust behavior of some env settings for the TAP tests of MSVC
michaelpq Dec 15, 2021
f9a8bc9
Ensure casting to typmod -1 generates a RelabelType.
tglsfdc Dec 16, 2021
8a22a40
Remove assertion for ALTER TABLE .. DETACH PARTITION CONCURRENTLY
michaelpq Dec 22, 2021
420f9ac
Correct comment and some documentation about REPLICA_IDENTITY_INDEX
michaelpq Dec 22, 2021
2ff2099
doc: clarify when expression indexes evaluate their expressions
bmomjian Dec 22, 2021
f7d7ac2
Fix overly generic name in with.sql test.
macdice Dec 30, 2021
cb4f1be
Revert b2a459edf "Fix GRANTED BY support in REVOKE ROLE statements"
danielgustafsson Dec 30, 2021
cabea57
Fix index-only scan plans when not all index columns can be returned.
tglsfdc Jan 1, 2022
f0c5866
Fix typo
mhagander Jan 2, 2022
52d5026
pg_stat_statements: Remove obsolete comment
michaelpq Jan 3, 2022
d228af7
Fix index-only scan plans, take 2.
tglsfdc Jan 3, 2022
f185f35
Allow special SKIP LOCKED condition in Assert()
alvherre Jan 4, 2022
f9db153
Fix silly mistake in Assert
alvherre Jan 4, 2022
5ddfebd
Reduce relcache access in WAL sender streaming logical changes
michaelpq Jan 5, 2022
9ae0a4c
doc: Remove link to JSON support in the SQL specification
michaelpq Jan 6, 2022
f285d95
Prevent altering partitioned table's rowtype, if it's used elsewhere.
tglsfdc Jan 6, 2022
a7772e8
Allow MSVC .bat wrappers to be called from anywhere
adunstan Jan 7, 2022
61c8da5
Update copyright for 2022
bmomjian Jan 8, 2022
f5bea83
Fix issues with describe queries of extended statistics in psql
michaelpq Jan 8, 2022
043c1e1
Fix results of index-only scans on btree_gist char(N) indexes.
tglsfdc Jan 8, 2022
1cd46f1
Avoid warning about uninitialized value in MSVC python3 tests
adunstan Jan 10, 2022
05cdda6
Doc: fix bogus example about ambiguous timestamps.
tglsfdc Jan 10, 2022
3a0cced
Improve error handling of cryptohash computations
michaelpq Jan 11, 2022
ab27df2
Clean up error message reported after \password encryption failure.
tglsfdc Jan 11, 2022
af8d530
Fix comment related to pg_cryptohash_error()
michaelpq Jan 12, 2022
41ee68a
Fix memory leak in indexUnchanged hint mechanism.
petergeoghegan Jan 12, 2022
3c1ffd0
Fix incorrect comments in hmac.c and hmac_openssl.c
michaelpq Jan 13, 2022
4aee39d
Fix ruleutils.c's dumping of whole-row Vars in more contexts.
tglsfdc Jan 13, 2022
ad5b6f2
Revert error handling improvements for cryptohashes
michaelpq Jan 14, 2022
dad1539
Fix possible HOT corruption when RECENTLY_DEAD changes to DEAD while …
anarazel Dec 11, 2021
2cc007f
Ignore extended statistics for inheritance trees
tvondra Jan 15, 2022
ea212bd
Build inherited extended stats on partitioned tables
tvondra Jan 15, 2022
d91d433
Fix psql's tab-completion of enum label values.
tglsfdc Jan 16, 2022
17da9d4
Teach hash_ok_operator() that record_eq is only sometimes hashable.
tglsfdc Jan 16, 2022
0509498
Avoid calling strerror[_r] in PQcancel().
tglsfdc Jan 17, 2022
4e87265
Avoid calling gettext() in signal handlers.
tglsfdc Jan 17, 2022
3886785
Fix psql \d's query for identifying parent triggers.
tglsfdc Jan 18, 2022
ff4d0d8
Try to stabilize the reloptions test.
macdice Jan 18, 2022
0f1367c
doc: Fix description of pg_replication_origin_oid() in error case
michaelpq Jan 19, 2022
b062362
TAP tests: check for postmaster.pid anyway when "pg_ctl start" fails.
tglsfdc Jan 19, 2022
a9009f5
doc: Mention the level of locks taken on objects in COMMENT
michaelpq Jan 20, 2022
b9dd162
Try to stabilize reloptions test, again.
macdice Jan 20, 2022
156a846
Allow clean.bat to be run from anywhere
adunstan Jan 20, 2022
cf680bd
Tighten TAP tests' tracking of postmaster state some more.
tglsfdc Jan 20, 2022
84db516
Fix one-off bug causing missing commit timestamps for subtransactions
michaelpq Jan 21, 2022
700e8fe
postgres_fdw: Fix subabort cleanup of connections used in asynchronou…
Jan 21, 2022
2b7dbe4
fsync pg_logical/mappings in CheckPointLogicalRewriteHeap().
anarazel Jan 21, 2022
f4ebf0d
Fix race condition in gettext() initialization in libpq and ecpglib.
tglsfdc Jan 21, 2022
3839e29
Flush table's relcache during ALTER TABLE ADD PRIMARY KEY USING INDEX.
tglsfdc Jan 22, 2022
a192243
Check syscache result in AlterStatistics
tvondra Jan 23, 2022
72ac4d7
Correct type of front_pathkey to PathKey
tvondra Jan 23, 2022
ef4edf8
Suppress variable-set-but-not-used warning from clang 13.
tglsfdc Jan 23, 2022
1042de6
pg_dump: avoid useless query in binary_upgrade_set_type_oids_by_type_oid
tglsfdc Jan 23, 2022
ef9706b
Remember to reset yy_start state when firing up repl_scanner.l.
tglsfdc Jan 24, 2022
1efcc59
Fix limitations on what SQL commands can be issued to a walsender.
tglsfdc Jan 24, 2022
29d9da3
doc: Fix some grammar
michaelpq Jan 25, 2022
357ff66
Consider parallel awareness when removing single-child Appends
david-rowley Jan 25, 2022
75674c7
Revert "graceful shutdown" changes for Windows, in back branches only.
tglsfdc Jan 25, 2022
4afae68
Fix pg_hba_file_rules for authentication method cert
mhagander Jan 26, 2022
d94a95c
On sparc64+ext4, suppress test failures from known WAL read failure.
nmisch Jan 27, 2022
d1cca94
postgres_fdw: Fix handling of a pending asynchronous request in postg…
Jan 27, 2022
999dc1d
Improve msys2 detection for TAP tests
adunstan Jan 27, 2022
fb2f8e5
Fix ordering of XIDs in ProcArrayApplyRecoveryInfo
tvondra Jan 27, 2022
6e7ee55
Prevent memory context logging from sending log message to connected …
MasaoFujii Jan 28, 2022
d99166e
Fix typo in comment.
Jan 28, 2022
b30282f
Fix incorrect memory context switch in COPY TO execution
michaelpq Jan 29, 2022
c025067
Fix failure to validate the result of select_common_type().
tglsfdc Jan 29, 2022
8484e38
plperl: windows: Use Perl_setlocale on 5.28+, fixing compile failure.
anarazel Jan 30, 2022
d81cac4
plperl: Fix breakage of c89f409749c in back branches.
anarazel Jan 31, 2022
2d44912
plperl: update ppport.h to Perl 5.34.0.
tglsfdc Jan 31, 2022
00fdfde
Revert "plperl: Fix breakage of c89f409749c in back branches."
tglsfdc Jan 31, 2022
803f0b1
Replace use of deprecated Python module distutils.sysconfig, take 2.
tglsfdc Feb 2, 2022
ee57467
doc: Fix mistake in PL/Python documentation
petere Feb 2, 2022
2556076
doc: clarify syntax notation, particularly parentheses
bmomjian Feb 3, 2022
7b0cec2
Further fix for EvalPlanQual with mix of local and foreign partitions.
Feb 3, 2022
2a3958e
Fix compiler warning in non-assert builds, introduced in f862d57057f.
anarazel Feb 3, 2022
ab22eea
First-draft release notes for 14.2.
tglsfdc Feb 4, 2022
d13a838
Test, don't just Assert, that mergejoin's inputs are in order.
tglsfdc Feb 5, 2022
d0cd7b7
Doc: be clearer that foreign-table partitions need user-added constra…
tglsfdc Feb 5, 2022
1d9ccc0
Release notes for 14.2, 13.6, 12.10, 11.15, 10.20.
tglsfdc Feb 6, 2022
3c879e6
Translation updates
petere Feb 7, 2022
78b1ddc
Stamp 14.2.
tglsfdc Feb 7, 2022
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
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PostgreSQL Database Management System
(formerly known as Postgres, then as Postgres95)

Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group

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

Expand Down
1 change: 0 additions & 1 deletion aclocal.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dnl aclocal.m4
m4_include([config/ac_func_accept_argtypes.m4])
m4_include([config/ax_prog_perl_modules.m4])
m4_include([config/ax_pthread.m4])
m4_include([config/c-compiler.m4])
m4_include([config/c-library.m4])
Expand Down
77 changes: 0 additions & 77 deletions config/ax_prog_perl_modules.m4

This file was deleted.

23 changes: 23 additions & 0 deletions config/check_modules.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Verify that required Perl modules are available,
# in at least the required minimum versions.
# (The required minimum versions are all quite ancient now,
# but specify them anyway for documentation's sake.)
#
use strict;
use warnings;

use IPC::Run 0.79;

# Test::More and Time::HiRes are supposed to be part of core Perl,
# but some distros omit them in a minimal installation.
use Test::More 0.87;
use Time::HiRes 1.52;

# While here, we might as well report exactly what versions we found.
diag("IPC::Run::VERSION: $IPC::Run::VERSION");
diag("Test::More::VERSION: $Test::More::VERSION");
diag("Time::HiRes::VERSION: $Time::HiRes::VERSION");

ok(1);
done_testing();
33 changes: 13 additions & 20 deletions config/python.m4
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,25 @@ python_majorversion=`echo "$python_fullversion" | sed '[s/^\([0-9]*\).*/\1/]'`
python_minorversion=`echo "$python_fullversion" | sed '[s/^[0-9]*\.\([0-9]*\).*/\1/]'`
python_version=`echo "$python_fullversion" | sed '[s/^\([0-9]*\.[0-9]*\).*/\1/]'`
# Reject unsupported Python versions as soon as practical.
if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 6; then
AC_MSG_ERROR([Python version $python_version is too old (version 2.6 or later is required)])
if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 7; then
AC_MSG_ERROR([Python version $python_version is too old (version 2.7 or later is required)])
fi

AC_MSG_CHECKING([for Python distutils module])
if "${PYTHON}" -c 'import distutils' 2>&AS_MESSAGE_LOG_FD
AC_MSG_CHECKING([for Python sysconfig module])
if "${PYTHON}" -c 'import sysconfig' 2>&AS_MESSAGE_LOG_FD
then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([distutils module not found])
AC_MSG_ERROR([sysconfig module not found])
fi

AC_MSG_CHECKING([Python configuration directory])
python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
python_configdir=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
AC_MSG_RESULT([$python_configdir])

AC_MSG_CHECKING([Python include directories])
python_includespec=`${PYTHON} -c "
import distutils.sysconfig
a = '-I' + distutils.sysconfig.get_python_inc(False)
b = '-I' + distutils.sysconfig.get_python_inc(True)
if a == b:
print(a)
else:
print(a + ' ' + b)"`
AC_MSG_CHECKING([Python include directory])
python_includespec=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
if test "$PORTNAME" = win32 ; then
python_includespec=`echo $python_includespec | sed 's,[[\]],/,g'`
fi
Expand Down Expand Up @@ -96,8 +89,8 @@ AC_DEFUN([PGAC_CHECK_PYTHON_EMBED_SETUP],
[AC_REQUIRE([_PGAC_CHECK_PYTHON_DIRS])
AC_MSG_CHECKING([how to link an embedded Python application])

python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
python_libdir=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
python_ldlibrary=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`

# If LDLIBRARY exists and has a shlib extension, use it verbatim.
ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
Expand All @@ -109,11 +102,11 @@ else
# Otherwise, guess the base name of the shlib.
# LDVERSION was added in Python 3.2, before that use VERSION,
# or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
python_ldversion=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
if test x"${python_ldversion}" != x""; then
ldlibrary="python${python_ldversion}"
else
python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
python_version_var=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
if test x"${python_version_var}" != x""; then
ldlibrary="python${python_version_var}"
else
Expand Down Expand Up @@ -173,7 +166,7 @@ PL/Python.])
fi
python_libspec="-L${python_libdir} -l${ldlibrary}"

python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
python_additional_libs=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`

AC_MSG_RESULT([${python_libspec} ${python_additional_libs}])

Expand Down
Loading