Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
df18ff5
Update release-14 PostgreSQL minors using dev CI images
ihalatci Nov 13, 2026
934fce1
Use corrected release-14 dev images with matched libpq
ihalatci Nov 13, 2026
b121b69
Backport compatible Python dependency updates
ihalatci Nov 13, 2026
31d672e
Preserve nulling relids in injected catalog filters
ihalatci Nov 13, 2026
d4f1fd2
Complete Python-compatible failure-test dependency updates
ihalatci Nov 13, 2026
9a564c3
Adapt regression outputs to supported PostgreSQL security minors
ihalatci Nov 13, 2026
d6776b2
Handle PostgreSQL-eliminated distributed outer join relations
ihalatci Nov 13, 2026
caf156c
Test against verified release14 dependency dev images
ihalatci Nov 13, 2026
3ccb168
Require transformed relation evidence before outer join replacement
ihalatci Nov 13, 2026
1419228
Run outer-join regression setup on coordinator
ihalatci Nov 13, 2026
384de48
Make minor-version-dependent tests stable and drop alternative outputs
onurctirtir Nov 16, 2026
eedce71
Keep outer join rows whose only match is a hidden pg_class row
onurctirtir Nov 16, 2026
65233c5
Drop the join removal test for hidden pg_class rows
onurctirtir Nov 16, 2026
35cf355
Keep release-14 dependency versions at branch baseline
ihalatci Nov 17, 2026
bb7ef22
Use release-baseline dependency dev images
ihalatci Nov 17, 2026
77ed0e7
Backport post-PostgreSQL outer join normalization correction
ihalatci Nov 19, 2026
55eb90b
Keep metadata replay security fixture schema local
ihalatci Nov 20, 2026
3447df1
Clean up non-superuser object metadata test fixtures
ihalatci Nov 20, 2026
47b540b
Restore coordinator metadata before foreign server replay tests
ihalatci Nov 20, 2026
1e73462
Order partition metadata test results deterministically
ihalatci Nov 20, 2026
707d96f
Stabilize nested planning labels and constraint catalog assertions
ihalatci Nov 20, 2026
d9a556c
Use verified stable PostgreSQL test images for release 14
ihalatci Nov 22, 2026
8ebc9ef
Remap eliminated outer-join system and whole-row references
ihalatci Nov 23, 2026
99e6131
Isolate removed outer join regression from N-1 schedules
colm-mchugh Nov 25, 2026
3c6b8ac
Normalize eliminated distributed relations inside nullable subqueries
colm-mchugh Nov 25, 2026
0bd8c54
Disable self-join elimination explicitly during recursive replanning
colm-mchugh Nov 25, 2026
631738f
Treat both sides of a FULL join as nullable when normalizing removed …
colm-mchugh Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ USER citus

# build postgres versions separately for effective parrallelism and caching of already built versions when changing only certain versions
FROM base AS pg16
RUN MAKEFLAGS="-j $(nproc)" pgenv build 16.11
RUN MAKEFLAGS="-j $(nproc)" pgenv build 16.16
RUN rm .pgenv/src/*.tar*
RUN make -C .pgenv/src/postgresql-*/ clean
RUN make -C .pgenv/src/postgresql-*/src/include install
Expand All @@ -85,7 +85,7 @@ RUN cp -r .pgenv/src .pgenv/pgsql-* .pgenv/config .pgenv-staging/
RUN rm .pgenv-staging/config/default.conf

FROM base AS pg17
RUN MAKEFLAGS="-j $(nproc)" pgenv build 17.7
RUN MAKEFLAGS="-j $(nproc)" pgenv build 17.12
RUN rm .pgenv/src/*.tar*
RUN make -C .pgenv/src/postgresql-*/ clean
RUN make -C .pgenv/src/postgresql-*/src/include install
Expand All @@ -97,7 +97,7 @@ RUN cp -r .pgenv/src .pgenv/pgsql-* .pgenv/config .pgenv-staging/
RUN rm .pgenv-staging/config/default.conf

FROM base AS pg18
RUN MAKEFLAGS="-j $(nproc)" pgenv build 18.1
RUN MAKEFLAGS="-j $(nproc)" pgenv build 18.7
RUN rm .pgenv/src/*.tar*
RUN make -C .pgenv/src/postgresql-*/ clean
RUN make -C .pgenv/src/postgresql-*/src/include install
Expand Down Expand Up @@ -216,7 +216,7 @@ COPY --chown=citus:citus .psqlrc .
RUN sudo chown --from=root:root citus:citus -R ~

# sets default pg version
RUN pgenv switch 18.1
RUN pgenv switch 18.7

# make connecting to the coordinator easy
ENV PGPORT=9700
12 changes: 6 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
pgupgrade_image_name: "ghcr.io/citusdata/pgupgradetester"
style_checker_image_name: "ghcr.io/citusdata/stylechecker"
style_checker_tools_version: "0.8.33"
sql_snapshot_pg_version: "18.6"
image_suffix: "-ved0dad9"
pg16_version: '{ "major": "16", "full": "16.15" }'
pg17_version: '{ "major": "17", "full": "17.11" }'
pg18_version: '{ "major": "18", "full": "18.6" }'
upgrade_pg_versions: "16.15-17.11-18.6"
sql_snapshot_pg_version: "18.7"
image_suffix: "-vd742f20"
pg16_version: '{ "major": "16", "full": "16.16" }'
pg17_version: '{ "major": "17", "full": "17.12" }'
pg18_version: '{ "major": "18", "full": "18.7" }'
upgrade_pg_versions: "16.16-17.12-18.7"
steps:
# Since GHA jobs need at least one step we use a noop step here.
- name: Set up parameters
Expand Down
10 changes: 8 additions & 2 deletions src/backend/distributed/planner/deparse_shard_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

static void UpdateTaskQueryString(Query *query, Task *task);
static RelationShard * FindRelationShard(Oid inputRelationId, List *relationShardList);
static void ConvertRteToSubqueryWithEmptyResult(RangeTblEntry *rte);
static bool ShouldLazyDeparseQuery(Task *task);
static char * DeparseTaskQuery(Task *task, Query *query);

Expand Down Expand Up @@ -574,7 +573,7 @@ FindRelationShard(Oid inputRelationId, List *relationShardList)
* ConvertRteToSubqueryWithEmptyResult converts given relation RTE into
* subquery RTE that returns no results.
*/
static void
void
ConvertRteToSubqueryWithEmptyResult(RangeTblEntry *rte)
{
Relation relation = table_open(rte->relid, NoLock);
Expand Down Expand Up @@ -621,6 +620,13 @@ ConvertRteToSubqueryWithEmptyResult(RangeTblEntry *rte)

rte->rtekind = RTE_SUBQUERY;

/*
* Table references normally have inh set even when they have no children.
* This replacement is an ordinary empty subquery, not an append relation.
* Clear the table's flag so later planning does not mistake it for one.
*/
rte->inh = false;

/* no permission checking for this RTE */
rte->perminfoindex = 0;

Expand Down
Loading
Loading