<div dir="ltr">I tried with 2 node setup and now i went with 3 node setup. <div>synchronous_standby_names = 'ANY 3 (azlpgNPBC2, azlpgN1hS0, azlpgN6Xm1)'</div><div>in this <b>azlpgNPBC2</b> & <b>azlpgN6Xm1</b> are standby's and current primary is <b>azlpgN1hS0. </b></div><div><b><br></b></div><div><b><br></b></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jan 2, 2025 at 3:59 PM Tatsuo Ishii <<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</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">> Hello Tatsuo,<br>
> <br>
> *Have you set synchronous_standby_names parameter in postgresql.conf?*<br>
> YES. we set it. Please see below:<br>
> <br>
> [pgbigboss@azlpgN1hS-0 ~]$ cat /u01/app/admin/Data/PG_DATA/postgresql.conf<br>
> | grep -v '^#' |egrep '^[^[:space:]]' | grep sync<br>
> synchronous_commit = remote_apply<br>
> synchronous_standby_names = 'ANY 1 (azlpgNPBC2, azlpgN1hS0, azlpgN6Xm1)'<br>
<br>
I think the synchronous_standby_names setting is not appropreate here.<br>
With this setting PostgreSQL will respond as soon as *one* of standby<br>
servers replies back that replication is done. This means other two<br>
servers do not yet replicate the data. As a result pgpool could<br>
connect to one of the yet-replicated standby servers, that do not have<br>
the newly created database yet, and pgpool reports it as an "kind<br>
mismatch error". Probably you should set:<br>
<br>
synchronous_standby_names = 'ANY 3 (azlpgNPBC2, azlpgN1hS0, azlpgN6Xm1)'<br>
<br>
BTW, previously you said you only have 1 standby server. But it seems<br>
actually you have 3 standby servers?<br>
<br>
> backend_hostname0 = '10.35.8.30'<br>
> backend_port0 = 5432<br>
> backend_weight0 = 1<br>
> backend_hostname1 = '10.35.8.31'<br>
> backend_port1 = 5432<br>
> backend_weight1 = 1<br>
<br>
Best reagards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS K.K.<br>
English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div>