From: Andres Freund <andres@anarazel.de>
To: Peter Slavov <pet.slavov@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12910: Memory leak with logical decoding
Date: Wed, 22 Apr 2015 17:57:02 +0200
Message-ID: <20150422155702.GB8239@alap3.anarazel.de> (raw)
In-Reply-To: <5537C2FE.7070907@gmail.com>
References: <20150327094757.2488.58808@wrigleys.postgresql.org>
<20150331144048.GL4878@alap3.anarazel.de>
<55227D87.9080007@gmail.com>
<20150406135026.GJ17586@awork2.anarazel.de>
<5526969F.4050704@gmail.com>
<20150409173455.GE9764@awork2.anarazel.de>
<5537C2FE.7070907@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2015-04-22 18:49:18 +0300, Peter Slavov wrote:
> Sorry for the late answer - I got mixed up with the wrong Postgres version
> and waste time testing on code that is not pached.
> I did testing after that on the patched version and basically I don't see
> difference when I use simple sql statement like before. Psql is putting all
> in RAM/swap before dumping it out ( the size is again ~15-16 GB - no change
> there).
That's a different problem though. Generally psql will, unless you
configure it to use cursors, pull in the whole query in memory.
I thought earlier it wasn't just psql that needed all that memory?
> I tried with copy - much better memory footprint of course.
COPY *did* show the problem for me without the patch.
> I guess I will have to forget using the SQL interface. I will try using
> pg_recvlogical or some other way to connect my python script to the slot
> using the streaming protocol .. thanks
That's a good way independently.
Greetings,
Andres Freund
--
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: andres@anarazel.de, pet.slavov@gmail.com
Subject: Re: BUG #12910: Memory leak with logical decoding
In-Reply-To: <20150422155702.GB8239@alap3.anarazel.de>
References: <20150327094757.2488.58808@wrigleys.postgresql.org> <20150331144048.GL4878@alap3.anarazel.de> <55227D87.9080007@gmail.com> <20150406135026.GJ17586@awork2.anarazel.de> <5526969F.4050704@gmail.com> <20150409173455.GE9764@awork2.anarazel.de> <5537C2FE.7070907@gmail.com> <20150422155702.GB8239@alap3.anarazel.de>
* 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