Repository navigation
PostgreSQL: Support CREATE FOREIGN DATA WRAPPER - #2317
Open
fmguerreiro wants to merge 17 commits into
Open
fmguerreiro wants to merge 17 commits into
fmguerreiro wants to merge 17 commits into
Conversation
Contributor
|
I suggest to split the PR into two, once for each statement |
fmguerreiro
force-pushed
the
upstream/foreign-table-fdw
branch
from
September 16, 2026 01:35
538c418 to
54177bd
Compare
Contributor
Author
|
split. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2317 +/- ##
==========================================
+ Coverage 81.52% 81.53% +0.01%
==========================================
Files 42 42
Lines 34205 34268 +63
Branches 34205 34268 +63
==========================================
+ Hits 27885 27941 +56
Misses 2770 2770
- Partials 3550 3557 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
LucaCappelletti94
requested changes
Sep 24, 2026
LucaCappelletti94
force-pushed
the
upstream/foreign-table-fdw
branch
from
September 26, 2026 12:18
59608c6 to
4d03db2
Compare
LucaCappelletti94
requested changes
Sep 26, 2026
LucaCappelletti94
left a comment
Contributor
There was a problem hiding this comment.
Do please also add some seed entries for the fuzzer corpus, so it can better search bugs that are relevant to this syntax.
Share one has_modifier check between the FOREIGN TABLE and FOREIGN DATA WRAPPER arms so temporary/or-alter/global no longer parse and render as a bare CREATE FOREIGN DATA WRAPPER. Add fuzz seeds.
LucaCappelletti94
requested changes
Oct 16, 2026
LucaCappelletti94
left a comment
Contributor
There was a problem hiding this comment.
Most likely "A repeated clause errors." should be dropped from the description once the parser keeps repeats, given the pg_query reference.
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
# Conflicts: # tests/sqlparser_postgres.rs
# Conflicts: # tests/sqlparser_postgres.rs
# Conflicts: # tests/sqlparser_postgres.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parses
CREATE FOREIGN DATA WRAPPER name [HANDLER fn | NO HANDLER] [VALIDATOR fn | NO VALIDATOR] [OPTIONS (...)](docs).Split out of this PR at @LucaCappelletti94's request.
CREATE FOREIGN TABLEis now #2515.HANDLERandVALIDATORare accepted in either order, because the PostgreSQL grammar takes them as an unordered list even though the doc synopsis shows one order.ALTER FOREIGN DATA WRAPPERandCREATE USER MAPPINGare out of scope.Ported from the
pgmold-sqlparserfork.