Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
799 commits
Select commit Hold shift + click to select a range
342122c
PG-1411 Add pg_resetwal tap tests for TDE setup
artemgavrilov Jul 24, 2025
efe9f04
Add cards in the index page of the website (#488)
Andriciuc Aug 1, 2025
0319cb3
Fix lsan issues in pg_resetwal
dAdAbird Aug 1, 2025
d707a96
PG-1842 Minor optimization and cleanup of redo of SMGR create
jeltz Aug 6, 2025
7459951
Use raw key data for stream crypto
AndersAstrand Aug 5, 2025
a90de98
Expose function to sign principal key data
AndersAstrand Aug 5, 2025
25ba877
PG-1813 Separate format for smgr and wal keyfiles
AndersAstrand Aug 5, 2025
436d2a6
PG-1813 Change file magic for wal keyfile
AndersAstrand Aug 5, 2025
583f8ef
PG-1813 Rename wal key file
AndersAstrand Aug 6, 2025
ac0c58d
Use correct struct when calculating offset
jeltz Aug 7, 2025
91997fb
Remove RelFileLocator from the WAL key file
jeltz Aug 7, 2025
8c40309
Change the file name of the wal keys to match better
jeltz Aug 7, 2025
8d7192c
Move things out of header files after key file split
jeltz Aug 7, 2025
87c55e6
Remove some unused fields from InternalKey
AndersAstrand Aug 7, 2025
1a20e9b
PG-1813 Make WAL keys TLI aware
dAdAbird Aug 7, 2025
d7b42c1
Remove checks for empty entries in WAL key file
jeltz Aug 7, 2025
588938d
Clean up type code for the key map file
jeltz Aug 7, 2025
602cd73
Split key type enum into two to make code less confusing
jeltz Aug 7, 2025
da899e0
PG-1603 Make pg_basebackup work with encrypted WAL
dAdAbird May 21, 2025
458e6ed
Add missing test to meson build
artemgavrilov Aug 11, 2025
bbe1728
PG-1523 Rework uninstallation documentation cleanup (#490)
Andriciuc Aug 11, 2025
cf91f94
Use sizeof directly instead of defines
jeltz Aug 10, 2025
695a142
Move code from key rotation helpers into the function
jeltz Aug 10, 2025
1d12fe4
Remove two pointless debug log statemenets
jeltz Aug 11, 2025
3d90419
Constify some function arguments
jeltz Aug 10, 2025
cff0bf5
Remove warning about WAL encryption being unstable
jeltz Aug 9, 2025
b2bb77c
Move common things for key files into a separate header file
jeltz Aug 9, 2025
57eefad
Clean up code blocks in our documentation
jeltz Aug 11, 2025
d83b36e
Remove merge separator from documentation page
jeltz Aug 12, 2025
bccaa7a
PG-1863 Do not try to delete keys or log WAL for temporary tables
jeltz Aug 6, 2025
13c1038
PG-1863 Consistently use create/delete for keys
jeltz Aug 11, 2025
2d91a89
PG-1842 PG-1843 Optimize deletion of leftover relation keys
jeltz Aug 6, 2025
db41dae
Fix typo in pg_tde_archive_decrypt
AndersAstrand Aug 11, 2025
f508287
PG-1862 Use single argument for wrapped command
AndersAstrand Aug 12, 2025
6ddc86c
Fix tabs in usage instructions
AndersAstrand Aug 13, 2025
c7e7dc5
Xlog encryption bugfix: offset calculation was off on TLI change
dutow Aug 10, 2025
9dfed22
PG-1604: Improve last key LSN calculation logic
dutow Aug 11, 2025
f96ade0
PG-1605 Fix encryption with old keys with disabled WAL encryption
jeltz Aug 14, 2025
167aef2
PG-1605 Fix issue with test which crashes when re-run
jeltz Aug 14, 2025
ff8a389
PG-1604 fix: preallocate one more record for the cache
dutow Aug 18, 2025
b709662
Hold required lock when initializing shmem
AndersAstrand Aug 18, 2025
dbaeda1
Fix leaked var in tde archiver tools
dAdAbird Aug 18, 2025
621c3f8
Suppress LSAN complaints on pgbench
dAdAbird Aug 18, 2025
aed49c0
PG-1866 Reset WAL key cache on shmem init
AndersAstrand Aug 18, 2025
1338ceb
Do not try to fetch the last key when we do not have to
jeltz Aug 19, 2025
80e0bb0
PG-1867 Make pg_tde_restore_encrypt re-use old keys
jeltz Aug 19, 2025
6df714b
PG-1867 Improve archiving test and fix race condition
jeltz Aug 19, 2025
481030d
pg_basebackup: encrypt streamed WAL with new key
dAdAbird Aug 14, 2025
415cb8d
Properly print errors from system() in archive and restore commands
jeltz Aug 19, 2025
d55240d
Bump pg_tde version to 2.0
AndersAstrand Aug 19, 2025
50b3ec8
Bump percona version to 17.5.3
AndersAstrand Aug 19, 2025
9d6297f
Update the Features topic buttons for better clarity (#508)
Andriciuc Aug 20, 2025
c0ad12b
PG-1832 Document the archive and restore commands cont (#531)
Andriciuc Aug 22, 2025
307b33d
Add WAL content for 2.0 release (#499)
Andriciuc Aug 22, 2025
acaddab
PG-1858 Document backing up with WAL with encrypt enabled (#534)
Andriciuc Aug 22, 2025
6719db5
Update WAL backup topic regarding TAR not supporting `-X stream` whe…
Andriciuc Aug 25, 2025
fb54380
Add WAL release note for 2.0 release (#482)
Andriciuc Aug 26, 2025
a711d8b
Fix possible _keys file loss during key rotation
dAdAbird Aug 25, 2025
2364be2
Fix XLogging of rotated key
dAdAbird Aug 26, 2025
532d264
Remove an extra s from param and remove ensure_new_key param (#555)
Andriciuc Aug 28, 2025
afdbffb
Add information regarding key rotation during backups for pg_baseback…
Andriciuc Aug 28, 2025
89f5000
Update Patroni config file (#551)
Andriciuc Aug 28, 2025
a3f36c8
Add pg_receivewal to list of unsupported tools with WAL encrypt (#556)
Andriciuc Aug 28, 2025
d31c489
PG-1870 Load pg_tde and setup key in TAP tests
AndersAstrand Aug 25, 2025
a2be026
PG-1870 Enable WAL encryption in TAP tests
AndersAstrand Aug 25, 2025
97972f8
PG-1870 Enable table encryption by default in TAP
AndersAstrand Aug 25, 2025
ffb828f
PG-1870 Pre-generate pg_tde files for TAP tests
AndersAstrand Aug 28, 2025
d48db2b
Update warnings for basebackup (#558)
Andriciuc Aug 29, 2025
15ae5c6
Remove unused #define
AndersAstrand Aug 28, 2025
c13cd7c
Respect extra arguments to initdb in TDE_MODE
jeltz Aug 29, 2025
8b3289b
Disable archiving during TDE_MODE_SMGR setup
jeltz Aug 29, 2025
e257f22
Only initialize WAL shmem once in EXEC_BACKEND builds
jeltz Aug 13, 2025
7ef4fce
Update `pg_verifybackup` tool with workaround (#553)
Andriciuc Aug 30, 2025
e9e9266
Use Perl constructs instead of env variables for TDE_MODE
jeltz Sep 1, 2025
ca48e7f
PG-1892 Move InternalKey to common file
AndersAstrand Aug 28, 2025
329bbfb
PG-1892 Do not use InternalKey for encrypted keys
AndersAstrand Aug 27, 2025
d0d0d2d
PG-1892 Rework WalEncryptionKey into ranges
AndersAstrand Aug 28, 2025
c4c6851
Small date fix (#568)
Andriciuc Sep 1, 2025
f16d4e5
Update git ver and pdf cover date (#569)
Andriciuc Sep 1, 2025
1b13757
Clean up some triple newlines
AndersAstrand Sep 1, 2025
72e3b59
Add some simple tests for the archive and restore command
jeltz Aug 19, 2025
1e85076
PG-1895 Rewrite global providers during basebackup
dAdAbird Aug 29, 2025
d0b53f3
Merge pull request #571 from percona/release-17.5.3
artemgavrilov Sep 2, 2025
fe513b1
Add to FAQ how to rotate internal encryption keys (#573)
ImTheKai Sep 3, 2025
9159939
doc: Fix title markup for AT TIME ZONE and AT LOCAL
danielgustafsson May 8, 2025
bb28d37
Centralize ssl tests' check for whether we're using LibreSSL.
tglsfdc May 9, 2025
a1924ca
Skip RSA-PSS ssl test when using LibreSSL.
tglsfdc May 9, 2025
adcefd6
Fix incorrect "return NULL" in BumpAllocLarge().
tglsfdc May 11, 2025
ea2b7f4
Fix comment of tsquerysend()
alvherre May 11, 2025
8de8420
Fix order of parameters in POD documentation
danielgustafsson May 13, 2025
5465a7f
Fix Assert failure in XMLTABLE parser
May 15, 2025
2d690e6
Align organization wording in copyright statement
danielgustafsson May 16, 2025
cd202c1
Make our usage of memset_s() conform strictly to the C11 standard.
tglsfdc May 18, 2025
9948e74
Don't retreat slot's confirmed_flush LSN.
May 19, 2025
5dc77ca
Fix deparsing FETCH FIRST <expr> ROWS WITH TIES
hlinnaka May 19, 2025
31af1d8
doc: Clarify use of _ccnew and _ccold in REINDEX CONCURRENTLY
michaelpq May 20, 2025
711cf66
Fix cross-version upgrade test failure
hlinnaka May 20, 2025
435442b
Fix incorrect WAL description for PREPARE TRANSACTION record.
MasaoFujii May 21, 2025
3eac9ef
Fix memory leak in XMLSERIALIZE(... INDENT).
tglsfdc May 22, 2025
f2827e5
Fix AlignedAllocRealloc to cope sanely with OOM.
tglsfdc May 23, 2025
84ee85b
Fix per-relation memory leakage in autovacuum.
tglsfdc May 23, 2025
88c3f98
doc: Fix documenation for snapshot export in logical decoding.
MasaoFujii May 26, 2025
398a9fb
Fix race condition in subscription TAP test 021_twophase
michaelpq May 26, 2025
5428415
Fix conversion of SIMILAR TO regexes for character classes
michaelpq May 27, 2025
7a2c14d
Adjust regex for test with opening parenthesis in character classes
michaelpq May 28, 2025
137e446
pg_stat_statements: Fix parameter number gaps in normalized queries
michaelpq May 29, 2025
b19f296
Fix assertion failure in pg_prewarm() on objects without storage.
MasaoFujii May 29, 2025
a8aac66
Avoid resource leaks when a dblink connection fails.
tglsfdc May 29, 2025
ba6308c
Fix broken-FK-detection query in release notes
alvherre May 30, 2025
c0edd2d
Make XactLockTableWait() and ConditionalXactLockTableWait() interrupt…
MasaoFujii May 30, 2025
332271a
Allow larger packets during GSSAPI authentication exchange.
tglsfdc May 30, 2025
10d9e75
Fix memory leakage in postgres_fdw's DirectModify code path.
tglsfdc May 30, 2025
a0da792
Ensure we have a snapshot when updating various system catalogs.
nathan-bossart May 30, 2025
1402fca
Fix MERGE into a plain inheritance parent table.
deanrasheed May 31, 2025
62f56e4
Fix edge-case resource leaks in PL/Python error reporting.
tglsfdc Jun 1, 2025
258a650
Run pgindent on the previous commit.
tglsfdc Jun 1, 2025
3a57c94
Use replay LSN as target for cascading logical WAL senders
michaelpq Jun 2, 2025
6c229b6
Disallow "=" in names of reloptions and foreign-data options.
tglsfdc Jun 2, 2025
a1b9268
doc: Remove notes about "unencrypted" passwords.
nathan-bossart Jun 4, 2025
d041ccf
Doc: you must own the target object to use SECURITY LABEL.
tglsfdc Jun 5, 2025
af2ea1a
pg_prewarm: Allow autoprewarm to use more than 1GB to dump blocks.
robertmhaas Jun 6, 2025
df3294f
Fixed signed/unsigned mismatch in test_dsm_registry.
nathan-bossart Jun 6, 2025
351db19
pg_restore: fix incompatibility with old directory-format dumps.
tglsfdc Jun 8, 2025
2325393
Don't reduce output request size on non-Unix-socket connections.
tglsfdc Jun 10, 2025
afbcb0f
Make _bt_killitems drop pins it acquired itself.
petergeoghegan Jun 11, 2025
68a325d
Keep WAL segments by the flushed value of the slot's restart LSN
akorotkov Jun 14, 2025
a65dc9a
Add TAP tests to check replication slot advance during the checkpoint
akorotkov Jun 14, 2025
c839d83
Fix re-distributing previously distributed invalidation messages duri…
MasahikoSawada Jun 17, 2025
6823c98
Improve log messages and docs for slot synchronization.
Jun 19, 2025
812702f
Correct docs about partitions and EXCLUDE constraints.
jeff-davis Jun 19, 2025
3e1dae1
Improve runtime and output of tests for replication slots checkpointing.
akorotkov Jun 19, 2025
7540a3c
Use SnapshotDirty when checking for conflicting index names.
tglsfdc Jun 20, 2025
8005baa
Doc: improve documentation about width_bucket().
tglsfdc Jun 21, 2025
ec12fdd
meson: Fix meson warning
petere Jun 22, 2025
6baa726
doc: Fix incorrect UUID index entry in function documentation.
MasaoFujii Jun 24, 2025
6142775
doc: Remove dead link to NewbieDoc Docbook Guide
danielgustafsson Jun 24, 2025
d7761fd
Test that vacuum removes tuples older than OldestXmin
melanieplageman Jun 24, 2025
c985a5e
Prevent excessive delays before launching new logrep workers.
tglsfdc Jun 24, 2025
9adbeea
Avoid scribbling of VACUUM options
michaelpq Jun 25, 2025
09f5371
Doc: Improve documentation of stream abort.
Jun 25, 2025
5c2b3ab
doc: Fix indentation of MERGE synopsis.
deanrasheed Jun 26, 2025
de3c54d
Remove unused check in heap_xlog_insert()
melanieplageman Jun 26, 2025
ffbebc9
Use correct DatumGet*() function in test_shm_mq_main().
nathan-bossart Jun 27, 2025
02c13cc
Obtain required table lock during cross-table constraint updates.
tglsfdc Jun 29, 2025
3967a8a
doc: Fix typo in pg_sync_replication_slots documentation
danielgustafsson Jun 30, 2025
abc64a5
Fix typos in comments
amitlan Jul 1, 2025
d6629c9
Make safeguard against incorrect flags for fsync more portable.
tglsfdc Jul 1, 2025
ed2a875
Make sure IOV_MAX is defined.
tglsfdc Jul 1, 2025
f761ad4
Fix outdated comment for IndexInfo
petere Jul 1, 2025
5e5d03d
Document pg_get_multixact_members().
nathan-bossart Jul 1, 2025
7c9d230
Update comment for IndexInfo.ii_NullsNotDistinct
petere Jul 1, 2025
71c61ea
Fix bug in archive streamer with LZ4 decompression
michaelpq Jul 2, 2025
ce1bb13
Fix missing FSM vacuum opportunities on tables without indexes.
MasahikoSawada Jul 2, 2025
a7e214f
Correctly copy the target host identification in PQcancelCreate.
tglsfdc Jul 2, 2025
3d1f4d6
doc: Remove incorrect note about wal_status in pg_replication_slots.
MasaoFujii Jul 3, 2025
e199289
doc: Update outdated descriptions of wal_status in pg_replication_slots.
MasaoFujii Jul 3, 2025
fe6436a
Obtain required table lock during cross-table updates, redux.
tglsfdc Jul 3, 2025
0da8244
Disable commit timestamps during bootstrap
michaelpq Jul 4, 2025
f5876ad
pg_upgrade: check for inconsistencies in not-null constraints w/inher…
alvherre Jul 4, 2025
33c457f
pg_upgrade: Add missing newline in error message
alvherre Jul 4, 2025
c758299
Fix new pg_upgrade query not to rely on regnamespace
alvherre Jul 4, 2025
d855190
Fix incompatibility with libxml2 >= 2.14
michaelpq Jul 6, 2025
caac88d
Restore the ability to run pl/pgsql expression queries in parallel.
tglsfdc Jul 7, 2025
5ed02a8
Fix low-probability memory leak in XMLSERIALIZE(... INDENT).
tglsfdc Jul 8, 2025
8af6a4b
Doc: Improve logical replication failover documentation.
Jul 9, 2025
78274f6
Fix tab-completion for COPY and \copy options.
MasahikoSawada Jul 9, 2025
643760a
pg_dump: Fix object-type sort priority for large objects.
nathan-bossart Jul 10, 2025
0a071b4
Fix the handling of two GUCs during upgrade.
Jul 11, 2025
baf7d8f
Fix inconsistent quoting of role names in ACLs.
tglsfdc Jul 11, 2025
27db585
Doc: clarify description of current-date/time functions.
tglsfdc Jul 15, 2025
15f320b
Silence uninitialized-value warnings in compareJsonbContainers().
tglsfdc Jul 15, 2025
c9456b0
Doc: clarify description of regexp fields in pg_ident.conf.
tglsfdc Jul 15, 2025
7e03b9f
doc: Fix confusing description of streaming option in START_REPLICATION.
MasaoFujii Jul 15, 2025
5fb19cb
psql: Fix note on project naming in output of \copyright.
nathan-bossart Jul 16, 2025
c8015bc
Fix dumping of comments on invalid constraints on domains
alvherre Jul 16, 2025
40fa344
doc: Add example file for COPY
danielgustafsson Jul 16, 2025
9f70e8a
Fix inconsistent LWLock tranche names for MultiXact*
michaelpq Jul 17, 2025
14ace39
Remove duplicate line
amitlan Jul 17, 2025
487c04b
Remove assertion from PortalRunMulti
alvherre Jul 17, 2025
725f2fa
Fix PQport to never return NULL unless the connection is NULL.
tglsfdc Jul 17, 2025
41e1a7b
Fix concurrent update trigger issues with MERGE in a CTE.
deanrasheed Jul 18, 2025
ff5f16e
Improve recovery test 046_checkpoint_logical_slot
akorotkov Jul 17, 2025
310214f
Improve the stability of the recovery test 047_checkpoint_physical_slot
akorotkov Jul 19, 2025
566aa2d
Fix infinite wait when reading a partially written WAL record
akorotkov Jul 19, 2025
5358fca
doc: Document reopen of output file via SIGHUP in pg_recvlogical.
MasaoFujii Jul 20, 2025
80146d9
pg_dump: include comments on not-null constraints on domains, too
alvherre Jul 21, 2025
28e5254
ecpg: Fix NULL pointer dereference during connection lookup
michaelpq Jul 22, 2025
b984588
doc: Inform about aminsertcleanup optional NULLness
michaelpq Jul 22, 2025
3922b2d
Fix build breakage on Solaris-alikes with late-model GCC.
tglsfdc Jul 23, 2025
67a5f3b
Fix duplicate transaction replay during pg_createsubscriber.
Jul 24, 2025
8885959
Limit checkpointer requests queue size
akorotkov Jul 27, 2025
c846d1e
Avoid regression in the size of XML input that we will accept.
tglsfdc Jul 28, 2025
fee4cc9
Clarify documentation for the initcap function
akorotkov Jul 29, 2025
b1b1b66
Remove unnecessary complication around xmlParseBalancedChunkMemory.
tglsfdc Jul 29, 2025
4d79ddf
Don't put library-supplied -L/-I switches before user-supplied ones.
tglsfdc Jul 29, 2025
0d70ba3
Fix ./configure checks with __cpuidex() and __cpuid()
michaelpq Jul 30, 2025
93b69a4
pg_dump: provide a stable sort order for rules.
tglsfdc Nov 4, 2024
2dc1421
Sort dump objects independent of OIDs, for the 7 holdout object types.
nmisch Jul 31, 2025
fc733f3
Fix a deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION.
Aug 1, 2025
a007f07
Allow resetting unknown custom GUCs with reserved prefixes.
nathan-bossart Aug 1, 2025
fbba021
Fix use-after-free with INSERT ON CONFLICT changes in reorderbuffer.c
michaelpq Aug 2, 2025
350b0c6
Doc: clarify the restrictions of AFTER triggers with transition tables.
Aug 2, 2025
0d93673
Fix assertion failure in pgbench when handling multiple pipeline sync…
MasaoFujii Aug 3, 2025
2682660
doc: mention unusability of dropped CHECK to verify NOT NULL
alvherre Aug 4, 2025
3f8e01f
Avoid unexpected shutdown when sync_replication_slots is enabled.
MasaoFujii Aug 4, 2025
2af0751
Fix typo in create_index.sql.
deanrasheed Aug 4, 2025
a384622
Minor test fixes in 035_standby_logical_decoding.pl
melanieplageman Aug 4, 2025
080ff1f
Fix incorrect return value in brin_minmax_multi_distance_numeric().
tglsfdc Aug 5, 2025
661c207
doc: Recommend ANALYZE after ALTER TABLE ... SET EXPRESSION AS.
MasaoFujii Aug 6, 2025
79e35bb
pg_upgrade: Improve message indentation
petere Aug 7, 2025
38ba6e2
Update ICU C++ API symbols
j-naylor Aug 7, 2025
3dbff77
Revert "Clarify documentation for the initcap function"
akorotkov Aug 7, 2025
f0eacea
Message improvements
petere Aug 7, 2025
ad61f3a
Fix checkpointer shared memory allocation
akorotkov Aug 7, 2025
57b9d3a
doc: Formatting improvements
petere Aug 7, 2025
8e90812
doc: add float as an alias for double precision.
tglsfdc Aug 7, 2025
be60167
Add information about "generation" when dropping twice pgstats entry
michaelpq Aug 8, 2025
436016f
Disallow collecting transition tuples from child foreign tables.
Aug 8, 2025
83f4ac5
pg_dump: Fix incorrect parsing of object types in pg_dump --filter.
MasaoFujii Aug 8, 2025
220f1c0
Fix oversight in FindTriggerIncompatibleWithInheritance.
Aug 8, 2025
502f655
Fix incorrect lack of Datum conversion in _int_matchsel()
petere Aug 8, 2025
decea1a
First-draft release notes for 17.6.
tglsfdc Aug 8, 2025
66df3c3
Remove, from stable branches, the new assertion of no pg_dump OID sort.
nmisch Aug 10, 2025
e819d61
Release notes for 17.6, 16.10, 15.14, 14.19, 13.22.
tglsfdc Aug 10, 2025
520fa36
Fix security checks in selectivity estimation functions.
deanrasheed Aug 11, 2025
b0c0089
Translation updates
petere Aug 11, 2025
86b3e2b
Convert newlines to spaces in names written in v11+ pg_dump comments.
nmisch Aug 11, 2025
6042e42
Restrict psql meta-commands in plain-text dumps.
nathan-bossart Aug 11, 2025
20ff7f9
Last-minute updates for release notes.
tglsfdc Aug 11, 2025
69524ca
Stamp 17.6.
tglsfdc Aug 11, 2025
c4ec594
Updated expected Percona Server version to 17.6.1
artemgavrilov Sep 2, 2025
19101d3
Update tests after sync with upstream version 17.6
artemgavrilov Sep 2, 2025
c03a7f9
PG-1889 Add Barman as unsupported tool (#574)
Andriciuc Sep 3, 2025
e24e386
Update codechecker to 6.26.1
artemgavrilov Sep 3, 2025
39601ca
Fix percona server version
artemgavrilov Sep 8, 2025
983dbe7
Clean up .gitignore for pg_tde
jeltz Sep 11, 2025
f89f408
Merge pull request #580 from percona/release-17.6.1
dutow Sep 15, 2025
146bdea
Update landing page with PG17 link (#577)
Andriciuc Sep 15, 2025
e5376c7
Update keyring file configuration topic (#579)
Andriciuc Sep 18, 2025
e467d1f
PG-1879 Silence warnings from libkmip in make builds
jeltz Sep 16, 2025
1f7208b
PG-1879 Simplify Makefile logic
jeltz Sep 16, 2025
dc3fd0e
PG-1879 Use libpgfeutils.a when building with make
jeltz Sep 16, 2025
d33cea5
PG-1870 Silence make output in the CI
jeltz Sep 16, 2025
bc9eef5
Remove pointless define when linking executables
jeltz Sep 17, 2025
c7c9b73
PG-1927 Adding missing perl modules to Makefile for devel packages. (…
Naeem-Akhter Sep 23, 2025
4c4e3d0
PG-1879 Indent multiline assignments in Makefile
jeltz Sep 24, 2025
1107aa4
PG-1879 Remove unnecessary quotes in Makefile
jeltz Sep 24, 2025
44141cd
PG-1879 Just add extra CLFAG when building xlogreader.c
jeltz Sep 24, 2025
cdfaf2d
PG-1879 Use only LDFLAGS_EX in Makefile
jeltz Sep 24, 2025
eb031ea
WIP
jeltz Oct 8, 2025
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
  •  
  •  
  •  
7 changes: 2 additions & 5 deletions .cirrus.tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ task:


task:
name: FreeBSD - 13 - Meson
name: FreeBSD - Meson

env:
CPUS: 4
BUILD_JOBS: 4
TEST_JOBS: 8
IMAGE_FAMILY: pg-ci-freebsd-13
IMAGE_FAMILY: pg-ci-freebsd
DISK_SIZE: 50

CCACHE_DIR: /tmp/ccache_dir
Expand Down Expand Up @@ -777,14 +777,11 @@ task:
# - Don't use ccache, the files are uncacheable, polluting ccache's
# cache
# - Use -fmax-errors, as particularly cpluspluscheck can be very verbose
# - XXX have to disable ICU to avoid errors:
# https://postgr.es/m/20220323002024.f2g6tivduzrktgfa%40alap3.anarazel.de
###
always:
headers_headerscheck_script: |
time ./configure \
${LINUX_CONFIGURE_FEATURES} \
--without-icu \
--quiet \
CC="gcc" CXX"=g++" CLANG="clang"
make -s -j${BUILD_JOBS} clean
Expand Down
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#
# $ git log --pretty=format:"%H # %cd%n# %s" $PGINDENTGITHASH -1 --date=iso

71da1f03f2f0ff18ed11e4ba6b07b6bd56705a5d # 2025-04-22 11:40:24 +0200
# Run pgperltidy

c739ae9e288c095cfe1b91ce27a2f2c075ed5da4 # 2024-08-26 16:16:09 -0700
# Fix identation.

Expand Down
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
# Order is important; the last matching pattern takes the most precedence.

* @dutow @dAdAbird
/contrib/pg_tde/documentation/ @nastena1606
/contrib/pg_tde/documentation/ @nastena1606 @Andriciuc
/.github/ @artemgavrilov
45 changes: 45 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
codecov:
strict_yaml_branch: TDE_REL_17_STABLE
fixes:
- "src/::contrib/pg_tde/src/" # move path for codecov file mappings e.g., "src/" => "contrib/pg_tde/src/"
coverage:
status:
project:
default:
target: 90%
threshold: 1%
base: auto
comment:
layout: "header, diff, components"
component_management:
default_rules:
statuses:
- type: project
target: auto
branches:
- "TDE_REL_17_STABLE"
individual_components:
- component_id: access
paths:
- contrib/pg_tde/src/access/**
- component_id: catalog
paths:
- contrib/pg_tde/src/catalog/**
- component_id: common
paths:
- contrib/pg_tde/src/common/**
- component_id: encryption
paths:
- contrib/pg_tde/src/encryption/**
- component_id: keyring
paths:
- contrib/pg_tde/src/keyring/**
- component_id: src
paths:
- contrib/pg_tde/src/*.c
- component_id: smgr
paths:
- contrib/pg_tde/src/smgr/**
- component_id: transam
paths:
- contrib/pg_tde/src/transam/**
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: PSP-Reusable
name: Reusable build and test
on:
workflow_call:
inputs:
os:
type: string
required: true
compiler:
type: string
required: true
build_type:
type: string
required: true
Expand All @@ -13,11 +16,12 @@ on:
required: true

env:
artifact_name: build-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }}
artifact_name: build-${{ inputs.os }}-${{ inputs.compiler }}-${{ inputs.build_script }}-${{ inputs.build_type }}
CC: ${{ inputs.compiler }}

jobs:
build:
name: Build PSP
name: Build
runs-on: ${{ inputs.os }}
steps:
- name: Clone repository
Expand All @@ -27,13 +31,19 @@ jobs:
submodules: recursive
ref: ${{ github.ref }}

# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh

- name: Build postgres
run: src/ci_scripts/${{ inputs.build_script }}-build.sh ${{ inputs.build_type }}

- name: 'Tar files'
- name: Archive pginst to artifact tar file
run: tar -czf artifacts.tar src pginst

- name: Upload build artifacts
Expand All @@ -46,7 +56,7 @@ jobs:
retention-days: 1

test:
name: Test PSP
name: Test
runs-on: ${{ inputs.os }}
needs: build

Expand All @@ -57,33 +67,45 @@ jobs:
name: ${{ env.artifact_name }}
path: .

- name: 'Untar files'
- name: Extract artifact file
run: tar -xzf artifacts.tar

- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh

- name: Setup kmip and vault
run: src/ci_scripts/setup-keyring-servers.sh

- name: Test postgres
run: src/ci_scripts/${{ inputs.build_script }}-test.sh
run: src/ci_scripts/${{ inputs.build_script }}-test.sh all

- name: Report on test fail
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: testlog-ubuntu-${{ inputs.ubuntu_version }}.04-meson-${{ inputs.build_type }}
name: log-test-${{ inputs.os }}-${{ inputs.compiler }}-${{ inputs.build_script }}-${{ inputs.build_type }}
path: |
src/build/testrun/
src/contrib/*/t/
src/contrib/*/results
src/build/testrun
src/contrib/*/log
src/contrib/*/regression.diffs
src/contrib/*/regression.out
src/contrib/*/results
src/contrib/*/tmp_check
src/contrib/*/t/results
src/src/test/*/log
src/src/test/*/regression.diffs
src/src/test/*/regression.out
src/src/test/*/results
src/src/test/*/tmp_check
retention-days: 3

test_tde:
name: Test PSP with TDE
test-default-tde:
name: Test with TDE as default access method
runs-on: ${{ inputs.os }}
if: inputs.build_script == 'make'
needs: build
Expand All @@ -95,27 +117,40 @@ jobs:
name: ${{ env.artifact_name }}
path: .

- name: 'Untar files'
- name: Extract artifact file
run: tar -xzf artifacts.tar

# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: src/ci_scripts/ubuntu-deps.sh
run: src/ci_scripts/ubuntu-deps.sh

- name: Setup kmip and vault
run: src/ci_scripts/setup-keyring-servers.sh
- name: Test postgres with TDE
run: src/ci_scripts/${{ inputs.build_script }}-test-tde.sh --continue

- name: Test postgres with TDE as default access method
run: src/ci_scripts/${{ inputs.build_script }}-test-global-tde.sh --continue

- name: Report on test fail
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: testlog-tde-${{ inputs.os }}-${{ inputs.build_script }}-${{ inputs.build_type }}
name: log-test-global-tde-${{ inputs.os }}-${{ inputs.compiler }}-${{ inputs.build_script }}-${{ inputs.build_type }}
path: |
src/build/testrun/
src/contrib/*/t/
src/contrib/*/results
src/build/testrun
src/contrib/*/log
src/contrib/*/regression.diffs
src/contrib/*/regression.out
src/contrib/*/results
src/contrib/*/tmp_check
src/contrib/*/t/results
src/src/test/*/log
src/src/test/*/regression.diffs
src/src/test/*/regression.out
src/src/test/*/results
src/src/test/*/tmp_check
retention-days: 3
57 changes: 57 additions & 0 deletions .github/workflows/codechecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CodeChecker
on:
push:
branches:
- TDE_REL_17_STABLE
paths-ignore:
- contrib/pg_tde/documentation/**

env:
CC: clang
LD: clang

jobs:
run:
name: Run
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
run: ci_scripts/ubuntu-deps.sh

- name: Install CodeChecker
run: |
## CodeChecker version should match version installed on server side.
pip3 install codechecker==6.26.1

- name: Configure CodeChecker
run: |
echo "::add-mask::${{ secrets.CODECHECKER_ENDPOINT }}"
echo "::add-mask::${{ secrets.CODECHECKER_ENGINEERING_CREDENTIALS }}"
cat > ~/.codechecker.passwords.json << EOL
{
"client_autologin": true,
"credentials": {
"${{secrets.CODECHECKER_ENDPOINT}}": "${{secrets.CODECHECKER_ENGINEERING_CREDENTIALS}}"
}
}
EOL

- name: Set cc alternative
run: |
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
sudo update-alternatives --set cc /usr/bin/clang

- name: Build postgres
run: ci_scripts/meson-build.sh debug

- name: Run CodeChecker
run: CodeChecker analyze build/compile_commands.json --enable sensitive --output ./reports --file ${{ github.workspace }}/contrib/pg_tde

- name: Upload CodeChecker reports
run: |
CodeChecker store ./reports --url=https://codechecker.percona.com/pg_tde --name=${GITHUB_REF_NAME} --tag=${GITHUB_SHA} --force
75 changes: 75 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Code coverage
on:
pull_request:
paths-ignore:
- contrib/pg_tde/documentation/**
push:
branches:
- TDE_REL_17_STABLE
paths-ignore:
- contrib/pg_tde/documentation/**

env:
# Avoid failures on slow recovery
PGCTLTIMEOUT: 120
PG_TEST_TIMEOUT_DEFAULT: 300

jobs:
collect:
name: Collect and upload
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive

# KMIP server doesn't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
- name: Downgrade python to 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: ci_scripts/ubuntu-deps.sh

- name: Build postgres
run: ci_scripts/make-build.sh debug --enable-coverage

- name: Setup kmip and vault
run: ci_scripts/setup-keyring-servers.sh

- name: Test postgres with TDE to generate coverage
run: ci_scripts/make-test.sh tde

- name: Collect coverage data
run: find . -type f -name "*.c" ! -path '*libkmip*' | xargs -t gcov -abcfu
working-directory: contrib/pg_tde

- name: Upload coverage data to codecov.io
uses: codecov/codecov-action@v5
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
working-directory: contrib/pg_tde
files: "*.c.gcov"

- name: Report on test fail
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: coverage-testlog-tde
path: |
build/testrun
contrib/*/log
contrib/*/regression.diffs
contrib/*/regression.out
contrib/*/results
contrib/*/tmp_check
contrib/*/t/results
src/test/*/log
src/test/*/regression.diffs
src/test/*/regression.out
src/test/*/results
src/test/*/tmp_check
retention-days: 3
Loading
Loading