Repository navigation
fix: enforce postgres.auto.conf to rw before run rewind - #3728
Merged
Merged
Conversation
litaocdl
requested review from
armru,
fcanovai,
gbartolini,
leonardoce,
mnencia,
phisco and
sxd
as code owners
January 25, 2024 14:54
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Contributor
|
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
litaocdl
marked this pull request as draft
January 26, 2024 03:33
Collaborator
Author
litaocdl
force-pushed
the
dev/cnp-4491
branch
from
January 26, 2024 06:55
b219cb3 to
96f4833
Compare
litaocdl
marked this pull request as ready for review
January 26, 2024 06:57
Member
4 tasks done
Contributor
|
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
mnencia
approved these changes
Jan 26, 2024
Member
|
/ok-to-merge E2E green |
Signed-off-by: Tao Li <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
leonardoce
approved these changes
Jan 29, 2024
Contributor
|
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Signed-off-by: Leonardo Cecchi <[email protected]>
Contributor
Contributor
|
/ok-to-merge E2E green |
cnpg-bot
pushed a commit
that referenced
this pull request
Jan 29, 2024
pg_rewind needs to be able to write all the files in the PostgreSQL data directory. For this reason, we always set `postgresql.auto.conf` mode to 600 before running it. After the PostgreSQL data directory is ready to be used, we revert the permission to be coherent with what the user specified in the `enableAlterSystem` configuration parameter. Closes: #3698 Signed-off-by: Tao Li <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]> (cherry picked from commit 9ff7942)
cnpg-bot
pushed a commit
that referenced
this pull request
Jan 29, 2024
pg_rewind needs to be able to write all the files in the PostgreSQL data directory. For this reason, we always set `postgresql.auto.conf` mode to 600 before running it. After the PostgreSQL data directory is ready to be used, we revert the permission to be coherent with what the user specified in the `enableAlterSystem` configuration parameter. Closes: #3698 Signed-off-by: Tao Li <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]> (cherry picked from commit 9ff7942)
cnpg-bot
pushed a commit
that referenced
this pull request
Jan 29, 2024
pg_rewind needs to be able to write all the files in the PostgreSQL data directory. For this reason, we always set `postgresql.auto.conf` mode to 600 before running it. After the PostgreSQL data directory is ready to be used, we revert the permission to be coherent with what the user specified in the `enableAlterSystem` configuration parameter. Closes: #3698 Signed-off-by: Tao Li <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]> (cherry picked from commit 9ff7942)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pg_rewind needs to be able to write to all the files in the PostgreSQL data
directory. For this reason, we always set
postgresql.auto.confmode to 600before running it.
After the PostgreSQL data directory is ready to be used, we revert the
permission to be coherent with what the user specified in the
enableAlterSystemconfiguration parameter.
Closes: #3698