Skip to content

fix: Skip enum fetching for Redshift compatibility in postgres driver #718

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

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

ritsu2891
Copy link
Contributor

Amazon Redshift does not support PostgreSQL enum types:
https://docs.aws.amazon.com/redshift/latest/dg/c_unsupported-postgresql-datatypes.html

When running tbls against Redshift, the enum type query causes an error.

ERROR: relation "pg_enum" does not exist

This PR skips fetching enum types when the driver is Redshift, allowing documentation generation to proceed without failure.

@k1LoW k1LoW added the bug Something isn't working label Jul 1, 2025
@k1LoW
Copy link
Owner

k1LoW commented Jul 1, 2025

@ritsu2891 Thank you!!!! LGTM!

@k1LoW k1LoW merged commit a466c86 into k1LoW:main Jul 1, 2025
2 of 3 checks passed
@github-actions github-actions bot mentioned this pull request Jul 1, 2025
@ritsu2891 ritsu2891 deleted the fix/redshift-does-not-support-enum branch July 2, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants