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

Add support for Postgres17 (+ misc linting changes) #187

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

bplunkett-stripe
Copy link
Collaborator

Description

  • Add support for postgres17. The newest version of alpine with postgres17 in its package repository does not have postgres14 in its repository, so our test image needs to be able to support multiple base docker images
  • Fix typos as noted by the go report code
  • Add gofmt to the linter...which adds code "simplification"...this manifested as the for-loop simplifications seen in this PR

Motivation

Fixes #186

Testing

Testing via CI

@bplunkett-stripe bplunkett-stripe added the enhancement New feature or request label Dec 11, 2024
@bplunkett-stripe bplunkett-stripe force-pushed the bplunkett/add-support-for-postgres17 branch 2 times, most recently from 3895a86 to b11cdce Compare December 11, 2024 21:04
@bplunkett-stripe bplunkett-stripe force-pushed the bplunkett/add-support-for-postgres17 branch from b11cdce to 45d147a Compare December 11, 2024 21:06
@@ -342,7 +342,7 @@ WHERE
AND seq_ns.nspname !~ '^pg_temp'
-- Exclude sequences owned by identity columns.
-- These manifest as internal dependency on the column
AND (depend.deptype IS NULL OR depend.deptype != 'i')
AND (depend.deptype IS null OR depend.deptype != 'i')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version of sqlfluff converts all caps NULL to null, which ensures consistency. Other occurences of null in this file are also lowercase.

alexaub-stripe
alexaub-stripe previously approved these changes Dec 11, 2024
@bplunkett-stripe bplunkett-stripe merged commit b233163 into main Dec 11, 2024
10 checks passed
@bplunkett-stripe bplunkett-stripe deleted the bplunkett/add-support-for-postgres17 branch December 11, 2024 22:30
aleclarson pushed a commit to pg-nano/pg-schema-diff that referenced this pull request Dec 19, 2024
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.

[FEATURE] Add support for Postgres 17
2 participants