<div dir="ltr">Hello!<div><br></div><div>I&#39;ve got 2 virtual machine (Xen Server 6.2) with Debian Wheezy and:</div><div><ul><li>PostgreSQL 9.1</li><li>Pgpool 3.1.12 <br></li><li>Pacemaker/Corosync with pgpool-HA 2.2</li></ul>I tweaked the recovery scripts to do &quot;online recovery&quot;. It went smooth both ways.</div><div><br></div><div>However, when I &quot;CREATE DATABASE&quot; and connect through PgAdmin, Pgpool says:</div><div><br></div><div><div><font face="courier new, monospace">ERROR: pid 7628: read_kind_from_backend: <font color="#660000"><b>1 th kind C does not match with master or majority connection kind D</b></font></font></div><div><font face="courier new, monospace">ERROR: pid 7628: kind mismatch among backends. Possible last query was: &quot;SET DateStyle=ISO; SET client_min_messages=notice; SET bytea_output=escape; SELECT oid, pg_encoding_to_char(encoding) AS encoding, datlastsysoid</font></div><div><font face="courier new, monospace">  FROM pg_database WHERE <font color="#660000"><b>oid = 18540&quot; kind details are: 0[D] 1[C]</b></font></font></div></div><div><br></div><div>I checked database OID on each node and they are different (oid 18549 and the oher is 26670). Is it normal?</div><div>I created a few tables and they have indeed different OID in both nodes......<br></div><div><br></div><div>If it is normal to have different OID in both nodes, why pgpool would complain?<br></div><div>If it should not happen, why would both nodes create an object with different OID? I checked in both nodes that all Pgpool extensions are installed (regclass, insert_lock, recovery, remote_start, switch_xlog)<br></div><div><br></div><div>What field/file defines the next OID to use?</div><div> </div><div>At first, I thought the problem was the multiple statement limitation (sent by PgAdmin) but it is not, because when I do &quot;online recovery&quot; both nodes get same OID in every object and I can connect with PgAdmin smoothly.</div><div><br></div><div>(I found few links about same problem and nobody answered: </div><div><a href="http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002229.html">http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002229.html</a><br></div><div><a href="http://lists.pgfoundry.org/pipermail/pgpool-general/2008-June/001071.html">http://lists.pgfoundry.org/pipermail/pgpool-general/2008-June/001071.html</a><br></div><div><br></div><div>I used PgAdmin from 1.16 to 1.20 with same behaviour.<br></div><div><br></div><div><br></div><div>Thank you for your time!</div><div><br></div><div><br></div><div><u>pgpool.conf:</u></div><div><br></div><div><div><font face="courier new, monospace" color="#274e13">backend_hostname0 = &#39;psql1&#39;<br></font></div><div><font face="courier new, monospace" color="#274e13">backend_port0 = 5433</font></div><div><font face="courier new, monospace" color="#274e13">backend_weight0 = 1</font></div><div><font face="courier new, monospace" color="#274e13">backend_data_directory0 = &#39;/var/lib/postgresql/9.1/main&#39;</font></div><div><font face="courier new, monospace" color="#274e13">backend_flag0 = &#39;ALLOW_TO_FAILOVER&#39;</font></div><div><font face="courier new, monospace" color="#274e13"><br></font></div><div><font face="courier new, monospace" color="#274e13">backend_hostname1 = &#39;psql2&#39;</font></div><div><font face="courier new, monospace" color="#274e13">backend_port1 = 5433</font></div><div><font face="courier new, monospace" color="#274e13">backend_weight1 = 1</font></div><div><font face="courier new, monospace" color="#274e13">backend_data_directory1 = &#39;/var/lib/postgresql/9.1/main&#39;</font></div><div><font face="courier new, monospace" color="#274e13">backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;</font></div><div><div><font face="courier new, monospace" color="#274e13"><br></font></div><div><font face="courier new, monospace" color="#274e13">connection_cache = on</font></div><div><br></div></div></div><div><div><font face="courier new, monospace" color="#274e13">replication_mode = on</font></div><div><font face="courier new, monospace" color="#274e13">   replicate_select = off<br></font></div><div><font face="courier new, monospace" color="#274e13">   insert_lock = on<br></font></div><div><font face="courier new, monospace" color="#274e13">   lobj_lock_table = &#39;&#39;<br></font></div><div><font face="courier new, monospace" color="#274e13"><br></font></div></div><div><font face="courier new, monospace" color="#274e13">load_balance_mode = off<br></font></div><div><font face="courier new, monospace" color="#274e13">master_slave_mode = off<br></font></div><div><font face="courier new, monospace"><font color="#274e13">parallel_mode = off</font><br></font></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>