Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enrich target column in interface #68

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Conversation

burmecia
Copy link
Member

What kind of change does this PR introduce?

This PR is to enrich the target column in interface.

What is the current behavior?

Currently, the column in interface is simply a column name string without other metadata, which is limited in some cases.

What is the new behavior?

The column now is enriched to a struct with 3 properties:

  • name - column name
  • num - column number in table definition, 1-based
  • type_oid - column type OID

Additional context

This is a breaking change as it changed the foreign data wrapper interface, all FDWs need to adopt this change.

@burmecia burmecia self-assigned this Mar 10, 2023
@burmecia burmecia added the enhancement New feature or request label Mar 10, 2023
@burmecia burmecia marked this pull request as ready for review March 10, 2023 11:23
@burmecia burmecia requested a review from olirice March 10, 2023 11:23
@burmecia burmecia merged commit 2e00470 into main Mar 10, 2023
@burmecia burmecia deleted the feat/enrich-target-column branch March 10, 2023 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants