Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2854 commits
Select commit Hold shift + click to select a range
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
4f0cbc6
Fix new-to-v19 -Wshadow warnings
david-rowley Apr 23, 2026
71123a5
Avoid casting void * function arguments
petere Apr 23, 2026
2e1d4fd
psql: Improve describe footer titles for publications.
Apr 23, 2026
4b2aa4b
Move REPACK (CONCURRENTLY) test out of stock regression tests
alvherre Apr 23, 2026
dd40691
Don't allow composite type to be member of itself via multirange
hlinnaka Apr 23, 2026
713bce9
Don't call CheckAttributeType() with InvalidOid on dropped cols
hlinnaka Apr 23, 2026
aa27a33
Add missing source files to several nls.mk
petere Apr 23, 2026
019cc99
pg_test_timing: fix unit in backward-clock warning
MasaoFujii Apr 23, 2026
94219a7
Fix incorrect logic for hashed IN / NOT IN with non-strict operators
david-rowley Apr 24, 2026
863c4b8
pg_test_timing: store timing deltas in int64
MasaoFujii Apr 24, 2026
2ff289d
Check for stack overflow when rewriting graph queries
petere Apr 24, 2026
9082680
Fix typos and grammar in graph table rewrite code
petere Apr 24, 2026
ac3bcc0
Fix collation of expressions in GRAPH_TABLE COLUMNS clause
petere Apr 24, 2026
9d2979d
pg_get_viewdef() and lateral references in COLUMNS of GRAPH_TABLE
petere Apr 24, 2026
3b28dad
meson: Differentiate top-level and custom targets
petere Apr 24, 2026
f64f62f
Update time zone data files to tzdata release 2026b.
tglsfdc Apr 24, 2026
7d7e58f
Don't use INT64_FORMAT in translatable string
petere Apr 25, 2026
f9c6380
Fix new test with comma in build directory.
nmisch Apr 26, 2026
b801d5e
Fix some memory leaks in the WAL receiver
michaelpq Apr 27, 2026
c66d6d1
Fix bogus calls in remove_self_join_rel()
Apr 27, 2026
31b9d90
doc: Fix grammar in some logical replication pages
michaelpq Apr 27, 2026
33db6c4
Fix DELETE/UPDATE FOR PORTION OF with rules
petere Apr 27, 2026
832e220
REPACK CONCURRENTLY: Don't use deferrable primary keys
alvherre Apr 27, 2026
7424aac
Fix wrong datum conversion for subretentionactive in CreateSubscription.
Apr 28, 2026
c210647
Fix xid_advance_interval when max_retention_duration is 0.
Apr 28, 2026
a0302ea
Remove unused ByteaSortSupport.abbreviate field
j-naylor Apr 29, 2026
ca9807d
Cosmetic fixes for radix sort
j-naylor Apr 29, 2026
748d871
Fix nbtree skip array parallel alloc accounting.
petergeoghegan Apr 29, 2026
c529ee3
Convert ddlutils regression tests to TAP tests.
adunstan Apr 29, 2026
df1bac4
Fix timezone dependence in test_misc/012_ddlutils.pl
adunstan Apr 29, 2026
a424e31
test_tidstore: Stabilize regression tests by sorting offsets.
MasahikoSawada Apr 29, 2026
3dd42ee
Suppress "has no symbols" linker warnings on macOS.
nathan-bossart Apr 29, 2026
4bfd0f1
Fix error of pg_stat_reset_shared()
michaelpq Apr 30, 2026
ac59a90
Adjust some incorrect *GetDatum() macros
michaelpq Apr 30, 2026
5941e7f
Fix errno check based on EINTR in pg_flush_data()
michaelpq Apr 30, 2026
2bf6c9f
Fix double table_close of sequence_rel in copy_sequences().
Apr 30, 2026
b120358
Prevent pg_enable/disable_data_checksums() on standby
danielgustafsson Apr 30, 2026
a0d8f4c
Test improvements for online checksums
danielgustafsson Apr 30, 2026
8fb8ded
Handle data_checksum state changes during launcher_exit
danielgustafsson Apr 30, 2026
25b922e
Fix invalid checksum state transition in checkpoints
danielgustafsson Apr 30, 2026
381d19d
Typo and spelling fixups for online checksums
danielgustafsson Apr 30, 2026
bf25e55
Improve handling of concurrent checksum requests
danielgustafsson Apr 30, 2026
1df361e
Improve database detection logic in datachecksumsworker
danielgustafsson Apr 30, 2026
75152c5
Fix data_checksum GUC show_hook
danielgustafsson Apr 30, 2026
5642a03
Avoid SIGSEGV in pg_get_database_ddl() on NULL tablespace
adunstan Apr 30, 2026
6cf49e8
Fix attnum remapping in generateClonedExtStatsStmt()
adunstan Apr 30, 2026
2fd787d
Remove working test that was supposed to fail
alvherre Apr 30, 2026
6ca631b
REPACK CONCURRENTLY: fix processing of toasted tuples
alvherre Apr 28, 2026
8d829f5
Fix JSON_ARRAY(query) empty set handling and view deparsing
May 1, 2026
410013d
Use "concurrent delete" in serialization error for TM_Deleted cases
amitlan May 1, 2026
f76686c
Fix HAVING-to-WHERE pushdown with nondeterministic collations
May 1, 2026
c0b24b3
Avoid blocking indefinitely while finishing walsender shutdown
MasaoFujii May 1, 2026
0916282
doc: Mention validation attempt during ALTER INDEX .. ATTACH PARTITION
michaelpq May 1, 2026
f67dbd8
Fix BF failure introduced in commit 2bf6c9ff71.
May 1, 2026
b772f3f
Only show signal-sender PID/UID detail in server log
adunstan May 1, 2026
c34a280
Add missing connection validation in ECPG
adunstan May 1, 2026
dfb690d
Use barrier semantics when reading/writing writtenUpto
akorotkov May 3, 2026
a80a593
Fix memory ordering in WAIT FOR LSN wakeup mechanism
akorotkov May 3, 2026
df9f938
Remove redundant WAIT FOR LSN caller-side pre-checks
akorotkov May 3, 2026
cba67b5
Use replay position as floor for WAIT FOR LSN standby_(write|flush)
akorotkov May 3, 2026
e7cd592
Wake standby_write/standby_flush waiters from the WAL replay loop
akorotkov May 3, 2026
cb096e6
Improve WAIT FOR LSN test coverage
akorotkov May 3, 2026
21d2901
Document that WAIT FOR LSN is timeline-blind
akorotkov May 3, 2026
c06d1a4
Mark modified the FSM buffer as dirty during recovery
akorotkov May 3, 2026
bf3ead6
Simplify translatable messages for tuple value details in conflict.c.
May 4, 2026
2fcc8aa
doc: Fix up spacing around verbatim DocBook elements
petere May 4, 2026
b83a94a
Add missing serial commas
petere May 4, 2026
abff449
Fix options listing of pg_restore --no-globals
petere May 4, 2026
891a57c
Do not define type for a property graph
petere May 4, 2026
dc9e7c9
Handle nodes that may appear in GraphPattern expression trees
petere May 4, 2026
b5f92b8
Fix off-by-one in repack index loop
alvherre May 4, 2026
f6edd8e
Add ORDER BY to test query to stabilize test
petere May 4, 2026
93da297
Declare load_hosts() as returning HostsFileLoadResult.
tglsfdc May 4, 2026
5a55ea5
Consider collation when proving uniqueness from unique indexes
May 5, 2026
574581b
Consider collation when proving subquery uniqueness
May 5, 2026
1190f85
doc: Small synopsis wording change for consistency
petere May 5, 2026
d0eac3c
Make spelling consistent
petere May 5, 2026
eb2e2eb
Don't lose column values on REPACK
alvherre May 5, 2026
22f9207
Message style improvements (oauth related)
petere May 5, 2026
d0ed9ad
doc: Clean up title case use
petere May 5, 2026
648818b
postgres_fdw: Fix handling of abort-cleanup-failed connections.
May 5, 2026
6766264
Add missing guard for __builtin_constant_p
j-naylor May 5, 2026
a0a0c0c
Skip other sessions' temp tables in REPACK, CLUSTER, and VACUUM FULL
alvherre May 5, 2026
43dc21f
Document deprecated --wal-directory option for pg_verifybackup
petere May 6, 2026
2018bd6
Skip WAL for unlogged main fork during online checksum enable
danielgustafsson May 6, 2026
9a39056
Apply data-checksum worker throttling parameters
danielgustafsson May 6, 2026
486b9a9
Fix regex searching for page verification failures in tests
danielgustafsson May 6, 2026
5cdec42
Fix WAIT FOR LSN cleanup on subtransaction abort
akorotkov May 6, 2026
6827de9
Simplify code in objectaddress.c for some property graph objects
michaelpq May 7, 2026
5778fb3
Fix typo in error message
petere May 7, 2026
43fc1dc
pg_createsubscriber: Message improvements and corrections
petere May 7, 2026
52e629b
Message corrections for partition split/merge commands
j-naylor May 7, 2026
ecb2508
Rationalize error comments in partition split/merge tests
j-naylor May 7, 2026
b384cdb
Fix race condition in XLogLogicalInfo and ProcSignal initialization.
MasahikoSawada May 7, 2026
4c0f1e4
doc PG 19 relnotes: add missing commits and details
bmomjian May 7, 2026
2d773a9
doc PG 19 relnotes: correct two items
bmomjian May 8, 2026
4b1b2be
Fix use-after-free of qs in AfterTriggerEndQuery.
amitlan May 7, 2026
12ca57b
doc PG 19 relnotes: add UTF-8 case folding performance item
bmomjian May 8, 2026
ba82de4
Fix HAVING-to-WHERE pushdown for simple-CASE form
May 8, 2026
a1b7545
Consider opfamily and collation when removing redundant GROUP BY columns
May 8, 2026
3f7a1af
postgres_fdw: Fix syntax error in fetch_attstats().
May 8, 2026
a49b9cf
Use schema-qualified names in EXCEPT clause error messages.
May 8, 2026
9d124a1
Enforce RETURNING typmod for empty-set JSON_ARRAY(query)
May 8, 2026
901ed9b
Fix universal builds on MacOS
j-naylor May 8, 2026
c1fe2d1
pg_upgrade: Message improvements
petere May 11, 2026
2f1b16e
ltree: Fix overflows with lquery parsing
michaelpq May 11, 2026
d388e1d
Fix overflows with ts_headline()
michaelpq May 11, 2026
46593ae
Make palloc_array() and friends safe against integer overflow.
tglsfdc May 11, 2026
0dc1fdc
Harden our regex engine against integer overflow in size calculations.
tglsfdc May 11, 2026
066b7b1
Prevent buffer overrun in unicode_normalize().
tglsfdc May 11, 2026
c55cea5
Fix assorted places that need to use palloc_array().
tglsfdc May 11, 2026
b63f25b
Fix unbounded recursive handling of SSL/GSS in ProcessStartupPacket()
michaelpq May 11, 2026
43451a7
Guard against overflow in "left" fields of query_int and ltxtquery.
tglsfdc May 11, 2026
5924e25
Apply timingsafe_bcmp() in authentication paths
michaelpq May 11, 2026
46b4f5c
Fix SQL injection in logical replication origin checks.
nmisch May 11, 2026
76ab76f
Avoid passing unintended format codes to snprintf().
tglsfdc May 11, 2026
ec8ded4
Guard against unsafe conditions in usage of pg_strftime().
tglsfdc May 11, 2026
6d6348f
Fix MCV input array checks in statistics restore functions
michaelpq May 11, 2026
d389415
pg_createsubscriber: Obstruct SQL injection via subscription names.
nathan-bossart May 11, 2026
4793fc4
Check CREATE privilege on multirange type schema in CREATE TYPE.
nathan-bossart May 11, 2026
6a985e7
Avoid overflow in size calculations in formatting.c.
nathan-bossart May 11, 2026
a1063ee
Prevent path traversal in pg_basebackup and pg_rewind
michaelpq May 11, 2026
b2869eb
Fix integer-overflow and alignment hazards in locale-related code.
tglsfdc May 11, 2026
6d68fcb
Fix integer overflow in array_agg(), when the array grows too large
hlinnaka May 11, 2026
bd48114
Mark PQfn() unsafe and fix overrun in frontend LO interface.
nathan-bossart May 11, 2026
260e977
refint: Fix SQL injection and buffer overruns.
nathan-bossart May 11, 2026
906ea10
Remove test cases for field overflows in intarray and ltree.
tglsfdc May 11, 2026
36f52a5
Fix REPACK with WITHOUT OVERLAPS replica identity indexes
alvherre May 11, 2026
c3f7dde
Use palloc_array() in a few more places to avoid overflow
hlinnaka May 11, 2026
8974a7c
doc PG 19 relnotes: adjustments/removal of items
bmomjian May 11, 2026
8268e41
pg_stat_statements: Fix potential use-after-free of PlannedStmt
michaelpq May 12, 2026
7b22f15
Add psql tab completion for FOR PORTION OF clause
petere May 12, 2026
06fccab
doc PG 19 relnotes: remove "Optionally" for CPU optimizations
bmomjian May 12, 2026
163f20c
De-obfuscate the comment in tsrank.c's calc_rank_or().
tglsfdc May 12, 2026
cac0f24
doc PG 19 relnotes: add two optimizer hooks
bmomjian May 12, 2026
34be85f
psql: save/restore truePrint/falsePrint printQueryOpt values
bmomjian May 12, 2026
5255d6b
Do not count logical decoding cleanup aborts in xact_rollback
NikolayS Apr 17, 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