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

Closed

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 PG13 PostgreSQL13 label Aug 1, 2024
@shinyaaa shinyaaa force-pushed the add-emit-warnings-on-placeholders-pg13 branch from 60a96c2 to 50532c7 Compare August 2, 2024 12:36
@shinyaaa shinyaaa changed the title Add emit warnings on placeholders (#1997) Add EmitWarningsOnPlaceholders("age") (#1997) Aug 5, 2024
@jrgemignani
Copy link
Contributor

@shinyaaa You will need to rebase and force update your PR. Please see PR #2007 for more information.

@shinyaaa shinyaaa force-pushed the add-emit-warnings-on-placeholders-pg13 branch from 50532c7 to 6f0ad97 Compare August 7, 2024 01:19
@jrgemignani
Copy link
Contributor

@shinyaaa There appears to be an issue with the build regression for this one :( Please look into it when you have an opportunity -
image

@rafsun42
Copy link
Member

rafsun42 commented Aug 8, 2024

Hi @shinyaaa the regression tests are failing for PG13 and 14.

@shinyaaa shinyaaa force-pushed the add-emit-warnings-on-placeholders-pg13 branch from 6f0ad97 to cd18aa4 Compare August 9, 2024 00:13
@shinyaaa
Copy link
Contributor Author

shinyaaa commented Aug 9, 2024

@jrgemignani @rafsun42
Sorry.

Until v14, it seems to warn only when PostgreSQL starts.
Warnings in SET statements are implemented in this commit.
Therefore, the regression test has been removed.

Added EmitWarningsOnPlaceholders("age") to warn when an undefined GUC parameter is set for a placeholder named "age".
Warnings are issued when PostgreSQL starts.

When PostgreSQL starts
```
2024-08-01 18:32:31.220 JST [2039799] WARNING: invalid configuration parameter name "age.invalid_parameter", removing it
```
@shinyaaa shinyaaa force-pushed the add-emit-warnings-on-placeholders-pg13 branch from cd18aa4 to d7689d1 Compare August 15, 2024 03:10
Copy link

This PR is stale because it has been open 60 days with no activity. Remove "Abondoned" label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale Stale issues/PRs label Oct 15, 2024
Copy link

This PR was closed because it has been stalled for further 14 days with no activity

@github-actions github-actions bot closed this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG13 PostgreSQL13 Stale Stale issues/PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants