<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;m kindly asking for some help.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>We have a PGPool setup with 2 Postgres. <o:p></o:p></p><p class=MsoNormal>We enabled Master/Slave stream replication + Online recovery.<o:p></o:p></p><p class=MsoNormal>We also have a Java (j2ee) application that connects via JDBC &nbsp;to PGPool.<o:p></o:p></p><p class=MsoNormal>All these work fine and our application reads and writes data with no problem.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Now, we are interested on moving from Master/Slave to Replication.<o:p></o:p></p><p class=MsoNormal>In the above setup we tried to disable Master/Slave and enable Replication.<o:p></o:p></p><p class=MsoNormal>Our Java application can successfully read data from PGPool, but something goes wrong when it tries to write data.<o:p></o:p></p><p class=MsoNormal>Something hangs in PGPool and it doesn&#8217;t allow the process to complete.<o:p></o:p></p><p class=MsoNormal>Java doesn&#8217;t log any exceptions, neither Postgres logs (on both backends).<o:p></o:p></p><p class=MsoNormal>In PGPool log we don&#8217;t see something with error on it, but there a few strange messages.<o:p></o:p></p><p class=MsoNormal>For this, I have attached PGPool log, maybe someone could understand what goes wrong?<o:p></o:p></p><p class=MsoNormal>Also, when this happens we cannot stop PGPool, until we kill some processes manually:<o:p></o:p></p><p class=MsoNormal>If we run <o:p></o:p></p><p class=MsoNormal>ps aux | grep psql <o:p></o:p></p><p class=MsoNormal>we see many processes running, but we distinguish these<o:p></o:p></p><p class=MsoNormal>pgpool: postgres pgv2a localhost.localdomain(36791) idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal>pgpool: postgres pgv2a localhost.localdomain(36781) idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal>pgpool: postgres pgv2a localhost.localdomain(36883) idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal>pgpool: postgres pgv2a localhost.localdomain(36536) idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal>pgpool: postgres pgv2a localhost.localdomain(36685) idle in transaction&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal>pgpool: postgres pgv2a localhost.localdomain(36897) idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></p><p class=MsoNormal>pgpool: postgres pgv2a localhost.localdomain(38356) idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal>that we have to kill manually.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;ve also attached pgpool.conf.<o:p></o:p></p><p class=MsoNormal>We&#8217;re using <span style='color:#1F497D'>pgpool 3.2.3, postgres 9.1, pgpooladmin 3.2.0 and the server is Centos 6.2 (SELinux disabled).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Anyone could explain why Master/Slave works fine, but Replication not?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Any help is much appreciated.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Stelios Limnaios<o:p></o:p></span></p></div></body></html>