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

fix: avoid reloading ident map when not needed #4648

Merged
merged 4 commits into from
May 28, 2024

Conversation

leonardoce
Copy link
Contributor

@leonardoce leonardoce commented May 23, 2024

Before this patch, the instance manager could write the ident map using two different formats even if the content was semantically the same.

This was triggering an unneeded configuration reload after the postmaster was started up.

Fixes: #4626

@leonardoce leonardoce requested a review from a team as a code owner May 23, 2024 14:15
@github-actions github-actions bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.21 release-1.22 release-1.23 labels May 23, 2024
Copy link
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@leonardoce leonardoce force-pushed the sighup-ident branch 2 times, most recently from 4c504f1 to 50aef48 Compare May 28, 2024 08:55
@leonardoce
Copy link
Contributor Author

@leonardoce
Copy link
Contributor Author

/ok-to-merge all green!!!

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label May 28, 2024
leonardoce and others added 4 commits May 28, 2024 13:21
Before this patch, the instance manager could write the ident map using
two different formats even if the content was semantically the same.

This was triggering an unneeded configuration reload after the
postmaster was started up.

Fixes: cloudnative-pg#4626

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
@leonardoce leonardoce merged commit 6b3039e into cloudnative-pg:main May 28, 2024
24 checks passed
cnpg-bot pushed a commit that referenced this pull request May 28, 2024
Before this patch, the instance manager could write the ident map using
two different formats, even if the content was semantically the same.

This was triggering an unneeded configuration reload after the
postmaster was started up.

Fixes: #4626

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
(cherry picked from commit 6b3039e)
cnpg-bot pushed a commit that referenced this pull request May 28, 2024
Before this patch, the instance manager could write the ident map using
two different formats, even if the content was semantically the same.

This was triggering an unneeded configuration reload after the
postmaster was started up.

Fixes: #4626

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
(cherry picked from commit 6b3039e)
cnpg-bot pushed a commit that referenced this pull request May 28, 2024
Before this patch, the instance manager could write the ident map using
two different formats, even if the content was semantically the same.

This was triggering an unneeded configuration reload after the
postmaster was started up.

Fixes: #4626

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
(cherry picked from commit 6b3039e)
dougkirkley pushed a commit to dougkirkley/cloudnative-pg that referenced this pull request Jun 11, 2024
Before this patch, the instance manager could write the ident map using
two different formats, even if the content was semantically the same.

This was triggering an unneeded configuration reload after the
postmaster was started up.

Fixes: cloudnative-pg#4626

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Signed-off-by: Douglass Kirkley <dkirkley@eitccorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-requested ◀️ This pull request should be backported to all supported releases ok to merge 👌 This PR can be merged release-1.21 release-1.22 release-1.23
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: each times PostgreSQL starts, we SIGHUP it two times to change the pg_ident file
4 participants