Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
a5b81b6
Fix bugs in comparison functions for multirange_bsearch_match()
akorotkov Dec 29, 2020
4d7684c
Implement operators for checking if the range contains a multirange
akorotkov Dec 29, 2020
d1d61a8
Improve the signature of internal multirange functions
akorotkov Dec 29, 2020
db6335b
Add support of multirange matching to the existing range GiST indexes
akorotkov Dec 29, 2020
1f9158b
Suppress log spam from multiple reports of SIGQUIT shutdown.
tglsfdc Dec 29, 2020
f20dc2c
Doc: fix up PDF build warnings from over-width table columns.
tglsfdc Dec 30, 2020
107a2d4
Remove references to libpq_srcdir in adminpack and old_snapshot
michaelpq Dec 30, 2020
52202bb
In pg_upgrade cross-version test, handle lack of oldstyle_length().
nmisch Dec 30, 2020
fa74469
In pg_upgrade cross-version test, handle postfix operators.
nmisch Dec 30, 2020
0aa8a01
Extend the output plugin API to allow decoding of prepared xacts.
Dec 30, 2020
e665769
Sanitize IF NOT EXISTS in EXPLAIN for CTAS and matviews
michaelpq Dec 30, 2020
860fe27
Fix up usage of krb_server_keyfile GUC parameter.
tglsfdc Dec 30, 2020
62097a4
Fix selectivity estimation @> (anymultirange, anyrange) operator
akorotkov Dec 30, 2020
7ca37fb
Use setenv() in preference to putenv().
tglsfdc Dec 30, 2020
16d531a
Refactor multirange_in()
akorotkov Dec 30, 2020
0918667
More fixups for pg_upgrade cross-version tests.
tglsfdc Dec 30, 2020
319f4d5
Doc: spell out comparison behaviors for the date/time types.
tglsfdc Dec 30, 2020
4228817
Fix index deletion latestRemovedXid bug.
petergeoghegan Dec 31, 2020
32d6287
Get heap page max offset with buffer lock held.
petergeoghegan Dec 31, 2020
4d3f03f
Doc: improve explanation of EXTRACT(EPOCH) for timestamp without tz.
tglsfdc Jan 1, 2021
ca3b374
Update copyright for 2021
bmomjian Jan 2, 2021
a271a1b
Allow decoding at prepare time in ReorderBuffer.
Jan 4, 2021
b49154b
Simplify some comments in xml.c
michaelpq Jan 4, 2021
844fe9f
Add the ability for the core grammar to have more than one parse target.
tglsfdc Jan 4, 2021
c9d5298
Re-implement pl/pgsql's expression and assignment parsing.
tglsfdc Jan 4, 2021
1788828
Remove PLPGSQL_DTYPE_ARRAYELEM datum type within pl/pgsql.
tglsfdc Jan 4, 2021
1c1cbe2
Rethink the "read/write parameter" mechanism in pl/pgsql.
tglsfdc Jan 4, 2021
87c23d3
Remove unused function prototypes.
macdice Jan 4, 2021
4bd3fad
Fix integer-overflow corner cases in substring() functions.
tglsfdc Jan 4, 2021
c0d4f6d
Rename "enum blacklist" to "uncommitted enums".
macdice Jan 4, 2021
fe05b6b
pgindent: whitelist/blacklist -> additional/excluded.
macdice Jan 5, 2021
034510c
Replace remaining uses of "whitelist".
macdice Jan 5, 2021
9da2224
Fix typo in reorderbuffer.c.
Jan 5, 2021
cd357c7
Fix typo in origin.c.
Jan 5, 2021
83e3239
Standardize one aspect of rmgr desc output.
petergeoghegan Jan 5, 2021
854434c
doc: Document how to run regression tests with custom server settings
petere Jan 5, 2021
5a3574d
Test decoding of two-phase transactions during the build of a consist…
Jan 5, 2021
bc43b7c
Fix numeric_power() when the exponent is INT_MIN.
deanrasheed Jan 5, 2021
fead67c
Add an explicit cast to double when using fabs().
deanrasheed Jan 5, 2021
47b2ed1
doc: improve NLS instruction wording
bmomjian Jan 5, 2021
bf8a662
Introduce a new GUC_REPORT setting "in_hot_standby".
tglsfdc Jan 5, 2021
7d80441
Allow psql's \dt and \di to show TOAST tables and their indexes.
tglsfdc Jan 5, 2021
14d49f4
Revert unstable test cases from commit 7d80441d2.
tglsfdc Jan 6, 2021
bc08f79
Promote --data-checksums to the common set of options in initdb --help
michaelpq Jan 6, 2021
25dde58
doc: Fix description about default behavior of recovery_target_timeline.
MasaoFujii Jan 6, 2021
e02e840
Fix typos in decode.c and logical.c.
Jan 6, 2021
8900b5a
Detect the deadlocks between backends and the startup process.
MasaoFujii Jan 6, 2021
4656e3d
Replace CLOBBER_CACHE_ALWAYS with run-time GUC
petere Jan 6, 2021
ca8217c
Add a test module for the regular expression package.
tglsfdc Jan 6, 2021
8a4f618
Report progress of COPY commands
tvondra Jan 6, 2021
09cf1d5
Improve timeout.c's handling of repeated timeout set/cancel.
tglsfdc Jan 6, 2021
9877374
Add idle_session_timeout.
tglsfdc Jan 6, 2021
55fe26a
Fix allocation logic of cryptohash context data with OpenSSL
michaelpq Jan 7, 2021
9486e7b
Improve commentary in timeout.c.
tglsfdc Jan 7, 2021
f7a1a80
Fix bogus link in test comments.
tglsfdc Jan 7, 2021
0650ff2
Add GUC to log long wait times on recovery conflicts.
MasaoFujii Jan 7, 2021
ebb5457
Minor fixes in COPY progress docs
tvondra Jan 7, 2021
b8d0cda
Further second thoughts about idle_session_timeout patch.
tglsfdc Jan 7, 2021
9ffe227
Adjust createdb TAP tests to work on recent OpenBSD.
tglsfdc Jan 8, 2021
15b824d
Fix and simplify some code related to cryptohashes
michaelpq Jan 8, 2021
afcc877
Fix ancient bug in parsing of BRE-mode regular expressions.
tglsfdc Jan 8, 2021
39d4a15
Fix plpgsql tests for debug_invalidate_system_caches_always.
tglsfdc Jan 8, 2021
e33d004
Fix the test for decoding of two-phase transactions.
Jan 9, 2021
01334c9
doc: expand description of how non-SELECT queries are processed
bmomjian Jan 9, 2021
13a021f
Provide pg_preadv() and pg_pwritev().
macdice Jan 11, 2021
ce6a71f
Use vectored I/O to fill new WAL segments.
macdice Jan 11, 2021
ffa2e46
In libpq, always append new error messages to conn->errorMessage.
tglsfdc Jan 11, 2021
800d93f
Allow pg_regress.c wrappers to postprocess test result files.
tglsfdc Jan 11, 2021
52a1022
Uniformly identify the target host in libpq connection failure reports.
tglsfdc Jan 11, 2021
c1d5895
Try next host after a "cannot connect now" failure.
tglsfdc Jan 11, 2021
4edf968
Rethink SQLSTATE code for ERRCODE_IDLE_SESSION_TIMEOUT.
tglsfdc Jan 11, 2021
f315205
Fix function prototypes in dependency.h.
macdice Jan 11, 2021
d5ab79d
Make pg_dump's table of object-type priorities more maintainable.
tglsfdc Jan 12, 2021
9a4c0e3
Dump ALTER TABLE ... ATTACH PARTITION as a separate ArchiveEntry.
tglsfdc Jan 12, 2021
d6ad34f
Optimize DropRelFileNodeBuffers() for recovery.
Jan 12, 2021
044aa9e
Fix relation descriptor leak.
Jan 12, 2021
a3e51a3
Fix thinko in comment
alvherre Jan 12, 2021
cc865c0
Doc: fix description of privileges needed for ALTER PUBLICATION.
tglsfdc Jan 12, 2021
9eabfe3
pg_dump: label INDEX ATTACH ArchiveEntries with an owner.
tglsfdc Jan 12, 2021
c6c4b37
Invent struct ReindexIndexInfo
alvherre Jan 12, 2021
fce7d0e
Fix routine name in comment of catcache.c
michaelpq Jan 13, 2021
bea449c
Optimize DropRelFileNodesAllBuffers() for recovery.
Jan 13, 2021
ee1b38f
Fix memory leak in SnapBuildSerialize.
Jan 13, 2021
df10ac6
Don't use elog() in src/port/pwrite.c.
macdice Jan 13, 2021
756ab29
Add functions to 'pageinspect' to inspect GiST indexes.
hlinnaka Jan 13, 2021
e6eeb8d
Remove incorrect markup
mhagander Jan 13, 2021
6ecaaf8
Fix portability issues in the new gist pageinspect test.
hlinnaka Jan 13, 2021
39b0369
Log long wait time on recovery conflict when it's resolved.
MasaoFujii Jan 13, 2021
9dc718b
Pass down "logically unchanged index" hint.
petergeoghegan Jan 13, 2021
d168b66
Enhance nbtree index tuple deletion.
petergeoghegan Jan 13, 2021
06ed235
Doc: clarify behavior of back-half options in pg_dump.
tglsfdc Jan 13, 2021
5abca4b
Fix test failure with wal_level=minimal.
hlinnaka Jan 13, 2021
c21ea4d
Disallow a digit as the first character of a variable name in pgbench.
tglsfdc Jan 13, 2021
93c39f9
Call out vacuum considerations in create index docs
alvherre Jan 13, 2021
dce6249
Doc, more or less: uncomment tutorial example that was fixed long ago.
tglsfdc Jan 13, 2021
8b411b8
Run reformat-dat-files to declutter the catalog data files.
tglsfdc Jan 13, 2021
5a6f9bc
Mark inet_server_addr() and inet_server_port() as parallel-restricted.
tglsfdc Jan 13, 2021
0d56acf
Move our p{read,write}v replacements into their own files.
macdice Jan 13, 2021
aef8948
Rework refactoring of hex and encoding routines
michaelpq Jan 14, 2021
fef5b47
Ensure that a standby is able to follow a primary on a newer timeline.
MasaoFujii Jan 14, 2021
fb29ab2
Minor header cleanup for the new iovec code.
macdice Jan 14, 2021
3f238b8
Improve tab-completion for CLOSE, DECLARE, FETCH and MOVE.
MasaoFujii Jan 14, 2021
424d7a9
Stabilize timeline switch regression test.
MasaoFujii Jan 14, 2021
ebfe2db
Prevent drop of tablespaces used by partitioned relations
alvherre Jan 14, 2021
8e396a7
pg_dump: label PUBLICATION TABLE ArchiveEntries with an owner.
tglsfdc Jan 14, 2021
5e5f4fc
postgres_fdw: Save foreign server OID in connection cache entry.
MasaoFujii Jan 15, 2021
5ae1572
Fix O(N^2) stat() calls when recycling WAL segments
michaelpq Jan 15, 2021
ccf4e27
Remove PG_SHA*_DIGEST_STRING_LENGTH from sha2.h
michaelpq Jan 15, 2021
2ad78a8
Fix calculation of how much shared memory is required to store a TOC.
MasaoFujii Jan 15, 2021
f9900df
Avoid spurious wait in concurrent reindex
alvherre Jan 15, 2021
4823621
Improve our heuristic for selecting PG_SYSROOT on macOS.
tglsfdc Jan 15, 2021
c9a0dc3
Disallow CREATE STATISTICS on system catalogs
tvondra Jan 15, 2021
c95765f
Remove unnecessary pstrdup in fetch_table_list.
Jan 16, 2021
6db9928
Prevent excess SimpleLruTruncate() deletion.
nmisch Jan 16, 2021
f713ff7
Fix pg_dump for GRANT OPTION among initial privileges.
nmisch Jan 16, 2021
a32d983
Documenation fixups for replication protocol.
jeff-davis Jan 16, 2021
891a1d0
psql \dX: list extended statistics objects
tvondra Jan 16, 2021
960869d
Add pg_stat_database counters for sessions and session time
mhagander Jan 17, 2021
e09155b
Add --no-instructions parameter to initdb
mhagander Jan 17, 2021
1db0d17
Revert "psql \dX: list extended statistics objects"
tvondra Jan 17, 2021
cf621d9
Add documentation chapter about checksums
mhagander Jan 17, 2021
0c7d3bb
Add missing array-enlargement logic to test_regex.c.
tglsfdc Jan 17, 2021
7db0cd2
Set PD_ALL_VISIBLE and visibility map bits in COPY FREEZE
tvondra Jan 17, 2021
04eb75e
pageinspect: Fix relcache leak in gist_page_items().
hlinnaka Jan 17, 2021
a3dc926
Refactor option handling of CLUSTER, REINDEX and VACUUM
michaelpq Jan 18, 2021
708d165
postgres_fdw: Add function to list cached connections to foreign serv…
MasaoFujii Jan 18, 2021
15251c0
Pause recovery for insufficient parameter settings
petere Jan 18, 2021
5d1e5c8
Check for BuildIndexValueDescription returning NULL in gist_page_items
hlinnaka Jan 18, 2021
b2f87b4
Bump PGSTAT_FILE_FORMAT_ID
mhagander Jan 18, 2021
a3ed4d1
Allow for error or refusal while absorbing a ProcSignalBarrier.
robertmhaas Jan 18, 2021
a6cf3df
Add bytea equivalents of ltrim() and rtrim().
tglsfdc Jan 18, 2021
3fd80c7
Narrow the scope of a local variable.
tglsfdc Jan 18, 2021
60661bb
Avoid crash with WHERE CURRENT OF and a custom scan plan.
tglsfdc Jan 18, 2021
9e7dbe3
doc: adjust alignment of doc file list for "pg_waldump.sgml"
bmomjian Jan 18, 2021
ed43677
pgindent worker.c.
Jan 19, 2021
ee79a54
doc: Add note about the server name of postgres_fdw_get_connections()…
MasaoFujii Jan 18, 2021
f18aa1b
pageinspect: Change block number arguments to bigint
petere Jan 19, 2021
a0efda8
Remove faulty support for MergeAppend plan with WHERE CURRENT OF.
tglsfdc Jan 19, 2021
21378e1
Fix ALTER DEFAULT PRIVILEGES with duplicated objects
michaelpq Jan 20, 2021
a36dc04
Add regression test for DROP OWNED BY with default ACLs
michaelpq Jan 20, 2021
679744c
Fix sample output of EXPLAIN ANALYZE.
macdice Jan 20, 2021
6b4d304
Fix bug in detecting concurrent page splits in GiST insert
hlinnaka Jan 20, 2021
c2dc1a7
Disable vacuum page skipping in selected test cases.
tglsfdc Jan 20, 2021
9d23c15
Further tweaking of PG_SYSROOT heuristics for macOS.
tglsfdc Jan 20, 2021
ad600bb
psql \dX: list extended statistics objects
tvondra Jan 20, 2021
b663a41
Implement support for bulk inserts in postgres_fdw
tvondra Jan 20, 2021
733d670
Switch "cl /?" to "cl /help" in MSVC scripts for platform detection
michaelpq Jan 21, 2021
920f853
Fix initialization of FDW batching in ExecInitModifyTable
tvondra Jan 21, 2021
55dc86e
Fix pull_varnos' miscomputation of relids set for a PlaceHolderVar.
tglsfdc Jan 21, 2021
27a48e5
Improve new wording of libpq's connection failure messages.
tglsfdc Jan 21, 2021
af0e79c
Move SSL information callback earlier to capture more information
michaelpq Jan 22, 2021
29ad659
doc: Copy-edit the "Overview of PostgreSQL Internals" chapter
hlinnaka Jan 22, 2021
09418be
Remove bogus tracepoint
petere Jan 22, 2021
0a9ae44
Remove reference to ftp servers from documentation
mhagander Jan 22, 2021
ab66645
Doc: remove misleading claim in documentation of PQreset().
tglsfdc Jan 22, 2021
7cd9765
Re-allow DISTINCT in pl/pgsql expressions.
tglsfdc Jan 22, 2021
58cd8dc
Avoid redundantly prefixing PQerrorMessage for a connection failure.
tglsfdc Jan 22, 2021
50bebc1
Doc: improve directions for building on macOS.
tglsfdc Jan 22, 2021
3fc81ce
Suppress bison warning in ecpg grammar.
tglsfdc Jan 23, 2021
a8ed6bb
Introduce SHA1 implementations in the cryptohash infrastructure
michaelpq Jan 23, 2021
68d1c33
Update ecpg's connect-test1 for connection-failure message changes.
tglsfdc Jan 23, 2021
183bbd1
Doc: update example connection-failure messages in the documentation.
tglsfdc Jan 23, 2021
39b66a9
Fix COPY FREEZE with CLOBBER_CACHE_ALWAYS
tvondra Jan 23, 2021
7e57255
Doc: clean up contrib/pageinspect's GIST function documentation.
tglsfdc Jan 24, 2021
8a337b0
Remove make_diff set of tools
mhagander Jan 24, 2021
0c1e884
Add a simple test for contrib/auto_explain.
tglsfdc Jan 24, 2021
c7edf4a
Update time zone data files to tzdata release 2021a.
tglsfdc Jan 24, 2021
a4b03de
Make storage/standby.h compile standalone again.
tglsfdc Jan 24, 2021
40ab64c
Fix ALTER PUBLICATION...DROP TABLE behavior.
Jan 25, 2021
16dfe25
Fix hypothetical bug in heap backward scans
david-rowley Jan 25, 2021
ecc4b13
Remove duplicate include
petere Jan 25, 2021
951862e
Doc: improve documentation of pg_proc.protrftypes.
tglsfdc Jan 25, 2021
d18e756
Remove CheckpointLock.
robertmhaas Jan 25, 2021
07d46fc
Fix broken ruleutils support for function TRANSFORM clauses.
tglsfdc Jan 25, 2021
881933f
Don't clobber the calling user's credentials cache in Kerberos test.
tglsfdc Jan 25, 2021
55ef855
Fix two typos in snapbuild.c.
anarazel Jan 25, 2021
ee895a6
Improve performance of repeated CALLs within plpgsql procedures.
tglsfdc Jan 26, 2021
411ae64
postgres_fdw: Add functions to discard cached connections.
MasaoFujii Jan 25, 2021
6adc537
postgres_fdw: Stabilize regression test for postgres_fdw_disconnect_a…
MasaoFujii Jan 26, 2021
0c3fc09
postgres_fdw: Fix test failure with -DENFORCE_REGRESSION_TEST_NAME_RE…
MasaoFujii Jan 26, 2021
7b4c660
Fix memory leak when deallocating prepared statement in postgres_fdw
michaelpq Jan 26, 2021
f76a850
Code review for psql's helpSQL() function.
tglsfdc Jan 26, 2021
7292fd8
Suppress compiler warnings from commit ee895a655.
tglsfdc Jan 26, 2021
d5a83d7
Rethink recently-added SPI interfaces.
tglsfdc Jan 26, 2021
4c9c359
Refactor code in tablecmds.c to check and process tablespace moves
michaelpq Jan 27, 2021
32bef75
doc: Remove reference to views for TRUNCATE privilege
michaelpq Jan 27, 2021
e42b3c3
Fix GiST index deletion assert issue.
petergeoghegan Jan 27, 2021
1f113ab
Move StartupCLOG() calls to just after we initialize ShmemVariableCache.
robertmhaas Jan 27, 2021
662affc
Doc: improve documentation for UNNEST().
tglsfdc Jan 27, 2021
0fcc2de
In clog_redo(), don't set XactCtl->shared->latest_page_number.
robertmhaas Jan 27, 2021
69059d3
In TrimCLOG(), don't reset XactCtl->shared->latest_page_number.
robertmhaas Jan 27, 2021
e19594c
Reduce the default value of vacuum_cost_page_miss.
petergeoghegan Jan 27, 2021
f854c69
Refactor SQL functions of SHA-2 in cryptohashfuncs.c
michaelpq Jan 28, 2021
bca96dd
Fix crash of pg_stat_statements_info() without library loaded
michaelpq Jan 28, 2021
a3367aa
Don't add bailout adjustment for non-strict deserialize calls.
RhodiumToad Jan 28, 2021
b80e106
Add mbverifystr() functions specific to each encoding.
hlinnaka Jan 28, 2021
6c55760
Add direct conversion routines between EUC_TW and Big5.
hlinnaka Jan 28, 2021
b034ef9
Remove gratuitous uses of deprecated SELECT INTO
petere Jan 28, 2021
6819b90
pgbench: Remove dead code
alvherre Jan 28, 2021
1b242f4
Make ecpg's rjulmdy() and rmdyjul() agree with their declarations.
tglsfdc Jan 28, 2021
1d9351a
Fix hash partition pruning with asymmetric partition sets.
tglsfdc Jan 28, 2021
6f5c8a8
Remove bogus restriction from BEFORE UPDATE triggers
alvherre Jan 28, 2021
1046dbe
Silence another gcc 11 warning.
tglsfdc Jan 28, 2021
514b411
Retire pg_standby.
macdice Jan 29, 2021
5c6d184
Remove documentation of waiting restore_command.
macdice Jan 29, 2021
2484329
Adjust comments of CheckRelationTableSpaceMove() and SetRelationTable…
michaelpq Jan 29, 2021
2a5862f
doc: Improve wording of section for repslot statistics
michaelpq Jan 29, 2021
2592be8
Fix typo
petere Jan 29, 2021
b416454
Document behavior of the .** jsonpath accessor in the lax mode
akorotkov Jan 29, 2021
f743a2b
Doc: improve cross-references for SET/SHOW.
tglsfdc Jan 29, 2021
f77717b
postgres_fdw: Fix tests for CLOBBER_CACHE_ALWAYS.
MasaoFujii Jan 30, 2021
8a54e12
Fix CREATE INDEX CONCURRENTLY for simultaneous prepared transactions.
nmisch Jan 30, 2021
360bd23
Fix error with CREATE PUBLICATION, wal_level=minimal, and new tables.
nmisch Jan 30, 2021
7da8341
Revive "snapshot too old" with wal_level=minimal and SET TABLESPACE.
nmisch Jan 30, 2021
6aaaa76
Allow GRANTED BY clause in normal GRANT and REVOKE statements
petere Jan 30, 2021
6533062
doc: Clarify status of SELECT INTO on reference page
petere Jan 30, 2021
dfb75e4
Add primary keys and unique constraints to system catalogs
petere Jan 30, 2021
0c4f355
Fix parsing of complex morphs to tsquery
akorotkov Jan 31, 2021
dc43492
Remove unused _bt_delitems_delete() argument.
petergeoghegan Jan 31, 2021
676887a
Implementation of subscripting for jsonb
akorotkov Jan 31, 2021
81fcc72
Filling array gaps during jsonb subscripting
akorotkov Jan 31, 2021
aa6e46d
Throw error when assigning jsonb scalar instead of a composite object
akorotkov Jan 31, 2021
7c5d57c
Fix portability issue in new jsonbsubs code.
tglsfdc Feb 1, 2021
fe61df7
Introduce --with-ssl={openssl} as a configure option
michaelpq Feb 1, 2021
bb513b3
Get rid of unnecessary memory allocation in jsonb_subscript_assign()
akorotkov Feb 1, 2021
3696a60
SEARCH and CYCLE clauses
petere Feb 1, 2021
fb2d645
Revise make_partition_pruneinfo to not use its partitioned_rels input.
tglsfdc Feb 1, 2021
5076f88
Remove incidental dependencies on partitioned_rels lists.
tglsfdc Feb 1, 2021
f003a75
Remove [Merge]AppendPath.partitioned_rels.
tglsfdc Feb 1, 2021
9522085
Doc: work a little harder on the initial examples for regex matching.
tglsfdc Feb 1, 2021
4ad31bb
Remove unused column atttypmod from initial tablesync query
michaelpq Feb 2, 2021
1d71f3c
Improve confusing variable names
petere Feb 2, 2021
5c0f7cc
Fix ancient memory leak in contrib/auto_explain.
tglsfdc Feb 2, 2021
dfcc46f
Remove extra increment of plpgsql's statement counter for FOR loops.
tglsfdc Feb 2, 2021
4793314
Doc: consistently identify OID catalog columns that can be zero.
tglsfdc Feb 2, 2021
62f3409
Build in some knowledge about foreign-key relationships in the catalogs.
tglsfdc Feb 2, 2021
ef3d461
Retire findoidjoins.
tglsfdc Feb 2, 2021
0bf8364
pg_dump: Fix dumping of inherited generated columns
petere Feb 3, 2021
ba0faf8
Remove special BKI_LOOKUP magic for namespace and role OIDs.
tglsfdc Feb 3, 2021
2c8726c
Factor pattern-construction logic out of processSQLNamePattern.
robertmhaas Feb 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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-2020, PostgreSQL Global Development Group
Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group

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

Expand Down
2 changes: 1 addition & 1 deletion config/thread_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* thread_test.c
* libc threading test program
*
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* config/thread_test.c
Expand Down
182 changes: 125 additions & 57 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
#
# Copyright (c) 1996-2020, PostgreSQL Global Development Group
# Copyright (c) 1996-2021, PostgreSQL Global Development Group
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
Expand Down Expand Up @@ -653,6 +653,7 @@ LIBOBJS
UUID_LIBS
LDAP_LIBS_BE
LDAP_LIBS_FE
with_ssl
PTHREAD_CFLAGS
PTHREAD_LIBS
PTHREAD_CC
Expand Down Expand Up @@ -705,12 +706,10 @@ XML2_LIBS
XML2_CFLAGS
XML2_CONFIG
with_libxml
UUID_EXTRA_OBJS
with_uuid
with_readline
with_systemd
with_selinux
with_openssl
with_ldap
with_krb_srvnam
krb_srvtab
Expand Down Expand Up @@ -855,7 +854,6 @@ with_pam
with_bsd_auth
with_ldap
with_bonjour
with_openssl
with_selinux
with_systemd
with_readline
Expand All @@ -867,6 +865,8 @@ with_libxslt
with_system_tzdata
with_zlib
with_gnu_ld
with_ssl
with_openssl
enable_largefile
'
ac_precious_vars='build_alias
Expand Down Expand Up @@ -1557,7 +1557,6 @@ Optional Packages:
--with-bsd-auth build with BSD Authentication support
--with-ldap build with LDAP support
--with-bonjour build with Bonjour support
--with-openssl build with OpenSSL support
--with-selinux build with SELinux support
--with-systemd build with systemd support
--without-readline do not use GNU Readline nor BSD Libedit for editing
Expand All @@ -1571,6 +1570,8 @@ Optional Packages:
use system time zone data in DIR
--without-zlib do not use Zlib
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-ssl=LIB use LIB for SSL/TLS support (openssl)
--with-openssl obsolete spelling of --with-ssl=openssl

Some influential environment variables:
CC C compiler command
Expand Down Expand Up @@ -1676,7 +1677,7 @@ Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.

Copyright (c) 1996-2020, PostgreSQL Global Development Group
Copyright (c) 1996-2021, PostgreSQL Global Development Group
_ACEOF
exit
fi
Expand Down Expand Up @@ -8071,41 +8072,6 @@ fi
$as_echo "$with_bonjour" >&6; }


#
# OpenSSL
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
$as_echo_n "checking whether to build with OpenSSL support... " >&6; }



# Check whether --with-openssl was given.
if test "${with_openssl+set}" = set; then :
withval=$with_openssl;
case $withval in
yes)

$as_echo "#define USE_OPENSSL 1" >>confdefs.h

;;
no)
:
;;
*)
as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
;;
esac

else
with_openssl=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
$as_echo "$with_openssl" >&6; }


#
# SELinux
#
Expand Down Expand Up @@ -8303,30 +8269,26 @@ if test "$with_ossp_uuid" = yes ; then
with_uuid=ossp
fi

if test "$with_uuid" = bsd ; then
if test "$with_uuid" != no ; then
if test "$with_uuid" = bsd ; then

$as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h

UUID_EXTRA_OBJS="sha1.o"
elif test "$with_uuid" = e2fs ; then
elif test "$with_uuid" = e2fs ; then

$as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h

UUID_EXTRA_OBJS="sha1.o"
elif test "$with_uuid" = ossp ; then
elif test "$with_uuid" = ossp ; then

$as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h

UUID_EXTRA_OBJS=""
elif test "$with_uuid" = no ; then
UUID_EXTRA_OBJS=""
else
as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
else
as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
fi
fi




#
# XML
#
Expand Down Expand Up @@ -12179,7 +12141,64 @@ fi
fi
fi

#
# SSL Library
#
# There is currently only one supported SSL/TLS library: OpenSSL.
#



# Check whether --with-ssl was given.
if test "${with_ssl+set}" = set; then :
withval=$with_ssl;
case $withval in
yes)
as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
;;
no)
as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
;;
*)

;;
esac

fi


if test x"$with_ssl" = x"" ; then
with_ssl=no
fi



# Check whether --with-openssl was given.
if test "${with_openssl+set}" = set; then :
withval=$with_openssl;
case $withval in
yes)
:
;;
no)
:
;;
*)
as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
;;
esac

else
with_openssl=no

fi


if test "$with_openssl" = yes ; then
with_ssl=openssl
fi

if test "$with_ssl" = openssl ; then
# Minimum required OpenSSL version is 1.0.1

$as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
Expand Down Expand Up @@ -12440,8 +12459,14 @@ _ACEOF
fi
done


$as_echo "#define USE_OPENSSL 1" >>confdefs.h

elif test "$with_ssl" != no ; then
as_fn_error $? "--with-ssl must specify openssl" "$LINENO" 5
fi


if test "$with_pam" = yes ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
$as_echo_n "checking for pam_start in -lpam... " >&6; }
Expand Down Expand Up @@ -13061,7 +13086,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
fi


for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h wctype.h
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/uio.h sys/un.h termios.h ucred.h wctype.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Expand Down Expand Up @@ -13327,7 +13352,7 @@ done

fi

if test "$with_openssl" = yes ; then
if test "$with_ssl" = openssl ; then
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :

Expand Down Expand Up @@ -15155,7 +15180,7 @@ fi
LIBS_including_readline="$LIBS"
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`

for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale wcstombs_l
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale wcstombs_l writev
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Expand Down Expand Up @@ -15845,6 +15870,19 @@ esac

fi

ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
if test "x$ac_cv_func_preadv" = xyes; then :
$as_echo "#define HAVE_PREADV 1" >>confdefs.h

else
case " $LIBOBJS " in
*" preadv.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS preadv.$ac_objext"
;;
esac

fi

ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
if test "x$ac_cv_func_pwrite" = xyes; then :
$as_echo "#define HAVE_PWRITE 1" >>confdefs.h
Expand All @@ -15858,6 +15896,19 @@ esac

fi

ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev"
if test "x$ac_cv_func_pwritev" = xyes; then :
$as_echo "#define HAVE_PWRITEV 1" >>confdefs.h

else
case " $LIBOBJS " in
*" pwritev.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS pwritev.$ac_objext"
;;
esac

fi

ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
if test "x$ac_cv_func_random" = xyes; then :
$as_echo "#define HAVE_RANDOM 1" >>confdefs.h
Expand Down Expand Up @@ -15959,12 +16010,29 @@ case $host_os in
# Windows uses a specialised env handler
mingw*)

$as_echo "#define HAVE_SETENV 1" >>confdefs.h


$as_echo "#define HAVE_UNSETENV 1" >>confdefs.h

ac_cv_func_setenv=yes
ac_cv_func_unsetenv=yes
;;
*)
ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
if test "x$ac_cv_func_setenv" = xyes; then :
$as_echo "#define HAVE_SETENV 1" >>confdefs.h

else
case " $LIBOBJS " in
*" setenv.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS setenv.$ac_objext"
;;
esac

fi

ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
if test "x$ac_cv_func_unsetenv" = xyes; then :
$as_echo "#define HAVE_UNSETENV 1" >>confdefs.h

Expand Down Expand Up @@ -18060,7 +18128,7 @@ fi
# will be used.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
$as_echo_n "checking which random number source to use... " >&6; }
if test x"$with_openssl" = x"yes" ; then
if test x"$with_ssl" = x"openssl" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
$as_echo "OpenSSL" >&6; }
elif test x"$PORTNAME" = x"win32" ; then
Expand Down
Loading