From: priyeshkaratha@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14154: In pgpool while using delete query inside postgresql function , it is not deletingdata from all serve
Date: Mon, 23 May 2016 13:29:38 +0000
Message-ID: <20160523132938.22593.48000@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14154
Logged by: Priyesh Karatha
Email address: priyeshkaratha@gmail.com
PostgreSQL version: 9.4.0
Operating system: Ubuntu14
Description:
I have created following function in pgpool .
CREATE OR REPLACE Function fun1(Id int)
RETURNS boolean as $executionStatus$
DECLARE
BEGIN
DELETE FROM table1 where table1_id = Id ;
DELETE from table2 where table2_id = Id ;
DELETE from table3 where table3_id = Id ;
RETURN true;
END;
$executionStatus$ LANGUAGE plpgsql;
I run following command inside the postgres shell of pgpool
select fun1(1);
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.
DELETE FROM table1 where table1_id = 1 ;DELETE from table2 where table2_id
= 1 ;DELETE from table3 where table3_id = 1 ;
Please let me know how to fix this issue .
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: priyeshkaratha@gmail.com
Subject: Re: BUG #14154: In pgpool while using delete query inside postgresql function , it is not deletingdata from all serve
In-Reply-To: <20160523132938.22593.48000@wrigleys.postgresql.org>
References: <20160523132938.22593.48000@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox