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 EmitWarningsOnPlaceholders("age") (#1997) #2001

Merged

Conversation

shinyaaa
Copy link
Contributor

@shinyaaa shinyaaa commented Aug 1, 2024

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.

@github-actions github-actions bot added the PG16 label Aug 1, 2024
@shinyaaa shinyaaa force-pushed the add-emit-warnings-on-placeholders-pg16 branch 2 times, most recently from bee7c51 to 56d311a Compare August 2, 2024 12:34
@shinyaaa shinyaaa changed the title Add emit warnings on placeholders (#1997) Add EmitWarningsOnPlaceholders("age") (#1997) Aug 5, 2024
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.
@shinyaaa shinyaaa force-pushed the add-emit-warnings-on-placeholders-pg16 branch from 56d311a to 0d1e43d Compare August 7, 2024 01:22
@jrgemignani jrgemignani merged commit 1602c8a into apache:PG16 Aug 7, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants