<div dir="ltr"><div>Hi,</div><div><br></div><div>I have created following function in pgpool .</div><div><br></div><div><font color="#274e13">CREATE OR REPLACE Function fun1(Id int)</font></div><div><font color="#274e13">RETURNS boolean as $executionStatus$</font></div><div><font color="#274e13">DECLARE</font></div><div><font color="#274e13"><br></font></div><div><font color="#274e13">BEGIN</font></div><div><font color="#274e13">    DELETE FROM table1 where table1_id =  Id ; </font></div><div><font color="#274e13">    DELETE from table2 where table2_id =  Id ;</font></div><div><font color="#274e13">    DELETE from table3 where table3_id =  Id ;</font></div><div><font color="#274e13">    RETURN true;</font></div><div><font color="#274e13">END;</font></div><div><font color="#274e13">$executionStatus$ LANGUAGE plpgsql;</font></div><div><font color="#274e13"><br></font></div><div>I run following command inside the postgres shell of pgpool</div><div><br></div><div><font color="#274e13">select fun1(1);</font></div><div>It is deleted the data only from master. I tried again then it is deleted from different server.So replication fails in this case. But if i use delete queries separately then it is working fine.It is deleting data from all servers.</div><div><font color="#274e13"><br></font></div><div><font color="#274e13">DELETE FROM table1 where table1_id =  1 ;DELETE from table2 where table2_id =  1 ;DELETE from table3 where table3_id =  1 ;</font></div><div><br></div><div>Please let me know how to fix this issue .</div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Priyesh Karatha<div>Mob:+917356890255</div><div><a href="mailto:E-mail%3Apriyeshkaratha@gmail.com" target="_blank">E-mail:priyeshkaratha@gmail.com</a></div></div></div></div></div></div>
</div>