Skip to content

Conversation

@MisterRaindrop
Copy link
Contributor

@MisterRaindrop MisterRaindrop commented Feb 10, 2026

support parallel foreign scan support and add a new mock fdw for testing parallel foreign scans.

Key changes include:

  • Implementation of parallel_foreign_scan_test_fdw to generate synthetic rows and support parallel scanning.
  • Modifications to the optimizer to generate gather paths for foreign tables with parallel capabilities.
  • Updates to execMain.c to enable parallel mode for gather nodes based on the execution context.
  • Addition of test cases to validate the functionality of the new FDW in both coordinator and all-segments modes.

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


add a new mock foreign data wrapper (FDW) for testing
parallel foreign scans.

Key changes include:
- Implementation of `parallel_foreign_scan_test_fdw`
to generate synthetic rows and support parallel scanning.
- Modifications to the optimizer to generate gather paths
for foreign tables with parallel capabilities.
- Updates to `execMain.c` to enable parallel mode for
gather nodes based on the execution context.
- Addition of test cases to validate the functionality
 of the new FDW in both coordinator and all-segments modes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant