<div dir="auto">Hi Tatsuo<div dir="auto"><br></div><div dir="auto">I was sure that there is a respective configuration option that makes "autoattaching" for standby nodes, if replication between nodes works well. </div><div dir="auto"><br></div><div dir="auto">What's a reason to keep a well functioning node in a detached state?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 20 Aug 2023, 6:52 Tatsuo Ishii, <<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Then there's something wrong in your follow primary script. To debug<br>
> it, I suggest to look into pgpool log and the standby's PostgreSQL<br>
> log. I suspect the standby server failed to follow the new standby for<br>
> some reason (maybe some WAL files are missing?). In general you should<br>
> fall back to use pg_rewind/pg_base_backup to sync with the new primary<br>
> in this case.<br>
> <br>
> See the official sample script for more details.<br>
> <br>
> <a href="https://git.postgresql.org/gitweb/?p=pgpool2.git;a=blob_plain;f=src/sample/scripts/follow_primary.sh.sample;hb=refs/heads/V4_4_STABLE" rel="noreferrer noreferrer" target="_blank">https://git.postgresql.org/gitweb/?p=pgpool2.git;a=blob_plain;f=src/sample/scripts/follow_primary.sh.sample;hb=refs/heads/V4_4_STABLE</a><br>
<br>
One thing I noticed is, after reloading PostgreSQL, the script does<br>
not execute pcp_attach_node. You need to execute the command because<br>
without the command, the standby status keeps on "down" from pgpool's<br>
point of view.<br>
<br>
Best reagards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS LLC<br>
English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
_______________________________________________<br>
pgpool-hackers mailing list<br>
<a href="mailto:pgpool-hackers@pgpool.net" target="_blank" rel="noreferrer">pgpool-hackers@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
</blockquote></div>