Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Remove dbt-postgres dependency#840

Closed
mikealfare wants to merge 12 commits intomainfrom
remove-dbt-postgres-dependency
Closed

Remove dbt-postgres dependency#840
mikealfare wants to merge 12 commits intomainfrom
remove-dbt-postgres-dependency

Conversation

@mikealfare
Copy link
Copy Markdown
Contributor

resolves dbt-labs/dbt-adapters#635

Problem

dbt-redshift depends on dbt-postgres for a very small number of macros, and no python code. This is a large dependency for minimal convenience. This recently caused issues, like the psycopg2 install. It also makes it a little harder to remove dependencies on things like pg_% tables.

Solution

  • remove the dependency on dbt-postgres
  • vendor referenced macros into dbt-redshift
  • ensure tests still complete successfully.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

@mikealfare mikealfare self-assigned this Jun 5, 2024
@cla-bot cla-bot Bot added the cla:yes label Jun 5, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2024

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the dbt-redshift contributing guide.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2024

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the dbt-redshift contributing guide.

@mikealfare mikealfare marked this pull request as ready for review June 7, 2024 19:04
@mikealfare mikealfare requested a review from a team as a code owner June 7, 2024 19:04
@mikealfare mikealfare marked this pull request as draft June 10, 2024 15:46
@mikealfare mikealfare closed this Nov 9, 2024
@mikealfare mikealfare deleted the remove-dbt-postgres-dependency branch November 9, 2024 01:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Remove dbt-postgres dependency

1 participant