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) #2000

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 master label Aug 1, 2024
@shinyaaa shinyaaa changed the base branch from master to PG15 August 1, 2024 09:46
@shinyaaa
Copy link
Contributor Author

shinyaaa commented Aug 1, 2024

Since I mistaken base brance, wrong label is added. Sorry.

@shinyaaa shinyaaa force-pushed the add-emit-warnings-on-placeholders-pg15 branch from 0e327dc to d35be8a Compare August 2, 2024 12:35
@github-actions github-actions bot added the PG15 PostgreSQL15 label Aug 2, 2024
@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-pg15 branch from d35be8a to 8821fc1 Compare August 7, 2024 01:21
@jrgemignani jrgemignani merged commit 65db422 into apache:PG15 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
master PG15 PostgreSQL15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants