From: pet.slavov@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #12910: Memory leak with logical decoding
Date: Fri, 27 Mar 2015 09:47:57 +0000
Message-ID: <20150327094757.2488.58808@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: 12910
Logged by: Peter Slavov
Email address: pet.slavov@gmail.com
PostgreSQL version: 9.4.1
Operating system: Debian wheezy
Description:
Hi,
I am trying to use logical decoding to replay the data modifying queries on
a different server, to synchronize some of the tables. The primary server
has some load, but not so much. I am getting the changes with
pg_logical_slot_get_changes limiting the changes to 50 at a time.
At some point pg_logical_slot_get_changes queries become slow and starts to
eat all the ram and swap, which eventually kills the primary database with
this error:
FATAL: the database system is in recovery mode.
The nature of changes on the primary can have a lot of data in one
transaction. Which I guess is the reason of the slow
pg_logical_slot_get_changes.
--
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: pet.slavov@gmail.com
Subject: Re: BUG #12910: Memory leak with logical decoding
In-Reply-To: <20150327094757.2488.58808@wrigleys.postgresql.org>
References: <20150327094757.2488.58808@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