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

prettify/simplify psql statements for Using non-default schema scenario #414

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

jf
Copy link
Contributor

@jf jf commented Apr 19, 2024

  • simplify the CREATE SCHEMA statements (no need to repeat the schema name if AUTHORIZATION is the same
  • prettify horizontal alignment (yeah sorry about the commit message; it's horizontal, not vertical!) so that it's easier (IMO) to see what's going on

(For the record, I did confirm with the pg docs (15 onwards) that this way of specifying CREATE SCHEMA works where you do not need to separately specify the schema name if the authorization is the same value (search for Create a schema for user joe; the schema will also be named joe:))

@jeremyevans
Copy link
Owner

Looks good, thanks for the patch!

@jeremyevans jeremyevans merged commit 353c3d8 into jeremyevans:master Apr 22, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants