Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
590 commits
Select commit Hold shift + click to select a range
8e5793a
Fix connection string handling in src/bin/scripts/ programs.
tglsfdc Oct 19, 2020
03d51b7
Change the attribute name in pg_stat_replication_slots view.
Oct 20, 2020
bbb927b
Fix ALTER TABLE .. ENABLE/DISABLE TRIGGER recursion
alvherre Oct 20, 2020
19ae53c
Review format of code generated by PerfectHash.pm
michaelpq Oct 21, 2020
8a58347
Fix -Wcast-function-type warnings on Windows/MinGW
petere Oct 21, 2020
555eb1a
Remove obsolete ifdefs
petere Oct 21, 2020
8a21211
Remove the option to build thread_test.c outside configure.
tglsfdc Oct 21, 2020
831611b
Use fast checkpoint in PostgresNode::backup()
alvherre Oct 21, 2020
85c5428
Fix connection string handling in psql's \connect command.
tglsfdc Oct 21, 2020
e7c2b95
Optimize a few list_delete_ptr calls
david-rowley Oct 22, 2020
f8721bd
Use croak instead of die in Perl code when appropriate
petere Oct 22, 2020
866e24d
Extend amcheck to check heap pages.
robertmhaas Oct 22, 2020
94929f1
Clean up some unpleasant behaviors in psql's \connect command.
tglsfdc Oct 22, 2020
8bb0c97
Try to avoid a compiler warning about using fxid uninitialized.
robertmhaas Oct 22, 2020
3dfb194
Avoid premature de-doubling of quote marks in ECPG strings.
tglsfdc Oct 22, 2020
c16a1bb
Add documentation and tests for quote marks in ECPG literal queries.
tglsfdc Oct 22, 2020
c5054da
Sync our copy of the timezone library with IANA release tzcode2020d.
tglsfdc Oct 23, 2020
7d6d6bc
Update time zone data files to tzdata release 2020d.
tglsfdc Oct 23, 2020
783f0cc
Improve performance of Unicode {de,re}composition in the backend
michaelpq Oct 23, 2020
22b73d3
Fix initialization of es_result_relations in EvalPlanQualStart().
hlinnaka Oct 23, 2020
902b57c
doc: Remove reference to pre-8.2 pg_dump behaviour
hlinnaka Oct 23, 2020
83d727e
doc: Fix order of protocol messages in listing
petere Oct 23, 2020
87a174c
Fix broken XML formatting in EXPLAIN output for incremental sorts.
tglsfdc Oct 23, 2020
860593e
Fix portability issues in new amcheck test.
tglsfdc Oct 23, 2020
1b62d0f
Allow psql to re-use connection parameters after a connection loss.
tglsfdc Oct 23, 2020
321633e
Fix more portability issues in new amcheck code.
tglsfdc Oct 23, 2020
0b46e82
Add tab completion for ALTER TABLE .. FORCE ROW LEVEL SECURITY in psql
michaelpq Oct 24, 2020
2771fce
Fix issue with --enable-coverage and the new unicode {de,re}compositi…
michaelpq Oct 24, 2020
21d3674
Fix ancient bug in ecpg's pthread_once() emulation for Windows.
tglsfdc Oct 24, 2020
e83c9f9
Fix incorrect parameter name in a function header comment
david-rowley Oct 25, 2020
ba9f18a
Fix corner case for a BEFORE ROW UPDATE trigger returning OLD.
tglsfdc Oct 25, 2020
d401c57
Extend PageIsVerified() to handle more custom options
michaelpq Oct 26, 2020
fa42c2e
docs: Remove notes about incompatibilies with very old versions.
hlinnaka Oct 26, 2020
20d3fe9
In INSERT/UPDATE, use the table's real tuple descriptor as target.
tglsfdc Oct 26, 2020
e9661f2
doc: make blooms docs match reality
bmomjian Oct 26, 2020
2f17fe4
doc: simplify wording of function error affects
bmomjian Oct 27, 2020
2f0760c
Update description of spilled counters in pg_stat_replication_slots v…
Oct 27, 2020
8fed2ea
doc: Fix order of protocol messages in listing
petere Oct 27, 2020
9213462
Make procedure OUT parameters work with JDBC
petere Oct 27, 2020
0525572
Fix enum errdetail to mention bytes, not chars
petere Oct 27, 2020
4066b64
docs: remove reference to src/tools/thread
bmomjian Oct 27, 2020
59ab4ac
Accept relations of any kind in LOCK TABLE
alvherre Oct 27, 2020
f893e68
Add select_common_typmod()
petere Oct 27, 2020
403a3d9
pg_dump: Lock all relations, not just plain tables
alvherre Oct 27, 2020
8e5d1ae
Makefile comment: remove reference to tools/thread/thread_test
bmomjian Oct 27, 2020
8d132b2
Doc: improve explanation of how to use our code coverage infrastructure.
tglsfdc Oct 27, 2020
9e0f87a
Minor improvements in description of spilled counters in pg_stat_repl…
Oct 28, 2020
c780a7a
Add CheckBuffer() to check on-disk pages without shared buffer loading
michaelpq Oct 28, 2020
f2b8839
Add pg_relation_check_pages() to check on-disk pages of a relation
michaelpq Oct 28, 2020
ce7f772
Use correct GetDatum() in pg_relation_check_pages()
michaelpq Oct 28, 2020
ad1c36b
Fix foreign-key selectivity estimation in the presence of constants.
tglsfdc Oct 28, 2020
36b9312
Don't use custom OID symbols in pg_proc.dat.
tglsfdc Oct 28, 2020
ad77039
Calculate extraUpdatedCols in query rewriter, not parser.
tglsfdc Oct 28, 2020
66f8687
Use mode "r" for popen() in psql's evaluate_backtick().
tglsfdc Oct 28, 2020
4c49d8f
Doc: clean up verify_heapam() documentation.
tglsfdc Oct 28, 2020
b787d4c
Doc: clean up pg_relation_check_pages() documentation.
tglsfdc Oct 28, 2020
60a51c6
Fix incorrect placement of pfree() in pg_relation_check_pages()
michaelpq Oct 29, 2020
94bc27b
Centralize horizon determination for temp tables, fixing bug due to s…
anarazel Oct 29, 2020
8e90ec5
Track statistics for streaming of changes from ReorderBuffer.
Oct 29, 2020
1c7675a
Fix wrong data table horizon computation during backend startup.
anarazel Oct 29, 2020
f90149e
Don't use custom OID symbols in pg_type.dat, either.
tglsfdc Oct 29, 2020
4a071af
Stabilize timetz test across DST transitions.
tglsfdc Oct 29, 2020
b401fa2
Doc: clarify description for pg_constraint.convalidated.
tglsfdc Oct 30, 2020
6f0bc5e
Fix missing validation for the new GiST sortsupport functions.
hlinnaka Oct 30, 2020
970c050
Fix assertion failure in check_new_partition_bound().
tglsfdc Oct 30, 2020
f90e80b
Reproduce debug_query_string==NULL on parallel workers.
nmisch Oct 31, 2020
d2246cd
Set debug_query_string in worker_spi.
nmisch Oct 31, 2020
aecaa04
Add error code for encryption failure in pgcrypto
michaelpq Nov 1, 2020
b17ff07
Preserve index data in pg_statistic across REINDEX CONCURRENTLY
michaelpq Nov 1, 2020
7f42350
Avoid null pointer dereference if error result lacks SQLSTATE.
tglsfdc Nov 1, 2020
dfc7977
Fix two issues in TOAST decompression.
tglsfdc Nov 1, 2020
a929e17
Allow run-time pruning on nested Append/MergeAppend nodes
david-rowley Nov 2, 2020
644f0d7
Use Enum for top level logical replication message types.
Nov 2, 2020
8a15e73
Fix some grammar and typos in comments and docs
michaelpq Nov 2, 2020
90d8f1b
Fix unstable partition_prune regression tests
david-rowley Nov 2, 2020
8ef2a5a
doc: Mention UNION/ORDER BY etc. keywords in section headers.
hlinnaka Nov 2, 2020
7d1297d
Remove pg_collation.collversion.
macdice Nov 2, 2020
cd6f479
Add pg_depend.refobjversion.
macdice Nov 2, 2020
257836a
Track collation versions for indexes.
macdice Nov 2, 2020
5b3dca0
Clarify temporary table name shadowing in CREATE TABLE docs
mhagander Nov 2, 2020
dd26a0a
Use PG_GETARG_TRANSACTIONID where appropriate
petere Nov 2, 2020
fd29975
Second thoughts on TOAST decompression.
tglsfdc Nov 2, 2020
8e1f37c
Rethink the generation rule for fmgroids.h macros.
tglsfdc Nov 2, 2020
e1339bf
Remove special checks for pg_rewrite.ev_qual and ev_action being NULL.
tglsfdc Nov 2, 2020
0a4b340
Fix unportable use of getnameinfo() in pg_hba_file_rules view.
tglsfdc Nov 3, 2020
8c2d8f6
Fix typos.
Nov 3, 2020
3165426
Remove use of deprecated containment operators in tests
petere Nov 3, 2020
5d1833f
Use be_tls_* API for SSL information in sslinfo
mhagander Nov 3, 2020
13cfa02
Improve error handling in backend OpenSSL implementation
mhagander Nov 3, 2020
44a184c
Use the non-deprecated TG_TABLE_MAME in test trigger
mhagander Nov 3, 2020
2f70fdb
Remove deprecated containment operators for built-in types
petere Nov 3, 2020
bf797a8
Disallow ALTER TABLE ONLY / DROP EXPRESSION
petere Nov 3, 2020
d907bd0
Allow users with BYPASSRLS to alter their own passwords.
tglsfdc Nov 3, 2020
17fb603
Improve error messages around REPLICATION and BYPASSRLS properties.
tglsfdc Nov 3, 2020
92f8718
Guard against core dump from uninitialized subplan.
tglsfdc Nov 3, 2020
ebb7ae8
Fix get_useful_pathkeys_for_relation for volatile expressions
tvondra Nov 3, 2020
90851d1
Use INT64_FORMAT to print int64 variables in sort debug
tvondra Nov 3, 2020
e152506
Revert pg_relation_check_pages()
michaelpq Nov 4, 2020
9f12a3b
Tolerate version lookup failure for old style Windows locale names.
macdice Nov 4, 2020
02d3322
Use standard SIGHUP handler in syslogger.
MasaoFujii Nov 4, 2020
ac22929
Get rid of the dedicated latch for signaling the startup process.
MasaoFujii Nov 4, 2020
ffb4e27
pg_rewind: Move syncTargetDirectory() to file_ops.c
hlinnaka Nov 4, 2020
eb00f1d
Refactor pg_rewind for more clear decision making.
hlinnaka Nov 4, 2020
f81e97d
pg_rewind: Replace the hybrid list+array data structure with simplehash.
hlinnaka Nov 4, 2020
7de7023
Merge commit 'f81e97d0475cd4bc597adc23b665bd84fbf79a0d' into sync-14x…
RekGRpth May 21, 2026
41f5985
Fix conflicts in src/include/nodes/parsenodes.h (#2547)
silent-observer May 21, 2026
1e4e90d
Fix conflicts in src/include/nodes/pathnodes.h (#2548)
silent-observer May 21, 2026
195fa0e
Resolve conflicts in src/Makefile (#2552)
RekGRpth May 21, 2026
adc9ab9
Resolve conflicts in src/backend/storage/sync/sync.c and sync.h (#2553)
silent-observer May 21, 2026
57131fd
Resolve conflicts in src/include/storage/ipc.h (#2551)
silent-observer May 21, 2026
0420d8b
Resolve conflicts in src/include/parser/parse_coerce.h (#2550)
silent-observer May 21, 2026
e1301bc
Resolve conflicts src/include/utils/logtape.h (#2554)
silent-observer May 21, 2026
b6425ed
Resolve conflicts in src/include/port.h (#2555)
RekGRpth May 21, 2026
7fefbf4
Resolve conflicts in src/include/executor/executor.h (#2556)
silent-observer May 21, 2026
e17f2b9
Resolve conflicts in src/include/catalog/catversion.h (#2559)
RekGRpth May 21, 2026
c46cb94
Resolve conflicts in table.h and index.c (#2557)
RekGRpth May 21, 2026
8325978
Resolve conflicts in src/include/catalog/index.h (#2560)
RekGRpth May 21, 2026
0795e20
Resolve conflicts in src/include/common/string.h (#2558)
silent-observer May 21, 2026
1542846
Resolve conflicts in src/backend/catalog/pg_type.c (#2565)
silent-observer May 22, 2026
cd2786a
Resolve conflicts in src/backend/catalog/system_views.sql (#2566)
RekGRpth May 22, 2026
13f5e04
Resolve conflicts in src/backend/commands/copy.c (#2567)
RekGRpth May 22, 2026
8268c0b
Resolve conflicts in src/backend/commands/explain.c (#2568)
RekGRpth May 22, 2026
6477b96
Resolve conflicts in src/backend/commands/functioncmds.c (#2569)
RekGRpth May 22, 2026
a9ad2dc
Resolve conflicts in src/backend/commands/lockcmds.c (#2570)
RekGRpth May 22, 2026
be99ce6
Resolve conflicts in src/backend/nodes/equalfuncs.c (#2574)
RekGRpth May 22, 2026
2924b6f
Resolve conflicts in src/backend/optimizer/path/costsize.c (#2575)
RekGRpth May 25, 2026
c32f9ba
Resolve conflicts in src/backend/partitioning/partprune.c (#2583)
RekGRpth May 25, 2026
28c6366
Resolve conflicts in src/backend/postmaster/bgwriter.c (#2584)
RekGRpth May 25, 2026
34030d1
Resolve conflicts in src/backend/storage/ipc/procarray.c (#2588)
RekGRpth May 26, 2026
9b66b65
Resolve conflicts in dbsize.c and numeric.c (#2589)
RekGRpth May 26, 2026
568c2fd
Resolve conflicts in src/backend/utils/adt/pg_locale.c (#2590)
RekGRpth May 26, 2026
f57cef9
Resolve conflicts in src/backend/utils/error/assert.c (#2591)
RekGRpth May 26, 2026
36b8833
Resolve conflicts in src/backend/utils/init/miscinit.c (#2592)
RekGRpth May 26, 2026
0ae88d1
Resolve conflicts in src/bin/pg_dump/common.c (#2593)
RekGRpth May 26, 2026
0636ceb
Resolve conflicts in src/bin/pg_dump/dumputils.h (#2594)
RekGRpth May 26, 2026
644a3b6
Resolve conflicts in src/include/catalog/pg_type.h (#2563)
silent-observer May 27, 2026
a9e7e9c
Resolve conflicts in src/bin/pg_rewind/copy_fetch.c (#2599)
RekGRpth May 27, 2026
9fab257
Resolve conflicts in src/bin/pg_upgrade/check.c (#2601)
RekGRpth May 27, 2026
336d080
Resolve conflicts in src/bin/pg_upgrade/dump.c (#2602)
RekGRpth May 27, 2026
2926319
Resolve conflicts in src/bin/pg_upgrade/option.c (#2603)
RekGRpth May 27, 2026
6d78b26
Resolve conflicts in src/bin/pg_upgrade/relfilenode.c (#2604)
RekGRpth May 27, 2026
db3786e
Resolve conflicts in src/bin/pgbench/pgbench.c (#2605)
RekGRpth May 27, 2026
42cfcf0
Resolve conflicts in src/backend/access/transam/multixact.c and xlog.…
silent-observer May 28, 2026
9424fae
Resolve conflicts in src/backend/commands/tablecmds.c (#2571)
RekGRpth May 28, 2026
4212fa8
Resolve conflicts in src/backend/executor/execMain.c (#2572)
RekGRpth May 28, 2026
d3c83e1
Resolve conflicts in defrem.h, parsenodes.h, indexcmds.c, utility.c (…
silent-observer May 28, 2026
eb13664
Resolve conflicts in src/backend/optimizer/plan/planner.c (#2576)
RekGRpth May 28, 2026
4b0a2bb
Resolve conflicts in src/common/pg_get_line.c (#2607)
RekGRpth May 28, 2026
c36a4ca
Resolve conflicts in src/pl/plpgsql/src/pl_comp.c (#2608)
RekGRpth May 28, 2026
2cb064c
Resolve conflicts in src/port/dirmod.c (#2609)
RekGRpth May 28, 2026
f28eddf
Resolve conflicts in src/backend/optimizer/plan/subselect.c (#2579)
RekGRpth May 28, 2026
e7dd954
Fix compilation of pg_proc.h, transform.c, and cdbmutate.c (#2616)
RekGRpth May 28, 2026
964f121
Resolve conflicts in src/backend/parser/analyze.c (#2580)
RekGRpth May 28, 2026
3658dff
Fix compilation of src/backend/optimizer/path/costsize.c (#2613)
RekGRpth May 28, 2026
dd5f5b3
Fix compilation of src/include/optimizer/cost.h (#2614)
RekGRpth May 28, 2026
56d0aa4
Fix compilation of src/interfaces/libpq/fe-connect.c (#2615)
RekGRpth May 28, 2026
95b408e
Resolve conflicts in src/backend/optimizer/plan/setrefs.c (#2577)
RekGRpth May 28, 2026
b44df3d
Resolve conflicts in src/bin/psql/describe.c (#2606)
RekGRpth May 29, 2026
8f79887
Resolve conflicts in src/backend/executor/nodeModifyTable.c (#2573)
RekGRpth May 29, 2026
7b89d86
Resolve conflicts in src/backend/parser/parse_utilcmd.c (#2582)
RekGRpth May 29, 2026
0fad933
Resolve conflicts in src/backend/parser/gram.y (#2581)
RekGRpth May 29, 2026
f58ea4f
Fix compilation of src/backend/utils/error/assert.c (#2618)
RekGRpth May 29, 2026
047aa36
Fix compilation of src/backend/commands/indexcmds.c (#2619)
RekGRpth May 29, 2026
8c4a73d
Fix compilation of analyzefuncs.c and cdbmutate.c (#2621)
RekGRpth May 29, 2026
dcbb508
Resolve conflicts in src/backend/postmaster/pgstat.c (#2585)
RekGRpth May 29, 2026
9fa92d1
Fix compilation of src/backend/utils/sort/tuplestore.c (#2623)
RekGRpth May 29, 2026
c97c117
Fix compilation of src/backend/access/transam/distributedlog.c (#2624)
RekGRpth May 29, 2026
640451e
Fix compilation of src/backend/commands/tablecmds.c (#2625)
RekGRpth May 29, 2026
cae4111
Fix compilation of gpdbwrappers, COptTasks, CTranslatorRelcacheToDXL …
RekGRpth May 29, 2026
1892252
Fix compilation of src/backend/gpopt/translate/CTranslatorDXLToPlStmt…
RekGRpth May 29, 2026
698e01e
Resolve conflicts in src/backend/replication/syncrep.c (#2586)
RekGRpth May 29, 2026
4e77b1b
Resolve conflicts in src/backend/storage/file/buffile.c (#2587)
RekGRpth May 29, 2026
9d5567d
Fix OID compilation (#2610)
RekGRpth May 29, 2026
a982d2d
Resolve conflicts in src/include/parser/kwlist.h (#2549)
silent-observer May 29, 2026
8bddffa
Resolve conflicts in src/backend/tcop/utility.c (#2562)
silent-observer May 29, 2026
abea3f4
Fix compilation of src/bin/pgbench/pgbench.c (#2632)
RekGRpth May 29, 2026
a5085e2
Resolve conflicts in src/test/Makefile (#2628)
silent-observer May 29, 2026
b57fc9a
Resolve conflicts in src/test/isolation/Makefile (#2629)
silent-observer May 29, 2026
0cc755f
Resolve conflicts in src/test/regress/pg_regress.c (#2630)
silent-observer May 29, 2026
57f21bd
Resolve conflicts in pg_backup.h, pg_backup_db.c, and pg_backup_archi…
RekGRpth Jun 1, 2026
690c530
Fix NULL pointer free in src/backend/cdb/cdbllize.c (#2633)
silent-observer Jun 1, 2026
e03e1e1
Resolve conflicts in src/bin/pg_dump/pg_dump.c (#2596)
RekGRpth Jun 1, 2026
4dde9bc
Resolve conflicts in src/bin/pg_rewind/filemap.h (#2597)
RekGRpth Jun 1, 2026
5349515
Resolve conflicts in file_ops.c and pg_rewind.c (#2600)
RekGRpth Jun 1, 2026
dfc0ebb
Resolve conflicts in src/bin/pg_rewind/filemap.c (#2598)
RekGRpth Jun 1, 2026
81c0764
Fix compilation of src/backend/replication/logical/worker.c (#2617)
RekGRpth Jun 1, 2026
2e12c35
Fix compilation of aocs_compaction.c and appendonly_compaction.c (#2620)
RekGRpth Jun 1, 2026
4a15757
Fix compilation of src/backend/executor/nodeModifyTable.c (#2622)
RekGRpth Jun 1, 2026
8051f27
Resolve conflicts is src/test/regress/sql/timestamp.sql (#2636)
silent-observer Jun 2, 2026
2bd01ef
Fix segfault in src/backend/executor/nodeModifyTable.c (#2635)
silent-observer Jun 2, 2026
3c32e47
Resolve conflicts in src/test/regress/expected/create_index.out (#2638)
silent-observer Jun 3, 2026
315148f
Resolve conflicts in src/test/regress/expected/opr_sanity.out (#2637)
silent-observer Jun 3, 2026
dacd75d
Fix OID dispatching during index inheritance. (#2639)
RekGRpth Jun 3, 2026
87bda53
Resolve conflicts in src/test/regress/expected/indexing.out (#2649)
RekGRpth Jun 4, 2026
b310a10
Fix remaining PG14 unit-test failures; document unit-test phase
dimoffon May 29, 2026
1fa2188
Resolve conflicts in src/test/isolation/isolation_schedule (#2643)
RekGRpth Jun 4, 2026
c8f66b7
Resolve conflicts in src/interfaces/ecpg/test/pg_regress_ecpg.c (#2642)
RekGRpth Jun 4, 2026
80d9e51
Fix conflict in errors.sql (#2654)
bimboterminator1 Jun 5, 2026
649b530
Resolve conflicts in src/test/perl/PostgresNode.pm (#2647)
RekGRpth Jun 5, 2026
40af75e
Resolve conflicts in insert_conflict.out and updatable_views.out (#2650)
RekGRpth Jun 5, 2026
d82ba72
Resolve conflicts in src/test/regress/expected/explain.out (#2648)
RekGRpth Jun 5, 2026
ffead73
Fix test src/test/regress/expected/gin.out (#2655)
silent-observer Jun 5, 2026
1536691
Fix conflicts in create_table_like.sql (#2641)
bimboterminator1 Jun 5, 2026
4b30ae1
Reinstate HEAP_XMAX_LOCK_ONLY|HEAP_KEYS_UPDATED as allowed
alvherre Feb 23, 2021
68a2572
Fix tests src/test/regress/expected/query_finish_pending.out (#2653)
RekGRpth Jun 5, 2026
9343e7a
Resolve conflicts in src/test/regress/expected/create_am.out (#2646)
silent-observer Jun 8, 2026
602ab3e
Fix test src/test/regress/expected/inherit_optimizer.out (#2644)
silent-observer Jun 8, 2026
28ca034
Resolve conflicts in src/test/regress/sql/triggers.sql (#2645)
silent-observer Jun 8, 2026
c6bcf1a
Fix tests in src/test/regress/expected/limit_optimizer.out (#2661)
RekGRpth Jun 8, 2026
d393e83
Fix tests in src/test/regress/expected/select_parallel_optimizer.out …
RekGRpth Jun 8, 2026
e415f82
Fix tests in src/pl/plperl/expected/plperl_call.out (#2665)
RekGRpth Jun 8, 2026
b052523
Fix tests after reltuples changes (#2666)
RekGRpth Jun 9, 2026
0addba8
Fix test src/test/regress/expected/psql.out (#2668)
silent-observer Jun 9, 2026
f9d681a
Fix test src/test/regress/expected/subscription.out (#2669)
silent-observer Jun 9, 2026
77006d6
Fix test src/test/regress/expected/window.out (#2670)
silent-observer Jun 9, 2026
56176b6
Fix test src/test/regress/expected/rangefuncs.out (#2671)
silent-observer Jun 9, 2026
961d68a
Fix assert with unregistered callback (#2651)
RekGRpth Jun 9, 2026
2ab0c1a
Fix test src/test/regress/expected/join.out (#2667)
silent-observer Jun 9, 2026
6ae9c67
Fix tests in src/test/regress/expected/partition_prune.out (#2672)
RekGRpth Jun 9, 2026
247b463
Fix detected write past chunk end warning (#2660)
RekGRpth Jun 9, 2026
9057792
Fix test src/test/regress/expected/eagerfree.out (#2677)
silent-observer Jun 9, 2026
c132683
Resolve conflicts in the test_extensions (#2656)
KnightMurloc Jun 10, 2026
0f3697a
Fix optimizer output for expressions test (#2657)
KnightMurloc Jun 10, 2026
17091af
Fix test src/test/regress/expected/qp_misc_rio.out (#2683)
silent-observer Jun 11, 2026
d82f7f5
Fix errors test (#2684)
KnightMurloc Jun 11, 2026
1cb4c2c
Fix generated test for optimizer (#2685)
KnightMurloc Jun 11, 2026
7515e8e
Fix test src/test/regress/output/external_table.source (#2675)
silent-observer Jun 11, 2026
94f6b5d
Fix ORCA statistics handling in src/backend/optimizer/util/plancat.c …
silent-observer Jun 11, 2026
353d3ec
Fix stats_ext test output for optimizer (#2687)
KnightMurloc Jun 11, 2026
dd01eac
Fix tests in src/test/regress/expected/subselect_gp.out (#2682)
RekGRpth Jun 11, 2026
6fa4e91
Fix tests in update_gp.out, qp_misc.out and qp_subquery.out (#2681)
RekGRpth Jun 11, 2026
1a770a9
Fix tests in src/test/isolation2/expected/ao_upgrade.out (#2678)
RekGRpth Jun 11, 2026
6b17446
Fix tests in isolation2 lockmodes.out and regress partition_locking.o…
RekGRpth Jun 11, 2026
e7298df
Fix tests in src/test/regress/expected/groupingsets.out (#2662)
RekGRpth Jun 11, 2026
aaa224b
Fix test src/test/regress/expected/incremental_analyze.out (#2679)
silent-observer Jun 11, 2026
44af126
Fix tests in src/test/regress/expected/index_constraint_naming_partit…
RekGRpth Jun 11, 2026
c8b469e
Fix tests in partition.out, partition1.out and partition_indexing.out…
RekGRpth Jun 11, 2026
35c6444
Fix distributed clog fsync (#2695)
KnightMurloc Jun 15, 2026
7ecfd96
Resolve conflicts in doc/src/sgml/ref/select.sgml and select_into.sgm…
silent-observer Jun 15, 2026
d580a89
Fix test src/test/regress/expected/gporca.out (#2691)
silent-observer Jun 15, 2026
4f6acd6
Fix synchronous replication on the coordinator (#2699)
KnightMurloc Jun 18, 2026
e5518b4
Fix test src/test/recovery/t/021_row_visibility.pl (#2700)
silent-observer Jun 18, 2026
0839c32
Fix "cannot execute squelched plan node of type" error.
wuyuhao28 Jun 2, 2023
38ad134
Fix "gpcheckcat should report and repair extra entries with non-oid p…
KnightMurloc Jun 19, 2026
7822129
Fix test src/bin/pg_dump/t/002_pg_dump.pl (#2696)
silent-observer Jun 19, 2026
288f04b
Fix compilation of src/backend/parser/parse_utilcmd.c (#2631)
RekGRpth Jun 19, 2026
4d2edf8
Fix sslinfo test output (#2659)
bimboterminator1 Jun 19, 2026
1e1a7a3
Fix table_functions test output (#2688)
KnightMurloc Jun 19, 2026
1a96bdf
Fix pg_upgrade collation version restore (#2704)
KnightMurloc Jun 19, 2026
6e17270
Fix test src/test/isolation2/input/resgroup/resgroup_cpuset.source (#…
silent-observer Jun 19, 2026
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
  •  
  •  
  •  
32 changes: 5 additions & 27 deletions src/test/thread/thread_test.c → config/thread_test.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* thread_test.c
* libc thread test program
* libc threading test program
*
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/test/thread/thread_test.c
* config/thread_test.c
*
* This program tests to see if your standard libc functions use
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
Expand All @@ -20,12 +20,7 @@
*-------------------------------------------------------------------------
*/

#if !defined(IN_CONFIGURE) && !defined(WIN32)
#include "postgres.h"

/* we want to know what the native strerror does, not pg_strerror */
#undef strerror
#endif
/* We cannot use c.h, as port.h will not exist yet */

#include <stdio.h>
#include <stdlib.h>
Expand All @@ -36,6 +31,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <pthread.h>

/* CYGWIN requires this for MAXHOSTNAMELEN */
#ifdef __CYGWIN__
Expand All @@ -47,25 +43,11 @@
#include <winsock2.h>
#endif


/* Test for POSIX.1c 2-arg sigwait() and fail on single-arg version */
#include <signal.h>
int sigwait(const sigset_t *set, int *sig);


#if !defined(ENABLE_THREAD_SAFETY) && !defined(IN_CONFIGURE) && !defined(WIN32)
int
main(int argc, char *argv[])
{
fprintf(stderr, "This PostgreSQL build does not support threads.\n");
fprintf(stderr, "Perhaps rerun 'configure' using '--enable-thread-safety'.\n");
return 1;
}
#else

/* This must be down here because this is the code that uses threads. */
#include <pthread.h>

#define TEMP_FILENAME_1 "thread_test.1"
#define TEMP_FILENAME_2 "thread_test.2"

Expand Down Expand Up @@ -119,14 +101,12 @@ main(int argc, char *argv[])
return 1;
}

#ifdef IN_CONFIGURE
/* Send stdout to 'config.log' */
close(1);
dup(5);
#endif

#ifdef WIN32
err = WSAStartup(MAKEWORD(1, 1), &wsaData);
err = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (err != 0)
{
fprintf(stderr, "Cannot start the network subsystem - %d**\nexiting\n", err);
Expand Down Expand Up @@ -455,5 +435,3 @@ func_call_2(void)
pthread_mutex_lock(&init_mutex); /* wait for parent to test */
pthread_mutex_unlock(&init_mutex);
}

#endif /* !ENABLE_THREAD_SAFETY && !IN_CONFIGURE */
49 changes: 29 additions & 20 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,8 @@ CPP
CFLAGS_SL
BITCODE_CXXFLAGS
BITCODE_CFLAGS
CFLAGS_VECTOR
CFLAGS_VECTORIZE
CFLAGS_UNROLL_LOOPS
PERMIT_DECLARATION_AFTER_STATEMENT
LLVM_BINPATH
LLVM_CXXFLAGS
Expand Down Expand Up @@ -5432,9 +5433,12 @@ BITCODE_CFLAGS=""
user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
BITCODE_CXXFLAGS=""

# set CFLAGS_VECTOR from the environment, if available
if test "$ac_env_CFLAGS_VECTOR_set" = set; then
CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
# set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
CFLAGS_UNROLL_LOOPS=$ac_env_CFLAGS_UNROLL_LOOPS_value
fi
if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
CFLAGS_VECTORIZE=$ac_env_CFLAGS_VECTORIZE_value
fi

# Some versions of GCC support some additional useful warning flags.
Expand Down Expand Up @@ -6367,16 +6371,16 @@ if test x"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x"yes"; then
fi


# Optimization flags for specific files that benefit from vectorization
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
$as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
# Optimization flags for specific files that benefit from loop unrolling
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS" >&5
$as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... " >&6; }
if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false; then :
$as_echo_n "(cached) " >&6
else
pgac_save_CFLAGS=$CFLAGS
pgac_save_CC=$CC
CC=${CC}
CFLAGS="${CFLAGS_VECTOR} -funroll-loops"
CFLAGS="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Expand All @@ -6403,19 +6407,20 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
$as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
if test x"$pgac_cv_prog_CC_cflags__funroll_loops" = x"yes"; then
CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
CFLAGS_UNROLL_LOOPS="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
$as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
# Optimization flags for specific files that benefit from vectorization
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
$as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false; then :
$as_echo_n "(cached) " >&6
else
pgac_save_CFLAGS=$CFLAGS
pgac_save_CC=$CC
CC=${CC}
CFLAGS="${CFLAGS_VECTOR} -ftree-vectorize"
CFLAGS="${CFLAGS_VECTORIZE} -ftree-vectorize"
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Expand All @@ -6442,7 +6447,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
$as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
if test x"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x"yes"; then
CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
CFLAGS_VECTORIZE="${CFLAGS_VECTORIZE} -ftree-vectorize"
fi


Expand Down Expand Up @@ -7105,6 +7110,7 @@ fi




# Determine flags used to emit bitcode for JIT inlining. Need to test
# for behaviour changing compiler flags, to keep compatibility with
# compiler used for normal postgres code.
Expand Down Expand Up @@ -18437,6 +18443,12 @@ esac
;;
esac

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


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

Expand Down Expand Up @@ -21533,23 +21545,21 @@ $as_echo_n "checking thread safety of required library functions... " >&6; }

_CFLAGS="$CFLAGS"
_LIBS="$LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LIBS="$LIBS $PTHREAD_LIBS"
if test "$cross_compiling" = yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
$as_echo "maybe" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
*** Skipping thread test program because of cross-compile build.
*** Run the program in src/test/thread on the target machine.
" >&5
$as_echo "$as_me: WARNING:
*** Skipping thread test program because of cross-compile build.
*** Run the program in src/test/thread on the target machine.
" >&2;}
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/src/test/thread/thread_test.c"
#include "$srcdir/config/thread_test.c"
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Expand All @@ -21558,9 +21568,8 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
as_fn_error $? "thread test program failed
This platform is not thread-safe. Check the file 'config.log' or compile
and run src/test/thread/thread_test for the exact reason.
Use --disable-thread-safety to disable thread safety." "$LINENO" 5
This platform is not thread-safe. Check the file 'config.log' for the
exact reason, or use --disable-thread-safety to disable thread safety." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
Expand Down
28 changes: 16 additions & 12 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,12 @@ BITCODE_CFLAGS=""
user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
BITCODE_CXXFLAGS=""

# set CFLAGS_VECTOR from the environment, if available
if test "$ac_env_CFLAGS_VECTOR_set" = set; then
CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
# set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
CFLAGS_UNROLL_LOOPS=$ac_env_CFLAGS_UNROLL_LOOPS_value
fi
if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
CFLAGS_VECTORIZE=$ac_env_CFLAGS_VECTORIZE_value
fi

# Some versions of GCC support some additional useful warning flags.
Expand Down Expand Up @@ -568,9 +571,10 @@ if test "$GCC" = yes -a "$ICC" = no; then
# implicit-fallthrough level 3 (GCC's default).
PGAC_PROG_CC_CFLAGS_OPT([-Werror=implicit-fallthrough=3])
PGAC_PROG_CXX_CFLAGS_OPT([-fexcess-precision=standard])
# Optimization flags for specific files that benefit from loop unrolling
PGAC_PROG_CC_VAR_OPT(CFLAGS_UNROLL_LOOPS, [-funroll-loops])
# Optimization flags for specific files that benefit from vectorization
PGAC_PROG_CC_VAR_OPT(CFLAGS_VECTOR, [-funroll-loops])
PGAC_PROG_CC_VAR_OPT(CFLAGS_VECTOR, [-ftree-vectorize])
PGAC_PROG_CC_VAR_OPT(CFLAGS_VECTORIZE, [-ftree-vectorize])
# We want to suppress clang's unhelpful unused-command-line-argument warnings
# but gcc won't complain about unrecognized -Wno-foo switches, so we have to
# test for the positive form and if that works, add the negative form
Expand Down Expand Up @@ -623,7 +627,8 @@ elif test "$PORTNAME" = "hpux"; then
PGAC_PROG_CXX_CFLAGS_OPT([+Olibmerrno])
fi

AC_SUBST(CFLAGS_VECTOR)
AC_SUBST(CFLAGS_UNROLL_LOOPS)
AC_SUBST(CFLAGS_VECTORIZE)

# Determine flags used to emit bitcode for JIT inlining. Need to test
# for behaviour changing compiler flags, to keep compatibility with
Expand Down Expand Up @@ -2166,6 +2171,7 @@ if test "$PORTNAME" = "win32"; then
AC_LIBOBJ(win32error)
AC_LIBOBJ(win32security)
AC_LIBOBJ(win32setlocale)
AC_LIBOBJ(win32stat)
AC_DEFINE([HAVE_SYMLINK], 1,
[Define to 1 if you have the `symlink' function.])
AC_CHECK_TYPES(MINIDUMP_TYPE, [pgac_minidump_type=yes], [pgac_minidump_type=no], [
Expand Down Expand Up @@ -2681,20 +2687,18 @@ AC_MSG_CHECKING([thread safety of required library functions])

_CFLAGS="$CFLAGS"
_LIBS="$LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LIBS="$LIBS $PTHREAD_LIBS"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[#include "$srcdir/src/test/thread/thread_test.c"]])],
[AC_LANG_SOURCE([[#include "$srcdir/config/thread_test.c"]])],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_ERROR([thread test program failed
This platform is not thread-safe. Check the file 'config.log' or compile
and run src/test/thread/thread_test for the exact reason.
Use --disable-thread-safety to disable thread safety.])],
This platform is not thread-safe. Check the file 'config.log' for the
exact reason, or use --disable-thread-safety to disable thread safety.])],
[AC_MSG_RESULT(maybe)
AC_MSG_WARN([
*** Skipping thread test program because of cross-compile build.
*** Run the program in src/test/thread on the target machine.
])])
CFLAGS="$_CFLAGS"
LIBS="$_LIBS"
Expand Down
2 changes: 2 additions & 0 deletions contrib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ SUBDIRS = \
isn \
ltree \
oid2name \
old_snapshot \
pageinspect \
passwordcheck \
pg_buffercache \
pg_freespacemap \
pg_prewarm \
pg_standby \
pg_stat_statements \
pg_surgery \
pg_trgm \
pgcrypto \
pgrowlocks \
Expand Down
7 changes: 5 additions & 2 deletions contrib/amcheck/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
MODULE_big = amcheck
OBJS = \
$(WIN32RES) \
verify_heapam.o \
verify_nbtree.o

EXTENSION = amcheck
DATA = amcheck--1.1--1.2.sql amcheck--1.0--1.1.sql amcheck--1.0.sql
DATA = amcheck--1.2--1.3.sql amcheck--1.1--1.2.sql amcheck--1.0--1.1.sql amcheck--1.0.sql
PGFILEDESC = "amcheck - function for verifying relation integrity"

REGRESS = check check_btree
REGRESS = check check_btree check_heap

TAP_TESTS = 1

ifdef USE_PGXS
PG_CONFIG = pg_config
Expand Down
30 changes: 30 additions & 0 deletions contrib/amcheck/amcheck--1.2--1.3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* contrib/amcheck/amcheck--1.2--1.3.sql */

-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION amcheck UPDATE TO '1.3'" to load this file. \quit

--
-- verify_heapam()
--
CREATE FUNCTION verify_heapam(relation regclass,
on_error_stop boolean default false,
check_toast boolean default false,
skip text default 'none',
startblock bigint default null,
endblock bigint default null,
blkno OUT bigint,
offnum OUT integer,
attnum OUT integer,
msg OUT text)
RETURNS SETOF record
AS 'MODULE_PATHNAME', 'verify_heapam'
LANGUAGE C;

-- Don't want this to be available to public
REVOKE ALL ON FUNCTION verify_heapam(regclass,
boolean,
boolean,
text,
bigint,
bigint)
FROM PUBLIC;
2 changes: 1 addition & 1 deletion contrib/amcheck/amcheck.control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# amcheck extension
comment = 'functions for verifying relation integrity'
default_version = '1.2'
default_version = '1.3'
module_pathname = '$libdir/amcheck'
relocatable = true
Loading