-
Notifications
You must be signed in to change notification settings - Fork 418
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 EmitWarningsOnPlaceholders("age") #1997
Add EmitWarningsOnPlaceholders("age") #1997
Conversation
@shinyaaa Please add in regression tests to show this works :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need regression tests
eb403e7
to
a01b8cb
Compare
Thanks for the review. |
@shinyaaa Overall looks good. Before it can be merged, could you please add detailed commit message as well? |
Thank you! I've set up a commit message. And the same goes for other PRs. |
Hi @shinyaaa, your commit message is applied to the PR in GitHub rather than the commit. To clarify, I meant adding extended commit message after you run the |
Added EmitWarningsOnPlaceholders("age") to warn when an undefined GUC parameter is set for a placeholder named "age". Warnings are issued when PostgreSQL starts and when SET statements are executed. When PostgreSQL starts ``` 2024-08-01 18:32:31.220 JST [2039799] WARNING: invalid configuration parameter name "age.invalid_parameter", removing it ``` When SET statement is executed ``` ERROR: invalid configuration parameter name "age.invalid_parameter" DETAIL: "age" is a reserved prefix. ``` Regression tests were added.
a01b8cb
to
bb83865
Compare
Added the commit message, and rebased. |
@shinyaaa Thank you |
Added EmitWarningsOnPlaceholders("age") to warn when an undefined GUC parameter is set for a placeholder named "age".
Warnings are issued when PostgreSQL starts and when SET statements are executed.
When PostgreSQL starts
When SET statement is executed
Regression tests were added.