Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2332 commits
Select commit Hold shift + click to select a range
0079cc2
Fix tablecmds.c brace/fallthrough, typecmds.c ProcedureCreate/AssignT…
dimoffon May 25, 2026
98111d6
Fix tablecmds.c: missing } in ExecuteTruncateGuts dispatch block, rem…
dimoffon May 25, 2026
e7e2aa0
Fix tablecmds.c struct conflicts, missing fields, and remaining merge…
dimoffon May 25, 2026
7ce79f2
Fix ProcedureCreate calls: add GPDB prodataaccess/proexeclocation args
dimoffon May 25, 2026
ec4dff6
Fix vacuum.c, analyzefuncs.c, view.c, tablecmds_gp.c PG14 API changes
dimoffon May 25, 2026
e25723e
Fix cluster_rel void return type (PG14 changed from bool to void)
dimoffon May 25, 2026
43e7816
Fix procarray.c: vacuumFlags->statusFlags rename, remove duplicate line
dimoffon May 25, 2026
2415a72
Fix procsignal.c: add missing GPDB includes for Gp_role and HandleMov…
dimoffon May 25, 2026
679376e
Remove fe-protocol2 from backend libpq Makefile (protocol v2 removed …
dimoffon May 25, 2026
f8ac90e
Add CFLAGS_UNROLL_LOOPS/CFLAGS_VECTORIZE to configure script (PG14)
dimoffon May 25, 2026
3cbcd34
Fix postgres.c: duplicate definitions, conflicting types, missing brace
dimoffon May 25, 2026
379a62c
Fix forbidden_in_wal_sender type (int->char) and pg_signal_backend mi…
dimoffon May 25, 2026
2ab099e
Fix postgres.c maxmsglen uninitialized warning
dimoffon May 25, 2026
4292693
Fix pquery.c: utilityStmt reference, missing brace and comment opener
dimoffon May 25, 2026
fd80c2e
Fix utility.c: replace PG13 Reindex dispatch with ExecReindex
dimoffon May 25, 2026
ec17c36
Fix utility.c: DefineRelation args, CreateForeignTable, ProcessUtilit…
dimoffon May 25, 2026
61d48da
Fix datumstreamblock, elog, plancache, fts PG14 merge errors
dimoffon May 25, 2026
8e61d5c
Fix cdbdisp_async, ftsmessagehandler, syscache missing includes/args
dimoffon May 25, 2026
26d5776
Fix globals.c dupes, elog errcontext return types, pqPutMsgStart PG14
dimoffon May 25, 2026
7eb8085
Fix miscadmin.h uint32 types, cdbgang_async latch include, hex_encode…
dimoffon May 25, 2026
43a1dfd
Fix hex encode/decode args, postinit.c missing brace, lockfuncs.c mer…
dimoffon May 25, 2026
b8749ce
Fix guc.c config_group_names array, cdbpq queryclass, ORCA PG14 renam…
dimoffon May 25, 2026
f354586
Fix guc.c: remove orphan GUC entry, fix AtEOXact_GUC missing brace
dimoffon May 25, 2026
671c1b9
Fix guc.c: QUERY_TUNING enum, find_option signature, duplicate GUC en…
dimoffon May 25, 2026
6df11f3
Fix guc_gp.c escaped quotes, cdbgroupingpaths missing include and args
dimoffon May 25, 2026
fdafe20
Fix guc.c duplicate case, cdbmutate PG14 OID renames, ORCA F_RANK_
dimoffon May 25, 2026
f57f2b8
Add system_fk_info.h to GENERATED_HEADERS in catalog Makefile
dimoffon May 25, 2026
0936fa0
Fix cdbplan ModifyTable.plans, gpdbwrappers PG14 OID renames, numeric…
dimoffon May 25, 2026
4675625
Fix cdbpullup tlist_member_ignore_relabel declaration, binary_upgrade…
dimoffon May 25, 2026
9b51e9d
Fix cdbsubselect pull_varnos, selfuncs missing variable declarations
dimoffon May 25, 2026
019c8ed
Fix link errors: CopyFromErrorCallback dup, pg_GSS_error rename, acti…
dimoffon May 26, 2026
fb8dd59
Fix link errors: add missing PG14 common libs, restore lost GPDB func…
dimoffon May 26, 2026
3da00d0
Fix link errors: add sha1, pwritev, fe-trace, fix OpenSSL conditional
dimoffon May 26, 2026
84d9c63
Fix Makefile ifeq/else syntax for OpenSSL conditional
dimoffon May 26, 2026
3419b4e
Fix OpenSSL detection: set with_ssl=openssl when --with-openssl is used
dimoffon May 26, 2026
571d79a
Add with_ssl to configure ac_subst_vars list
dimoffon May 26, 2026
1c02512
Add sprompt.o to common Makefile for simple_prompt (PG14 moved from p…
dimoffon May 26, 2026
3bef0e1
Fix client utilities: pg_dump brace, initdb option_index, check.c, fi…
dimoffon May 26, 2026
d1edd6c
Replace corrupted client utility files with cloudberry PG14 versions
dimoffon May 26, 2026
68f527b
Revert client utilities to pre-merge GPDB versions, revert pg_dump to…
dimoffon May 26, 2026
e59e9c6
Fix client utility PG14 issues: simple_prompt include, validate_exec …
dimoffon May 26, 2026
0e048df
Fix simple_prompt PG14 API (return value), output_completion_banner, …
dimoffon May 26, 2026
dbfd008
Fix pg_dump.c: remove PG14 duplicate attrdef code block causing brace…
dimoffon May 26, 2026
46f49ad
Take PG14 upstream pg_rewind files, fix pg_upgrade output_completion_…
dimoffon May 26, 2026
b9741db
Fix check.c analyze_script_file_name, filemap.c TABLESPACE_VERSION_DI…
dimoffon May 26, 2026
9699491
Fix pg_rewind AO function, check.c analyze_script_file_name cleanup
dimoffon May 26, 2026
eb6df4d
Fix pg_dump.c binary_upgrade_set_type_oids_by_type_oid PG14 signature
dimoffon May 26, 2026
9ea8043
Fix pg_dump.c: remove PG13 ACL/rolname, fix binary_upgrade, getopt_lo…
dimoffon May 26, 2026
abe1fa4
Fix #if 0 block boundary in pg_dump.c attrdef section
dimoffon May 26, 2026
6ce1545
Remove more orphaned PG14 attrdef code from pg_dump.c CHECK constrain…
dimoffon May 26, 2026
c4104a9
Fix pg_dump/common.c: remove PG13 duplicates, fix brace balance, forw…
dimoffon May 26, 2026
17bb503
Remove #if 0 block entirely, keep single clean attrdef code path in p…
dimoffon May 26, 2026
4943bb2
Replace getTableAttrs with cloudberry PG14 version (no cloudberry-spe…
dimoffon May 26, 2026
563982e
Fix getTableAttrs insertion: remove duplicate function header
dimoffon May 26, 2026
5cbd7a4
Fix pg_dump: shouldPrintColumn return type, binary_upgrade dup, forma…
dimoffon May 26, 2026
358ea35
Fix pg_dump: remove const from dumpDumpableObject, PG13 printfPQExpBu…
dimoffon May 26, 2026
abc6024
Fix pg_dump: proallargtypes rename, collectSecLabels PG14 signature
dimoffon May 26, 2026
7ab8676
Fix pg_dump proarg renames, scripts/common.c simple_prompt and help_h…
dimoffon May 26, 2026
f379fa4
Fix pg_dump.c: initialize pg_type_array_oid
dimoffon May 26, 2026
417c86b
Fix scripts/common.c simple_prompt, connectDatabase API, dumputils ra…
dimoffon May 26, 2026
5c6c107
Fix pg_backup_archiver PG13 ConnectDatabase block, createdb ConnParams
dimoffon May 26, 2026
e1ddfb2
Fix createdb ConnParams removal, pg_backup_db binary_upgrade access
dimoffon May 26, 2026
b0b49d0
Add ConnParams type and connectMaintenanceDatabase_cparams wrapper
dimoffon May 26, 2026
31bd883
Add connectDatabase_cparams macro, fix all script ConnParams callers
dimoffon May 26, 2026
78b3d7e
Fix ConnParams pointer/value mismatch in script cparams calls
dimoffon May 26, 2026
19178d7
Adopt PG14 ConnParams API: use cloudberry scripts/common, revert wrap…
dimoffon May 26, 2026
5b4f6ad
Fix common.c: replace cloudberry fmtQualifiedIdEnc with fmtQualifiedId
dimoffon May 27, 2026
f96db4e
Fix PL/pgSQL: remove duplicate PLpgSQL_expr members, restore PLpgSQL_…
dimoffon May 27, 2026
9b8effe
Fix PL/pgSQL: last exec_prepare_plan arg, add PLPGSQL_DTYPE_ARRAYELEM
dimoffon May 27, 2026
bf9695a
Fix test/regress: ReadNextTransactionId rename, doputenv->setenv, run…
dimoffon May 27, 2026
91ae380
Fix pg_regress.c: broken sed replacement for setenv calls
dimoffon May 27, 2026
1a60336
Fix llvmjit_expr.c: add missing break after EEOP_SCALARARRAYOP_FAST_STR
dimoffon May 27, 2026
e5f0267
Fix file_fdw BeginCopyFrom: remove extra whereClause NULL arg (GPDB d…
dimoffon May 27, 2026
a38fa24
Add UUID_LIBS to mock test link flags (PG14 brin_minmax_multi uses uu…
dimoffon May 27, 2026
3237b4b
Remove uuid.o from mock test exclusion list (PG14 brin_minmax_multi n…
dimoffon May 27, 2026
185a312
Fix ProcessInterrupts unit test: use errstart_cold for ERROR+ levels …
dimoffon May 27, 2026
55eb9df
Fix all unit tests: update EXPECT_EREPORT for PG14 errstart_cold
dimoffon May 27, 2026
e121638
Add PG14 GUCs to unsync_guc_name.h for unit test coverage
dimoffon May 27, 2026
54ba437
Add more PG14 GUCs to unsync_guc_name.h: async_append, toast_compress…
dimoffon May 27, 2026
9378119
Add remaining PG14 GUCs: recovery_init_sync_method, remove_temp_files…
dimoffon May 27, 2026
826c1f7
Add PG14 GUCs: track_wal_io_timing, debug_invalidate_system_caches_al…
dimoffon May 27, 2026
52517bd
Add PG14 GUC: log_recovery_conflict_waits
dimoffon May 27, 2026
f3d3b9e
Add PG14 GUC: in_hot_standby
dimoffon May 27, 2026
a8db552
Fix remaining PG14 unit-test failures; document unit-test phase
dimoffon May 29, 2026
770bc1f
Fix PG14 initdb bootstrap + post-bootstrap catalog/planner regressions
dimoffon May 29, 2026
2d945ad
Document the initdb / cluster-bootstrap phase in PG13→14 merge rules
dimoffon May 29, 2026
f163e1b
Adopt PG14 UPDATE planning: set update_colnos, expand only for split-…
dimoffon May 29, 2026
b052a96
Fix PG14 merge regressions: initdb→dispatch-cluster crash chain
dimoffon Jun 1, 2026
4043276
Fix CopyErrorData ErrorContext assert in cdbdisp_dumpDispatchResult
dimoffon Jun 1, 2026
de521f1
Set maxmsglen for GPDB dispatch messages 'M'/'T' (fix "invalid messag…
dimoffon Jun 1, 2026
da6bc72
Fix plan-serialization desyncs blocking MPP DDL dispatch (PG14 merge)
dimoffon Jun 1, 2026
9e69b64
Fix coordinator SIGSEGV in transformDistributedBy: init cxt.inh_indexes
dimoffon Jun 1, 2026
784a566
Fix segment SIGSEGV on UPDATE/DELETE: use passed-in ResultRelInfo
dimoffon Jun 2, 2026
4627756
Fix multirange type creation crash on segments (OID dispatch)
dimoffon Jun 2, 2026
7769e15
Fix planner SIGSEGV pushing quals into CTE/subquery
dimoffon Jun 2, 2026
b8f2b0d
Fix INSERT producing duplicate rows: keep ModifyTable subpath Motion
dimoffon Jun 2, 2026
3f2bdad
Fix coordinator SIGSEGV on INSERT ... ON CONFLICT DO UPDATE
dimoffon Jun 2, 2026
5b6d1a6
Fix dispatched row-returning queries: register libpq command queue entry
dimoffon Jun 2, 2026
4583800
Fix INSERT ... ON CONFLICT DO UPDATE projecting NULL unchanged columns
dimoffon Jun 2, 2026
5d390af
Fix coordinator SIGSEGV in CREATE TABLE AS for QD-only plans
dimoffon Jun 2, 2026
8b7c1a4
Fix SIGSEGV chain in ALTER TABLE ... SET DISTRIBUTED BY
dimoffon Jun 2, 2026
4dfe476
Fix checkpointer crash on AO/AOCS file sync (missing syncsw handler)
dimoffon Jun 2, 2026
3aa322a
Fix AO/AOCS INSERT losing all rows: call table_dml_finish at end of M…
dimoffon Jun 2, 2026
085f1dd
Fix pg_locks segment crash + 16/19-column catalog mismatch
dimoffon Jun 2, 2026
0622027
Fix UPDATE/DELETE "could not find gp_segment_id in subplan's targetlist"
dimoffon Jun 2, 2026
9adcf8e
Fix partitioned UPDATE/DELETE "ModifyTable node is missing is-split-u…
dimoffon Jun 2, 2026
790c3de
Fix distribution-key UPDATE (Split Update) under the PG14 merge
dimoffon Jun 2, 2026
d86bef0
Fix "cache lookup failed for function 0" for non-combinable aggregates
dimoffon Jun 2, 2026
0169b23
Fix VACUUM dispatch for PG14 option changes (PROCESS_TOAST, tri-state…
dimoffon Jun 2, 2026
996a681
Fix UPDATE/DELETE on append-optimized tables ("feature not supported")
dimoffon Jun 2, 2026
59be6bc
Fix ordered-aggregate "ORDER/GROUP BY expression not found in targetl…
dimoffon Jun 2, 2026
cf09b92
Fix WindowAgg crash on column-valued ROWS/RANGE frame offsets
dimoffon Jun 2, 2026
e2e3359
Fix DISTINCT-qualified aggregate crash in MPP multi-stage grouping
dimoffon Jun 3, 2026
0ff1902
Fix VARSIZE_TO_SHORT to emit endianness-correct short varlena header
dimoffon Jun 3, 2026
e1b5f14
Fix bitmap-index VACUUM crash: pass ReindexParams to reindex_index()
dimoffon Jun 3, 2026
50e6b36
Fix temp-table buffer leak in DropRelFileNodesAllBuffers (PANIC "coul…
dimoffon Jun 3, 2026
8ad7a68
Fix SIGSEGV in btree index deletion over AO/AOCS tables (NULL index_d…
dimoffon Jun 3, 2026
a26db50
Fix SIGSEGV in EXPLAIN ANALYZE CREATE TABLE AS ... EXECUTE (intorel_s…
dimoffon Jun 3, 2026
3c1ced6
Fix CREATE TABLE AS ... EXECUTE: restore IntoClause to GetCachedPlan …
dimoffon Jun 3, 2026
d11443c
Fall back REINDEX CONCURRENTLY to non-concurrent on the coordinator
dimoffon Jun 3, 2026
dffeeb0
Fix SIGSEGV in distribution-key UPDATE of a partitioned table with re…
dimoffon Jun 3, 2026
a64c877
Fix split-update reinsert into a partitioned table with reordered chi…
dimoffon Jun 3, 2026
c842d72
Fix coordinator PANIC on gang-loss recovery with a temp namespace (PG14)
dimoffon Jun 3, 2026
3df9fc5
Fix COPY and nextval over MPP: restore pq_getmessage maxlen==0 = "no …
dimoffon Jun 3, 2026
16053f2
Fix SIGSEGV on COPY FROM into a partitioned table (PG14)
dimoffon Jun 3, 2026
943a423
Restore system_functions.sql in initdb (PG14): fixes 'syntax error at…
dimoffon Jun 4, 2026
478fabf
Fix binary dispatch of JoinExpr: write join_using_alias (PG14)
dimoffon Jun 4, 2026
1d9e893
Disable Result Cache (Memoize) by default: unsupported in GPDB MPP (P…
dimoffon Jun 4, 2026
2caffd4
Schedule create_function_0 so opr_sanity/type_sanity/conversion get t…
dimoffon Jun 4, 2026
fcf4c0c
Fix correlated targetlist subquery running uncorrelated (PG14)
dimoffon Jun 8, 2026
368fdab
Fix "subplan is missing Flow information" for EXISTS in targetlist (P…
dimoffon Jun 8, 2026
4dba704
Fix ORCA UPDATE SIGSEGV: populate ModifyTable.updateColnosLists (PG14)
dimoffon Jun 10, 2026
dfd85ea
Fix ORCA multi-aggregate wrong results: assign Aggref.aggno/aggtransn…
dimoffon Jun 10, 2026
4619f80
Fix ORCA "cache lookup failed for type 0": set SubscriptingRef.refres…
dimoffon Jun 10, 2026
f789d16
ORCA: fall back to planner for UPDATE/DELETE on partitioned tables (P…
dimoffon Jun 10, 2026
07591c3
Dispatch LIKE-cloned indexes to QEs: fix "oids were assigned, but not…
dimoffon Jun 10, 2026
f45b4ed
Fix FTS unable to reach mirrors: CAC_NOTCONSISTENT shadowed CAC_MIRRO…
dimoffon Jun 10, 2026
b21f568
pg_rewind: restore GPDB --slot option lost in the PG14 file replacement
dimoffon Jun 10, 2026
f63c42d
Expand UPDATE targetlist when any leaf partition is append-optimized …
dimoffon Jun 10, 2026
e299a81
Don't let tablespace-drop replay kill the startup process (PG14)
dimoffon Jun 10, 2026
6f599ea
Fix invalid EXPLAIN (FORMAT JSON/XML/YAML) output: unbalanced Plannin…
dimoffon Jun 10, 2026
390ef56
Fix planner AO UPDATE on tables with dropped columns (PG14)
dimoffon Jun 10, 2026
2eaff97
copydir: tolerate source files vanishing during WAL replay (PG14)
dimoffon Jun 10, 2026
70de8aa
Recreate missing tablespace location during WAL replay (PG14)
dimoffon Jun 10, 2026
6e6b395
ORCA: fix UPDATE on tables with dropped columns (PG14)
dimoffon Jun 10, 2026
584c2b9
Fix pg_class.reltype = 0 for all append-optimized tables (PG14)
dimoffon Jun 10, 2026
84125fc
Dispatch SQL-standard function bodies: serialize sql_body + raw-stmt …
dimoffon Jun 10, 2026
fd01220
Don't prefetch in ANALYZE block sampling of append-optimized tables (…
dimoffon Jun 10, 2026
fb67773
Align pg_terminate_backend catalog entry with PG14 (pid, timeout)
dimoffon Jun 10, 2026
8c2c4ab
Fix REFRESH MATERIALIZED VIEW CONCURRENTLY for distributed matviews (…
dimoffon Jun 10, 2026
3252402
Accept heap reloptions on partitioned roots (GPDB semantics) (PG14)
dimoffon Jun 10, 2026
09632e3
Execute CREATE FUNCTION on a copy so the dispatched tree stays raw (P…
dimoffon Jun 10, 2026
a5a0d90
Fix SQL-body function dispatch mutation + five more binary reader gap…
dimoffon Jun 10, 2026
676d883
Fall back to planner for partition keys with non-default opclasses (P…
dimoffon Jun 10, 2026
f3b3b46
gporca: survive task-less execution and nested gpos_exec
dimoffon Jun 10, 2026
22a9efb
Regenerate stale regress expected files from verified output (batch 1)
dimoffon Jun 10, 2026
a802b32
Regenerate stale regress expected files (batch 2a: subdir suites)
dimoffon Jun 10, 2026
1b7b44c
Fix pg_trigger relcache leak and double OID burn in CreateTrigger (PG14)
dimoffon Jun 10, 2026
497cd1c
regress: mask run-varying oids in AO auxiliary relation names
dimoffon Jun 10, 2026
5be9f16
Regenerate stale regress expected files (batch 2b: hand-vetted)
dimoffon Jun 10, 2026
bd37693
Regenerate expected files that had baked-in pg_trigger leak warnings
dimoffon Jun 11, 2026
db3c4c6
Restore lost guard: no AO UPDATE/DELETE under snapshot isolation (PG14)
dimoffon Jun 11, 2026
f64e188
CREATE TABLE LIKE ... INCLUDING STORAGE copies AM and reloptions agai…
dimoffon Jun 11, 2026
96f34e2
Track plain DETACH PARTITION in pg_stat_last_operation (PG14)
dimoffon Jun 11, 2026
9f650f0
Fix duplicate sequence values after dispatching a block to a QE (PG14)
dimoffon Jun 11, 2026
a43feda
Use the dispatched fast-default value on QEs (PG14)
dimoffon Jun 11, 2026
939daa6
Regenerate partition_join expected: PG14 single-subplan UPDATE shape
dimoffon Jun 11, 2026
529b603
Don't poison dispatched fast-default for partitioned ADD COLUMN (PG14)
dimoffon Jun 11, 2026
2f3adbd
Close the input file after COPY FROM (PG14)
dimoffon Jun 11, 2026
774a31d
Let VACUUM process AO auxiliary relations again (PG14)
dimoffon Jun 11, 2026
47fd9bd
Fix pg_class relcache leak in ALTER TABLE SET TABLESPACE (PG14)
dimoffon Jun 11, 2026
e9e3020
Close trigger result relations after GPDB CopyFrom (PG14)
dimoffon Jun 11, 2026
fbfa97c
Route split-update inserts to the source table for inheritance (PG14)
dimoffon Jun 11, 2026
26bbdf8
Clean baked warnings from expected files; mask PG14 libpq error prefix
dimoffon Jun 11, 2026
ab5dad5
gp_foreign_data: drop leftover FDW objects that break fast_default
dimoffon Jun 11, 2026
0f4c1ac
Update expected error wording to PG14 (strings, limit, rowtypes)
dimoffon Jun 11, 2026
af8fd47
Restore IS [NOT] OF syntax dropped in the PG14 merge
dimoffon Jun 11, 2026
53ddbc0
Dispatch CTE SEARCH/CYCLE clauses to segments (PG14)
dimoffon Jun 11, 2026
a9faf9d
Carry the old tuple for inheritance UPDATEs that need it (PG14)
dimoffon Jun 11, 2026
aafaab4
Fix recursive CTE losing rows beyond the first iteration (PG14)
dimoffon Jun 11, 2026
afaf747
Dispatch pristine CREATE/ALTER POLICY statements (PG14)
dimoffon Jun 11, 2026
a07700e
Refuse REINDEX CONCURRENTLY on system catalogs like upstream (PG14)
dimoffon Jun 11, 2026
f5e4e0b
create_function_0: drop helpers that create_function_1 defines itself
dimoffon Jun 11, 2026
c3e4024
Renumber each Agg node's aggregates densely at executor init (PG14)
dimoffon Jun 11, 2026
0418e43
Regenerate 59 stale expected files from verified run19 output (batch 3)
dimoffon Jun 11, 2026
4f73c1c
Exclude dropped columns from split-update update_colnos (PG14)
dimoffon Jun 11, 2026
6d2a6d5
Regress: finish create_function_0 dedup; mask temp-object names
dimoffon Jun 11, 2026
620fcec
Regenerate 7 more expected files from run20 (batch 4)
dimoffon Jun 11, 2026
63934dd
limit_optimizer: PG14 WITH TIES error wording (variant missed earlier)
dimoffon Jun 11, 2026
fbe7313
returning_gp: un-bake the cross-partition UPDATE RETURNING failure
dimoffon Jun 11, 2026
84d50ea
select_into: mask per-segment actual row counts in EXPLAIN ANALYZE
dimoffon Jun 11, 2026
c03669d
copy/tablespace: port GPDB divergences into the .source outputs
dimoffon Jun 11, 2026
3cab355
Fix all multi-DQA aggregates returning NULL/0 (PG14)
dimoffon Jun 11, 2026
76c2688
Regenerate DQA-era expected files from corrected output (batch 5)
dimoffon Jun 11, 2026
8af6a1f
incremental_analyze: mask root-partition merged-stat estimates
dimoffon Jun 11, 2026
b3adb17
Stabilize the remaining flapping regress assertions
dimoffon Jun 11, 2026
269e342
Honor per-Aggref aggsplit for combine and skipfinal decisions (PG14)
dimoffon Jun 11, 2026
8d09b07
Regress: clear the last fix-era bakes and tie-order flaps
dimoffon Jun 11, 2026
97027bf
Number Aggrefs in SCATTER BY expressions (PG14)
dimoffon Jun 11, 2026
b8266fa
Restore the input motion for window functions (PG14)
dimoffon Jun 11, 2026
9a30d12
Restore CREATE FUNCTION ... WITH (attribute list) syntax (PG14)
dimoffon Jun 11, 2026
ed2b242
create_index: align expected with the f1[0] tiebreak ordering
dimoffon Jun 11, 2026
6abfb5e
Register the DESCRIBE callback at CREATE FUNCTION again (PG14)
dimoffon Jun 11, 2026
67c396e
Regenerate window-function expected files post motion fix (batch 6)
dimoffon Jun 11, 2026
8e6aba0
Regress: final stabilizations for table_functions and incremental_ana…
dimoffon Jun 11, 2026
274f784
Set tts_tableOid in AO/AOCS bitmap fetches (PG14)
dimoffon Jun 11, 2026
9aa93e7
uao_catalog_tables: refresh AO auxiliary-name masking tokens
dimoffon Jun 11, 2026
f1ccc14
Revert "uao_catalog_tables: refresh AO auxiliary-name masking tokens"
dimoffon Jun 11, 2026
553d221
Row identity for DML on append-optimized auxiliary relations (PG14)
dimoffon Jun 11, 2026
1d83bef
Regen uao/uaocs_catalog_tables expecteds; fix init_file $1 perl warning
dimoffon Jun 11, 2026
2e58fed
pageinspect: install 1.9 script and compile gistfuncs.c (PG14)
dimoffon Jun 11, 2026
f78b83b
Fix PG14 API drift in test harnesses: isolation2, heap_checksum, work…
dimoffon Jun 11, 2026
bae773e
ORCA: treat PG14 reltuples=-1 as empty in cdb_estimate_partitioned_nu…
dimoffon Jun 11, 2026
9c3ed35
pg_dump: repair merge-stitched PREPARE queries (dumpFunc, dumpRangeTy…
dimoffon Jun 11, 2026
3305daf
Restore GPDB error-location suffix for internal errors (PG14)
dimoffon Jun 11, 2026
0b94843
Fix OpenSSL build gating for PG14: with_openssl -> with_ssl
dimoffon Jun 11, 2026
54b6c61
gppc: translate GppcReportLevel to/from PG14 elog levels
dimoffon Jun 11, 2026
a318efb
gpfdist regress: PG14 TRUNCATE-on-foreign-table message
dimoffon Jun 11, 2026
baf97ab
plpgsql_array test: rename "complex" type; collides with GPDB builtin
dimoffon Jun 11, 2026
cf3d387
gpload: finish the PyGreSQL -> psycopg2 port
dimoffon Jun 11, 2026
fcfd0b5
isolation: accept unquoted session/step names in spec files (PG14)
dimoffon Jun 11, 2026
e8baadc
Restore GPDB wait events lost in the PG14 pgstat split
dimoffon Jun 11, 2026
bc9b4a9
Treat PG14's reltuples=-1 as "never analyzed" in leaf stats merge gate
dimoffon Jun 11, 2026
ca1a935
Regenerate 17 regress expecteds for restored elog suffixes and reltup…
dimoffon Jun 11, 2026
faafc7a
Fix checkCpuSetByRole semicolon scan reading past the cpuset string
dimoffon Jun 11, 2026
14dd2d0
pg_rewind: run crash-recovery postgres against DB_FOR_COMMON_ACCESS a…
dimoffon Jun 11, 2026
3ee3aec
Serialize StatsElem in binary node functions (PG14)
dimoffon Jun 11, 2026
a9238fd
Close latent raw-statement binary dispatch gaps: ON CONFLICT, WindowD…
dimoffon Jun 11, 2026
a2ed657
pg_upgrade test: create the new cluster with the inherited locale
dimoffon Jun 11, 2026
372af6e
Regenerate isolation2 lockmodes_optimizer for PG14 partition DML locking
dimoffon Jun 11, 2026
a368562
isolation2: autovacuum-analyze expects reltuples=-1 for never-analyze…
dimoffon Jun 11, 2026
074ef5c
external_table: per-branch LIMIT scans may stop before reaching the r…
dimoffon Jun 11, 2026
0cfef15
Do not dispatch AT_ReAddStatistics; read CreateStatsStmt in binary re…
dimoffon Jun 11, 2026
d4347cd
gpload: match PyGreSQL error text and default notice printing
dimoffon Jun 11, 2026
f8648f0
Run clang-format over earlier ORCA fixes
dimoffon Jun 11, 2026
b2a77fc
Regenerate analyze/vacuum_gp/bfv_partition for restored leaf stats merge
dimoffon Jun 11, 2026
808817a
Regenerate gpsd/dpe_optimizer for restored leaf stats merge
dimoffon Jun 11, 2026
3a92b2c
Restore libpq errorMessage reset on connection success (PG14)
dimoffon Jun 12, 2026
4700ef9
pg_dump: emit GPDB 3-arg binary-upgrade calls for pg_type OIDs (PG14)
dimoffon Jun 12, 2026
58eafe0
Dispatch ALTER TYPE ... SET (...) to segments (PG14)
dimoffon Jun 12, 2026
f054f2e
Fix lost QE dispatch in ReindexMultipleInternal: shadowed result (PG14)
dimoffon Jun 12, 2026
df7123e
Do not set PROC_IN_VACUUM: GPDB vacuums write data (PG14)
dimoffon Jun 12, 2026
3a8be6c
Test baselines and harness fixes for PG14 (run3 triage)
dimoffon Jun 12, 2026
7acb7ae
Regenerate decode_expr/as_alias expecteds under en_US.UTF-8
dimoffon Jun 12, 2026
2254fdf
ssl test suite: survive stale client certs and always tear down
dimoffon Jun 12, 2026
ce1a82d
prevent_ao_wal: do not leave the standby coordinator broken (PG14)
dimoffon Jun 12, 2026
0852a60
Restore base_backup_post_create_checkpoint fault point (PG14)
dimoffon Jun 14, 2026
c4dfe4f
Fix coordinator SyncRep: exempt QD from sync_standbys_defined fast-ex…
dimoffon Jun 14, 2026
542296d
Restore bg_quickdie SIGQUIT handler in bgwriter (PG14)
dimoffon Jun 14, 2026
6e363e8
JIT: register GPDB fast ScalarArrayOp evaluators in llvmjit_types.c
dimoffon Jun 15, 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.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ README.* conflict-marker-size=32
*.data -whitespace
contrib/pgcrypto/sql/pgp-armor.sql whitespace=-blank-at-eol
src/backend/catalog/sql_features.txt whitespace=space-before-tab,blank-at-eof,-blank-at-eol
src/backend/utils/Gen_dummy_probes.pl.prolog whitespace=-blank-at-eof

# Test output files that contain extra whitespace
*.out -whitespace
Expand Down
107 changes: 107 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Project overview

This is **ArenaDatabaseDB (ADB)** — an MPP (Massively Parallel Processing) database fork of Greenplum Database (GPDB), itself built on PostgreSQL. The repo tracks upstream PostgreSQL and periodically merges new major PostgreSQL versions into GPDB-specific branches.

**Key branches:**
- `adb-6.x` — production ADB 6.x line (main branch for PRs)
- `ai-merge-stage1` — staging branch for the current PG 8.0.0-alpha.0 → GPDB merge
- `gg_upgrade` — tracks upstream PostgreSQL code

## Build

Requires: GNU make, autoconf 2.69, Bison, Flex, Perl, and standard C toolchain.

```bash
# Configure (first time or after configure.in changes)
./configure --prefix=/usr/local/pgsql

# Build everything
make world

# Install
make install

# Clean
make distclean
```

`make world` builds `src/` and `contrib/`. Plain `make` builds `src/` only.

## Running tests

```bash
# Run regression tests against a temporary installation (no running server needed)
make check

# Run against an already-running server
make installcheck

# Run all test suites (regress, isolation, pl, contrib, bin)
make check-world
make installcheck-world

# Run parallel regression tests
make installcheck-parallel

# Run a specific test file by name against a running server
cd src/test/regress && ./pg_regress --inputdir=. --schedule=serial_schedule <testname>

# Run isolation (concurrent transaction) tests
cd src/test/isolation && make installcheck
# Or a specific spec: ./pg_isolation_regress <specname>
```

Set `MAX_CONNECTIONS=N` to cap parallelism: `make check MAX_CONNECTIONS=4`.

## Code style

- **C/Perl**: tabs, 4-space indent. Run `pgindent` (see `src/tools/pgindent/README.gpdb`) before submitting.
- **Python**: spaces, 4-space indent. Must pass `pylint`.
- **Go**: formatted with `gofmt`.
- Formatting config is in `.editorconfig`.
- Follow [PostgreSQL Coding Conventions](https://www.postgresql.org/docs/current/source.html).

## Architecture

```
src/backend/ Main server process
access/ Table and index access methods (heap, nbtree, gin, gist, brin, hash, spgist)
catalog/ System catalog management
commands/ SQL command execution (DDL)
executor/ Query execution engine
nodes/ Node type definitions, copy/equal/out functions
optimizer/ Query planner (geqo, path, plan, prep, util)
parser/ SQL parser
replication/ WAL streaming, logical replication
storage/ Buffer manager, file I/O, lock manager, page layout
utils/ Memory management, error handling, type system, caching

src/include/ Header files (mirrors backend/ structure)
src/bin/ Client utilities: psql, pg_dump, pg_ctl, pg_basebackup, pg_upgrade, etc.
src/pl/ Procedural languages: plpgsql, plperl, plpython, tcl
src/test/ Test suites: regress, isolation, authentication, subscription, ssl
contrib/ Optional extensions (pg_stat_statements, pageinspect, postgres_fdw, etc.)
```

GPDB/ADB-specific distributed execution concepts used throughout the codebase:
- **Motion nodes** — data movement operators between MPP segments
- **Slices** — independent units of parallel execution
- **ORCA** — the Greenplum cost-based optimizer (referenced in optimizer/ and JIT-related code)
- **arenadata_toolkit** — ADB-specific monitoring extension (tested in isolation2 tests)

## PostgreSQL major-version merge workflow

The primary ongoing task on `ai-merge-stage1` is merging upstream PostgreSQL into GPDB. The full decision matrix and workflow are documented in [`GG_PG_MERGE_SKILL.md`](./GG_PG_MERGE_SKILL.md). Key points:

1. `git merge --no-commit --no-ff <upstream-tag>`
2. Record conflicts: `git diff --name-only --diff-filter=U`
3. Resolve semantically — never blindly take `ours` or `theirs`
4. Adopt upstream API shapes first; re-graft GPDB-specific logic into the new shape
5. Verify: `rg "^(<<<<<<<|=======|>>>>>>>)"` must return nothing
6. Build and run targeted regression tests before finalizing

Reference commits for resolution style: `1e11aaff762`, `f2b03841`, `1fa092913d2`, `3e9744465db`, `ed7a5095716ee`, `4dbcb3f844ec`, `a91e2fa94180`, `55a1954da16`, `80831bcdbe`, `eb57bd9c1`.
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the PostgreSQL License is provided below:
PostgreSQL Database Management System
(formerly known as Postgres, then as Postgres95)

Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group

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

Expand Down
Loading