Add more CREATE FOREIGN TABLE options#21
Merged
imranzaheer612 merged 5 commits intomainfrom Sep 29, 2025
Merged
Conversation
Add new options `prefix,keys_only,revision,range` with `CREATE FOREIGN TABLE`.
if-loop69420
approved these changes
Sep 29, 2025
Contributor
if-loop69420
left a comment
There was a problem hiding this comment.
Looks good. LGTM, if you've tested that everything works
if-loop69420
requested changes
Sep 29, 2025
Contributor
if-loop69420
left a comment
There was a problem hiding this comment.
Please address these
| @@ -237,21 +235,51 @@ impl ForeignDataWrapper<EtcdFdwError> for EtcdFdw { | |||
| limit: &Option<Limit>, | |||
| _options: &std::collections::HashMap<String, String>, | |||
Contributor
There was a problem hiding this comment.
Could we change this to not have an '' before it? We're using the value and '' as a prefix suggests, that a value is not used
if-loop69420
requested changes
Sep 29, 2025
Contributor
if-loop69420
left a comment
There was a problem hiding this comment.
The prefix option still doesn't work for me. It still yields things not in the prefix.
etcd_fdw=# CREATE FOREIGN TABLE t_etcd_table (key text, value text) SERVER etcd_server OPTIONS (prefix '/foo');
CREATE FOREIGN TABLE
etcd_fdw=# SELECT * FROM t_etcd_table ;
key | value
-----------+-------
/foo/bar | baz
bar_new | baz
foo_new | abc
Please fix these. Other than that LGTM
Contributor
Author
|
@if-loop69420 I am not able to reproduce the error you mentioned |
if-loop69420
approved these changes
Sep 29, 2025
Contributor
if-loop69420
left a comment
There was a problem hiding this comment.
Looks good. Thank you. LGTM
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.
New options