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 values in ignore_startup_parameters #1048

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marjus45
Copy link

Currently you can only define the key of a parameter in the ignore_startup_parameters section. With this change you can define a key=value string in that section. For example you can set the following:

[pgbouncer]
ignore_startup_parameters = options,extra_float_digits=2

If an application attempts to connect using as startup parameter the extra_float_digits=3, then pgBouncer will produce an error.

This is useful to avoid hidden bugs when using this section between application logic changes. Also it can function for clients as an indication of the expected startup parameters.

Currently you can only define the key of a parameter in the
ignore_startup_parameters section. With this change you can define a
key=value string in that section. For example you can set the following:

[pgbouncer]
ignore_startup_parameters = options,extra_float_digits=2

If an application attempts to connect using as startup parameter the
extra_float_digits=3, then pgBouncer will produce an error.

This is useful to avoid hidden bugs when using this section between
application logic changes. Also it can function for clients as
indicatory of the expected startup parameters.

Signed-off-by: Marjus Cako <marios.cako@hpe.com>
@JelteF
Copy link
Member

JelteF commented Apr 12, 2024

Thank you for the contribution this sounds like a useful feature indeed. I haven't looked closely at the code yet. But some initial feedback:

  1. A test for this should be included
  2. There is a memory leak reported by valgrind
  3. There are some code formatting errors. You can use make format to fix those

@JelteF
Copy link
Member

JelteF commented May 2, 2024

@marjus45 are you still planning to update this PR?

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.

None yet

2 participants