<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hello Tatsuo and thanks for your quick response!</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">My impression is that (as Ron also mentioned) the contents of pool_passwd are read on every connection (authentication) attempt. I mean, at least for a handful of tests I performed, the new users were seen without a need for a reload (but this could also be luck[1]). So, is a reload really necessary here?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">[1] e.g some Pgpool child processes see the updated version of pool_passwd, while others see the old (cached?) one<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Regards, Michail</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 19, 2024 at 5:38 AM Ron Johnson <<a href="mailto:ronljohnsonjr@gmail.com">ronljohnsonjr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Sun, Aug 18, 2024 at 7:28 PM michail alexakis <<a href="mailto:drmalex07@gmail.com" target="_blank">drmalex07@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif">Hello PgPool team,</div><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">How is the pool_passwd file getting reloaded when its contents have changed on disk (e.g. when new lines are appended)? Are contents (re)read in each authentication attempt, or are they reloaded when a change is detected?</div><div style="font-family:tahoma,sans-serif"><br></div><div style="font-family:tahoma,sans-serif">My tests show that if I add a new user (which, of course, exists in the Postgres backend) in pool_passwd, I can then instantly login as the new user.</div></div></blockquote><div><br></div><div>This is my experience, too.</div><div><br></div><div>That tells me that pool_passwd is read every time someone connects (like how .pgpass is processed). Makes for a very hot file!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:tahoma,sans-serif"> But, is that behavior guaranteed? (or was I just lucky in my tests?)</div></div></blockquote><div><br></div><div></div></div><div>Lucky?</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Death to America, and butter sauce.<div>Iraq lobster!</div></div></div></div>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div>