-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 entries for mirror host in pg_hba.conf #8597
Fix entries for mirror host in pg_hba.conf #8597
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overall approach looks good to me. Good call on keeping the HBA_HOSTNAMES
functionality.
d1ffa11
to
460e46a
Compare
Thanks @jchampio for the comments, have addressed almost all of it. Take a look |
fdc87c1
to
f184353
Compare
Primary nodes should allow connections from its corresponding mirror when pg_rewind tries to connect to it. This commit ensure that when mirrors are added using gpaddmirrors the mirror entries are updated on the primary pg_hba which is subsequently copied to the mirror node. This allows connection between primary and mirror when the roles have switched over. Co-authored-by: David Kimura <dkimura@pivotal.io>
f184353
to
7c17cd6
Compare
@jchampio any more changes?, let me know.. thanks for feedback.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
For future reference, make sure you squash WIP commits and fixups before merging. |
Unfortunately, yeah i realized that after pushing. When i ported to 6X, i did squash it. |
Primary nodes should allow connections from its corresponding mirror
when pg_rewind tries to connect to it. This commit ensure that when
mirrors are added using gpaddmirrors the mirror entries are updated on
the primary pg_hba which is subsequently copied to the mirror node. This
allows connection between primary and mirror when the roles have
switched over.