Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2718 commits
Select commit Hold shift + click to select a range
2d3490d
heapam: Keep buffer pins across index scan resets.
petergeoghegan Apr 4, 2026
33bf731
Make index_concurrently_create_copy more general
alvherre Apr 4, 2026
69c11f0
Modernize struct declarations in snapbuild.h
alvherre Apr 4, 2026
2849fe4
Fix unused function warning on Arm platforms
j-naylor Apr 5, 2026
a9ee668
aio: io_uring: Trigger async processing for large IOs
anarazel Apr 5, 2026
434dab7
read_stream: Move logic about IO combining & issuing to helpers
anarazel Apr 5, 2026
8ca147d
read stream: Split decision about look ahead for AIO and combining
anarazel Apr 5, 2026
f63ca33
read_stream: Only increase read-ahead distance when waiting for IO
anarazel Apr 5, 2026
fc44f10
aio: Simplify pgaio_worker_submit().
macdice Apr 5, 2026
de28140
postgres_fdw: Inherit the local transaction's access/deferrable modes.
Apr 5, 2026
caec9d9
Allow index_create to suppress index_build progress reporting
alvherre Apr 5, 2026
4881981
Add infrastructure for pg_get_*_ddl functions
adunstan Mar 19, 2026
76e514e
Add pg_get_role_ddl() function
adunstan Mar 19, 2026
b99fd9f
Add pg_get_tablespace_ddl() function
adunstan Mar 19, 2026
a4f774c
Add pg_get_database_ddl() function
adunstan Mar 19, 2026
92a685e
Improve test_lwlock_tranches
hlinnaka Apr 5, 2026
f10b6be
Check that the tranche name is unique in RequestNamedLWLockTranche
hlinnaka Apr 5, 2026
df6949c
Add tid_block() and tid_offset() accessor functions
anarazel Apr 5, 2026
6c7bce2
Fixups for a4f774cf1c7
anarazel Apr 5, 2026
7d9b74d
instrumentation: Separate trigger logic from other uses
anarazel Apr 5, 2026
5a79e78
instrumentation: Separate per-node logic from other uses
anarazel Apr 5, 2026
6ef9bee
Move some code from shmem.c and shmem.h
hlinnaka Apr 5, 2026
283e823
Introduce a new mechanism for registering shared memory areas
hlinnaka Apr 5, 2026
6409994
Add a test module to test after-startup shmem allocations
hlinnaka Apr 5, 2026
d4885af
Convert pg_stat_statements to use the new shmem allocation functions
hlinnaka Apr 5, 2026
1fc2e9f
Introduce a registry of built-in shmem subsystems
hlinnaka Apr 5, 2026
a006bc7
Convert lwlock.c to use the new shmem allocation functions
hlinnaka Apr 5, 2026
c6d5571
Use the new shmem allocation functions in a few core subsystems
hlinnaka Apr 5, 2026
4c9eca5
Refactor shmem initialization code in predicate.c
hlinnaka Apr 5, 2026
2e0943a
Convert SLRUs to use the new shmem allocation functions
hlinnaka Apr 5, 2026
58a1573
Convert AIO to use the new shmem allocation functions
hlinnaka Apr 5, 2026
dacfe81
Add alignment option to ShmemRequestStruct()
hlinnaka Apr 5, 2026
a4b6139
Convert buffer manager to use the new shmem allocation functions
hlinnaka Apr 5, 2026
9b5acad
Convert all remaining subsystems to use the new shmem allocation API
hlinnaka Apr 5, 2026
557a9f1
Add tests for lock statistics, take two
michaelpq Apr 5, 2026
d771b0a
Handle checksumworker startup wait race
danielgustafsson Apr 5, 2026
0700912
Test stabilization for online checksums
danielgustafsson Apr 6, 2026
8194c4a
Fix unportable use of __builtin_constant_p
j-naylor Apr 6, 2026
a8f45de
Add wal_sender_shutdown_timeout GUC to limit shutdown wait for replic…
MasaoFujii Apr 6, 2026
bd94845
Fix collation handling for grouping keys in eager aggregation
Apr 6, 2026
3a08a2a
Fix volatile function evaluation in eager aggregation
Apr 6, 2026
d78a4f0
Simplify redundant current_database() subqueries in stats.sql regress…
MasaoFujii Apr 6, 2026
283c5fb
Improve more stability of worker_spi termination test
michaelpq Apr 6, 2026
404a17c
Use single LWLock for lock statistics in pgstats
michaelpq Apr 6, 2026
e8ec19a
Add pg_stash_advice contrib module.
robertmhaas Apr 6, 2026
2670a0f
Fix compilation without injection points with some compilers
hlinnaka Apr 6, 2026
ed71d73
Fix memory leaks introduced by commit 283e823f9dcb
hlinnaka Apr 6, 2026
93dc1ac
Release postmaster working memory context in slotsync worker
MasaoFujii Apr 6, 2026
ca2b544
Add TAP tests for log_lock_waits
MasaoFujii Apr 6, 2026
e0e819c
Expose helper functions scan_quoted_identifier and scan_identifier.
robertmhaas Apr 6, 2026
e3481ed
Remove autoanalyze corner case.
nathan-bossart Apr 6, 2026
0442f1c
Add a guc_check_handler to the EXPLAIN extension mechanism.
robertmhaas Apr 6, 2026
6582010
Fix null-bitmap combining in array_agg_array_combine().
tglsfdc Apr 6, 2026
f7da81f
Add missing .gitignore files.
tglsfdc Apr 6, 2026
21c69dc
Disallow system columns in COPY FROM WHERE conditions.
tglsfdc Apr 6, 2026
c0b53ec
Rename cluster.c to repack.c (and corresponding .h)
alvherre Apr 6, 2026
1ff3180
Allow autovacuum to use parallel vacuum workers.
MasahikoSawada Apr 6, 2026
a9c350d
Don't try to re-order the subcommands of CREATE SCHEMA.
tglsfdc Apr 6, 2026
404db8f
Execute foreign key constraints in CREATE SCHEMA at the end.
tglsfdc Apr 6, 2026
d516974
Support more object types within CREATE SCHEMA.
tglsfdc Apr 6, 2026
e972dff
auto_explain: Add new GUC, auto_explain.log_extension_options.
robertmhaas Apr 6, 2026
775fe51
Remove recheck_relation_needs_vacanalyze().
nathan-bossart Apr 6, 2026
834038c
Avoid syscache lookup while building a WAIT FOR tuple descriptor
akorotkov Apr 6, 2026
7e8aeb9
Use WAIT FOR LSN in PostgreSQL::Test::Cluster::wait_for_catchup()
akorotkov Apr 6, 2026
10484c2
Document that WAIT FOR may be interrupted by recovery conflicts
akorotkov Apr 6, 2026
28d534e
Add CONCURRENTLY option to REPACK
alvherre Apr 6, 2026
b3a37ff
Use PG_DATA_CHECKSUM_OFF instead of hardcoded value
danielgustafsson Apr 6, 2026
87f61f0
Add pg_stat_autovacuum_scores system view.
nathan-bossart Apr 6, 2026
43222b8
Assert no duplicate keys in shm_toc_insert()
melanieplageman Apr 6, 2026
dd78e69
Allocate separate DSM chunk for parallel Index[Only]Scan instrumentation
melanieplageman Apr 6, 2026
9897957
Fix shared memory size of template code for custom fixed-sized pgstats
michaelpq Apr 6, 2026
5c54c3e
Fix deferred FK check batching introduced by commit b7b27eb41a5
amitlan Apr 6, 2026
17132f5
Fix shmem allocation of fixed-sized custom stats kind
michaelpq Apr 7, 2026
3284e3f
Fix injection point detach timing problem in TAP test for lock stats
michaelpq Apr 7, 2026
5109883
Split CREATE STATISTICS error reasons out into errdetails
j-naylor Apr 7, 2026
49cc0d4
Mark JumbleState as a const in the post_parse_analyze hook
michaelpq Apr 7, 2026
30229be
Simplify SortSupport for the macaddr data type
j-naylor Apr 7, 2026
8c3e22a
Use .h for the file containing the page checksum code fragment
j-naylor Apr 7, 2026
5bcc3fb
Fix valgrind failure
alvherre Apr 7, 2026
b6ccd30
Add isolation tests for UPDATE/DELETE FOR PORTION OF
petere Apr 7, 2026
6f5ad00
Optimize sort and deduplication in ginExtractEntries()
hlinnaka Apr 7, 2026
a3b069e
Avoid different-size pointer-to-integer cast
alvherre Apr 7, 2026
0d3dba3
Allow logical replication snapshots to be database-specific
alvherre Apr 7, 2026
9c18b47
Fix BitmapHeapScan non-parallel-aware EXPLAIN ANALYZE
tvondra Apr 7, 2026
884f9b3
Use add_size/mul_size for index instrumentation size calculations
tvondra Apr 7, 2026
9f3755e
Optimize sorting and deduplicating trigrams
hlinnaka Apr 7, 2026
257c823
Modernize and optimize pg_buffercache_pages()
hlinnaka Apr 7, 2026
be142fa
Fix tests under wal_level=minimal
alvherre Apr 7, 2026
9480c58
Tidy up #ifdef USE_INJECTION_POINTS guards
hlinnaka Apr 7, 2026
8fb95a8
doc: Add an example of REPACK (CONCURRENTLY)
alvherre Apr 7, 2026
29e7dbf
Minimal fix for WAIT FOR ... MODE 'standby_flush'
anarazel Apr 7, 2026
c10edb1
pg_stash_advice: Allow stashed advice to be persisted to disk.
robertmhaas Apr 7, 2026
55890a9
Add errdetail() with PID and UID about source of termination signal.
adunstan Apr 6, 2026
979387f
Fix harmless leftover in _hash_kill_items()
hlinnaka Apr 7, 2026
e76d8c7
Reserve replication slots specifically for REPACK
alvherre Apr 7, 2026
6d00fb9
libpq: Split PGOAUTHDEBUG=UNSAFE into multiple options
jchampio Apr 7, 2026
b977bd3
oauth: Allow validators to register custom HBA options
jchampio Apr 7, 2026
0022622
instrumentation: Standardize ticks to nanosecond conversion method
anarazel Apr 7, 2026
bcb2cf4
Allow retrieving x86 TSC frequency/flags from CPUID
anarazel Apr 7, 2026
294520c
instrumentation: Use Time-Stamp Counter on x86-64 to lower overhead
anarazel Apr 7, 2026
4edd603
Fix WITHOUT OVERLAPS' interaction with domains.
tglsfdc Apr 7, 2026
10d5a12
Switch EXPLAIN to unaligned output for json/xml/yaml
tvondra Apr 7, 2026
681daed
Add EXPLAIN (IO) infrastructure with BitmapHeapScan support
tvondra Apr 7, 2026
61c36a3
auto_explain: Add new GUC auto_explain.log_io
tvondra Apr 7, 2026
b268928
Suppress unused-variable warning.
tglsfdc Apr 7, 2026
3b1117d
Add EXPLAIN (IO) instrumentation for SeqScan
tvondra Apr 7, 2026
16fca48
pg_test_timing: Also test RDTSC[P] timing, report time source, TSC fr…
anarazel Apr 7, 2026
e157fe6
Add EXPLAIN (IO) instrumentation for TidRangeScan
tvondra Apr 7, 2026
5440002
instrumentation: Move ExecProcNodeInstr to allow inlining
anarazel Apr 8, 2026
db93032
Fix slotsync worker blocking promotion when stuck in wait
MasaoFujii Apr 8, 2026
2c16dee
instrumentation: Allocate query level instrumentation in ExecutorStart
anarazel Apr 8, 2026
77645d4
Remove MULE_INTERNAL encoding.
macdice Apr 8, 2026
ce11e63
pg_upgrade: Check for unsupported encodings.
macdice Apr 8, 2026
948ef7c
Exit early from pg_comp_crc32c_pmull for small inputs
j-naylor Apr 8, 2026
d1c01b7
aio: Adjust I/O worker pool automatically.
macdice Apr 8, 2026
28972b6
Add support for importing statistics from remote servers.
Apr 8, 2026
a1643d4
Remove RADIUS support.
macdice Apr 8, 2026
f8eec1c
Add missing PGDLLIMPORT markings
petere Apr 8, 2026
e0851bd
Add a couple of commits to .git-blame-ignore-revs.
nathan-bossart Apr 8, 2026
b364828
doc: Fix data_checksums data type
danielgustafsson Apr 8, 2026
2cff363
Simplify declaration of memcpy target
alvherre Apr 8, 2026
e0fa5bd
Reduce presence of syscache.h in src/include/
michaelpq Apr 8, 2026
e1cc57f
Add nkeys parameter to recheck_matched_pk_tuple()
amitlan Apr 9, 2026
c140895
Strip PlaceHolderVars from partition pruning operands
Apr 9, 2026
11d6042
Update config.guess and config.sub
petere Apr 9, 2026
8b6c89e
Fix integer overflow in nodeWindowAgg.c
Apr 9, 2026
60165db
Add LOG_NEVER error level code.
nathan-bossart Apr 9, 2026
7fc36c5
instrumentation: Avoid CPUID 0x15/0x16 for Hypervisor TSC frequency
anarazel Apr 9, 2026
8030b83
Remove an unstable wait from parallel autovacuum regression test.
MasahikoSawada Apr 9, 2026
71ff232
Fix double-free in pg_stat_autovacuum_scores.
nathan-bossart Apr 9, 2026
5b5bf51
Zero-fill private_data when attaching an injection point
michaelpq Apr 10, 2026
90630ec
Document new catalog columns, missed in commit 8185bb5347.
jeff-davis Apr 10, 2026
34a3078
Fix RI fast-path crash under nested C-level SPI
amitlan Apr 10, 2026
0302940
Fix typo left by 34a30786293
amitlan Apr 10, 2026
980c1a8
Fix FK fast-path scan key ordering for mismatched column order
amitlan Apr 10, 2026
155c03e
Assert index_attnos[0] == 1 in ri_FastPathFlushArray()
amitlan Apr 10, 2026
f6936bf
Fix var_is_nonnullable() to account for varreturningtype
Apr 10, 2026
d6e96ba
Move afterTriggerFiringDepth into AfterTriggersData
amitlan Apr 10, 2026
009ea1b
Add test case for same-type reordered FK columns
amitlan Apr 10, 2026
2478bd5
Fix incremental JSON parser numeric token reassembly across chunks.
adunstan Apr 9, 2026
2b5ba2a
Fix heap-buffer-overflow in pglz_decompress() on corrupt input.
adunstan Apr 9, 2026
4a18907
Add built-in fuzzing harnesses for security testing.
adunstan Apr 9, 2026
3f8913f
Use size_t instead of Size in pg_waldump
adunstan Apr 10, 2026
eec8e23
Revert "Add built-in fuzzing harnesses for security testing."
adunstan Apr 10, 2026
de74d1e
Adjust log level of logical decoding messages by context
MasaoFujii Apr 10, 2026
2a3d2f9
doc: Improve consistency of parallel vacuum description.
MasahikoSawada Apr 10, 2026
c22d115
Fix unstable log verification in test_autovacuum.
MasahikoSawada Apr 10, 2026
b2a17ba
read_stream: Remove obsolete comment.
macdice Apr 10, 2026
77d0e82
Fix estimate_array_length error with set-operation array coercions
Apr 11, 2026
80156ce
Honor passed-in database OIDs in pgstat_database.c
michaelpq Apr 11, 2026
a78cf59
Doc: use "an SQL" consistently rather than "a SQL"
david-rowley Apr 12, 2026
a63bbc8
Use stack-allocated StringInfoDatas, where possible
david-rowley Apr 12, 2026
e3e26d0
Fix unlikely overflow bug in bms_next_member()
david-rowley Apr 12, 2026
5d35531
test_saslprep: Fix issue with copy of input bytea
michaelpq Apr 13, 2026
49ce418
Improve various new-to-v19 appendStringInfo calls
david-rowley Apr 13, 2026
85c17f6
Fix excessive logging in idle slotsync worker.
Apr 13, 2026
8f81c92
Fix capitalization in publication describe output.
Apr 13, 2026
4123755
Add log file support to logging.c
petere Apr 13, 2026
847336b
pg_createsubscriber: Use logging.c log file callback
petere Apr 13, 2026
f5528b9
pg_createsubscriber: Remove separate logfile_open() function
petere Apr 13, 2026
99b726a
pg_createsubscriber: Don't use MAXPGPATH
petere Apr 13, 2026
b47854b
Update Unicode data to CLDR 48.2
petere Apr 13, 2026
a8b61c2
Explicitly forbid non-top-level WAIT FOR execution
akorotkov Apr 13, 2026
3311ccc
pg_plan_advice: Handle non-repeatable TABLESAMPLE scans.
robertmhaas Apr 13, 2026
1faf9df
pg_plan_advice: Add alternatives test to Makefile.
robertmhaas Apr 13, 2026
0f93ebb
pg_plan_advice: Fix a bug when a subquery is pruned away entirely.
robertmhaas Apr 13, 2026
c644aca
pg_plan_advice: Export feedback-related definitions.
robertmhaas Apr 13, 2026
f4a4f1a
doc: Fix a couple of mistakes in pgplanadvice.sgml
robertmhaas Apr 13, 2026
e89f98f
doc: Remove stray word from pg_stash_advice docs.
robertmhaas Apr 13, 2026
06ce97b
Fix overrun when comparing with unterminated ICU language string.
jeff-davis Apr 13, 2026
fce3f7d
Add missing period to HINT messages.
Apr 14, 2026
66ad764
Replace deprecated StaticAssertStmt() with StaticAssertDecl()
hlinnaka Apr 14, 2026
67d318e
Add tests for low-level PGLZ [de]compression routines
michaelpq Apr 14, 2026
dacd8fa
Check for unterminated strings when calling uloc_getLanguage().
jeff-davis Apr 14, 2026
1f108fc
Fix pfree crash in pg_get_role_ddl() and pg_get_database_ddl().
adunstan Apr 14, 2026
363af93
Fix var_is_nonnullable() to handle invalid NOT NULL constraints
Apr 15, 2026
972c14f
doc: first draft of PG 19 release notes
bmomjian Apr 15, 2026
3e2a149
Rework signal handler infrastructure to pass sender info as argument.
adunstan Apr 14, 2026
f30d0c7
Fix COPY TO FORMAT JSON to exclude generated columns.
adunstan Apr 15, 2026
e70ac90
doc PG 19 relnotes: adjust ShmemRequestStruct item
bmomjian Apr 15, 2026
23ec74c
doc PG 19 relnotes: add missing March 16 autovacuum score item
bmomjian Apr 15, 2026
57f7688
doc PG 19 relnotes: addjust CREATE/ALTER PUBLICATION "EXCEPT"
bmomjian Apr 15, 2026
caebf16
doc PG 19 relnotes: fix "now targets"
bmomjian Apr 15, 2026
75693dc
doc PG 19 relnotes: remove "Lakshmi N" as author of checksums
bmomjian Apr 15, 2026
3837e72
doc PG 19 relnotes: fixes for commands and authors
bmomjian Apr 15, 2026
be32494
doc PG 19 relnotes: add free space map all-visible item
bmomjian Apr 15, 2026
7102ce9
doc PG 19 relnotes: remove doc author from "Allow autovacuum"
bmomjian Apr 15, 2026
ee55025
Use proc_exit() for walreceiver exit in WalRcvWaitForStartPosition()
MasaoFujii Apr 16, 2026
b5062a4
Fix incorrect comment in JsonTablePlanJoinNextRow()
amitlan Apr 16, 2026
059cf7f
Fix pg_overexplain to emit valid output with RANGE_TABLE option.
amitlan Apr 16, 2026
9a61890
Fix comments for Korean encodings in encnames.c
macdice Apr 16, 2026
c86d2cc
Add missing include
petere Apr 16, 2026
1a51ec1
MSVC: Turn missing function declaration into an error
petere Apr 16, 2026
4abcdc1
doc: Add missing GUCs to SSL SNI docs
danielgustafsson Apr 16, 2026
2fd84e2
Use XLogRecPtrIsValid() consistently for WAL position checks
MasaoFujii Apr 16, 2026
2dc34ea
doc PG 19 relnotes: corrections reported to me privately
bmomjian Apr 16, 2026
af1ed03
doc PG 19 relnotes: update author
bmomjian Apr 16, 2026
b4c1b2b
Update FSM during prune/freeze replay even if freespace is zero
melanieplageman Apr 16, 2026
191a037
doc PG 19 relnotes: add author and move items
bmomjian Apr 16, 2026
05c401d
Add missing initialization
alvherre Apr 16, 2026
446c400
Make psql DETAIL line test unconditionally optional.
adunstan Apr 15, 2026
f3c28c2
doc PG 19 relnotes: change "free space map" to "visibility map"
bmomjian Apr 16, 2026
cda0c4c
Reject invalid databases in pg_get_database_ddl()
amitlan Apr 17, 2026
4e0e1f3
psql: Fix incorrect tab completion after CREATE PUBLICATION ... EXCEP…
MasaoFujii Apr 17, 2026
950f50d
doc: Improve description of pg_ctl -l log file permissions
MasaoFujii Apr 17, 2026
f3ae1ec
Doc: Improve the wording of logical slot prerequisites.
Apr 17, 2026
4321dca
pg_plan_advice: Fix another unique-semijoin bug.
robertmhaas Apr 17, 2026
d65995c
Change PointerGetDatum() back to a macro
hlinnaka Apr 17, 2026
228a1f9
pg_plan_advice: pgindent
robertmhaas Apr 17, 2026
9018c7d
Fix 64-bit shifting in dynahash.c
petere Apr 19, 2026
5142f00
Minor fixes for test_bitmapset.c
david-rowley Apr 19, 2026
63a116a
Meson: Fix check_header() for readline and gssapi
michaelpq Apr 20, 2026
090c429
Flush statistics during idle periods in parallel apply worker.
Apr 20, 2026
5936afe
Fix incorrect format placeholders
petere Apr 20, 2026
04f9ea3
Add missing Datum conversions
petere Apr 20, 2026
20efbdf
Clean up remove_rel_from_query() after self-join elimination commit
Apr 20, 2026
23cbade
049_wait_for_lsn.pl: create function and procedure at once
akorotkov Apr 20, 2026
158d8fa
doc PG 19 relnotes: fix typo, "date" -> "data"
bmomjian Apr 20, 2026
5dbb63f
REPACK: do not require REPLICATION or LOGIN
alvherre Apr 20, 2026
207cb2a
Make ExecForPortionOfLeftovers() obey SRF protocol.
tglsfdc Apr 20, 2026
cfcd571
Clean up all relid fields of RestrictInfos during join removal.
tglsfdc Apr 20, 2026
79fba6e
doc: Fix missing role attribute in pg_get_tablespace_ddl() description.
MasahikoSawada Apr 20, 2026
59919ec
style: define parameterless functions as foo(void).
jeff-davis Apr 20, 2026
bdcb85b
Fix callers of unicode_strtitle() using srclen == -1.
jeff-davis Apr 20, 2026
f0ac6d4
Fix relid-set clobber during join removal.
tglsfdc Apr 20, 2026
f1cfb48
plsample: Use TextDatumGetCString() for text-to-CString conversion
MasaoFujii Apr 20, 2026
524cbb5
doc: Correct context description for some JIT support GUCs
MasaoFujii Apr 20, 2026
8155581
doc: Use "integer" for some I/O worker GUC type descriptions
MasaoFujii Apr 20, 2026
9b43e67
Fix orphaned processes when startup process fails during PM_STARTUP
michaelpq Apr 21, 2026
c6a79be
Fix incorrect NEW references to generated columns in rule rewriting
Apr 21, 2026
d3bba04
Fix a set of typos and grammar issues across the tree
michaelpq Apr 21, 2026
81c082f
Make plpgsql_trap test more robust and less resource-intensive.
tglsfdc Apr 21, 2026
1cd3cd3
Remove gen_node_support.pl's ad-hoc ABI stability check.
tglsfdc Apr 21, 2026
da68746
Make local buffers pin limit more conservative
melanieplageman Apr 21, 2026
85ae8ab
Stabilize plancache test against on-access VM setting
melanieplageman Apr 21, 2026
62407d2
Stabilize btree_gist test against on-access VM setting
melanieplageman Apr 21, 2026
31b0544
bufmgr: use I/O stats arguments in FlushUnlockedBuffer()
melanieplageman Apr 21, 2026
64b2b42
Fix not-quite-right Makefile for src/test/modules/test_checksums.
tglsfdc Apr 21, 2026
9d3e094
Allow ALTER INDEX .. ATTACH PARTITION to validate a parent index
michaelpq Apr 22, 2026
1b9dc2c
Fix some const qualifier use in ri_triggers.c
amitlan Apr 22, 2026
7834251
Fix expansion of EXCLUDED virtual generated columns.
deanrasheed Apr 22, 2026
5548a96
Fix UPDATE/DELETE ... WHERE CURRENT OF on a table with virtual columns.
deanrasheed Apr 22, 2026
713e553
Preserve extension dependencies on indexes during partition merge/split
akorotkov Apr 22, 2026
844bb90
Prevent buffer overrun in spell.c's CheckAffix().
tglsfdc Apr 22, 2026
d7970e7
Prevent some buffer overruns in spell.c's parsing of affix files.
tglsfdc Apr 22, 2026
a507776
Guard against overly-long numeric formatting symbols from locale.
tglsfdc Apr 22, 2026
d14f69a
Harmonize function parameter names for Postgres 19.
petergeoghegan Apr 22, 2026
e471dc5
pg_upgrade: Fix detection of invalid logical replication slots.
MasahikoSawada Apr 22, 2026
dbf217c
catcache.c: use C_COLLATION_OID for texteqfast/texthashfast.
jeff-davis Apr 22, 2026
98f5105
Add USDT static tracepoints to pgstat_report_wait_start/end
Mar 18, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
88 changes: 84 additions & 4 deletions .cirrus.star
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ https://github.com/bazelbuild/starlark/blob/master/spec.md
See also .cirrus.yml and src/tools/ci/README
"""

load("cirrus", "env", "fs")
load("cirrus", "env", "fs", "re", "yaml")


def main():
Expand All @@ -18,32 +18,112 @@ def main():

1) the contents of .cirrus.yml

2) if defined, the contents of the file referenced by the, repository
2) computed environment variables

3) if defined, the contents of the file referenced by the, repository
level, REPO_CI_CONFIG_GIT_URL variable (see
https://cirrus-ci.org/guide/programming-tasks/#fs for the accepted
format)

3) .cirrus.tasks.yml
4) .cirrus.tasks.yml
"""

output = ""

# 1) is evaluated implicitly


# Add 2)
additional_env = compute_environment_vars()
env_fmt = """
###
# Computed environment variables start here
###
{0}
###
# Computed environment variables end here
###
"""
output += env_fmt.format(yaml.dumps({'env': additional_env}))


# Add 3)
repo_config_url = env.get("REPO_CI_CONFIG_GIT_URL")
if repo_config_url != None:
print("loading additional configuration from \"{}\"".format(repo_config_url))
output += config_from(repo_config_url)
else:
output += "\n# REPO_CI_CONFIG_URL was not set\n"

# Add 3)

# Add 4)
output += config_from(".cirrus.tasks.yml")


return output


def compute_environment_vars():
cenv = {}

###
# Some tasks are manually triggered by default because they might use too
# many resources for users of free Cirrus credits, but they can be
# triggered automatically by naming them in an environment variable e.g.
# REPO_CI_AUTOMATIC_TRIGGER_TASKS="task_name other_task" under "Repository
# Settings" on Cirrus CI's website.

default_manual_trigger_tasks = ['mingw', 'netbsd', 'openbsd']

repo_ci_automatic_trigger_tasks = env.get('REPO_CI_AUTOMATIC_TRIGGER_TASKS', '')
for task in default_manual_trigger_tasks:
name = 'CI_TRIGGER_TYPE_' + task.upper()
if repo_ci_automatic_trigger_tasks.find(task) != -1:
value = 'automatic'
else:
value = 'manual'
cenv[name] = value
###

###
# Parse "ci-os-only:" tag in commit message and set
# CI_{$OS}_ENABLED variable for each OS

# We want to disable SanityCheck if testing just a specific OS. This
# shortens push-wait-for-ci cycle time a bit when debugging operating
# system specific failures. Just treating it as an OS in that case
# suffices.

operating_systems = [
'compilerwarnings',
'freebsd',
'linux',
'macos',
'mingw',
'netbsd',
'openbsd',
'sanitycheck',
'windows',
]
commit_message = env.get('CIRRUS_CHANGE_MESSAGE')
match_re = r"(^|.*\n)ci-os-only: ([^\n]+)($|\n.*)"

# re.match() returns an array with a tuple of (matched-string, match_1, ...)
m = re.match(match_re, commit_message)
if m and len(m) > 0:
os_only = m[0][2]
os_only_list = re.split(r'[, ]+', os_only)
else:
os_only_list = operating_systems

for os in operating_systems:
os_enabled = os in os_only_list
cenv['CI_{0}_ENABLED'.format(os.upper())] = os_enabled
###

return cenv


def config_from(config_src):
"""return contents of config file `config_src`, surrounded by markers
indicating start / end of the included file
Expand Down
Loading