pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Slavov <pet.slavov@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12910: Memory leak with logical decoding
Date: Thu, 16 Apr 2015 15:53:40 +0300
Message-ID: <552FB0D4.1060401@gmail.com> (raw)
In-Reply-To: <20150409173455.GE9764@awork2.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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

Can you tell me, at which point after testing this can me included in 
some branch and after in some officials PostgreSQL version ?

Regards,
Peter Slavov

На 9.04.2015 в 20:34, Andres Freund написа:
> Hi,
>
> On 2015-04-09 18:11:27 +0300, Peter Slavov wrote:
>> I prepared a test case, that can reproduce the problem.
> Yup. I can reproduce it... I did not (yet) have the time to run the test
> to completion, but i believe the attached patch should fix the problem
> (and also improve performance a bit...).
>
> Using the SQL interface for such large transactions isn't going to be
> fun as all of the data, due to the nature of the set returning function
> implementation in postgres, will be additionally written into a
> tuplestore. The streaming interface doesn't have that behaviour.
>
> Additionally it's probably not a good idea to stream such a large
> resultset via SELECT using psql - IIRC it'll try to store all that data
> in memory :). Try something like
> \copy (select * from pg_logical_slot_peek_changes('testing', null, 1)) TO /tmp/f
> or such.
>
> 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



view thread (15+ messages)  latest in thread

Message-ID: <552FB0D4.1060401@gmail.com>
Permalink:  ../552FB0D4.1060401@gmail.com/
Also on:    postgresql.org/message-id/552FB0D4.1060401@gmail.com

 · 

reply

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, andres@anarazel.de
  Subject: Re: BUG #12910: Memory leak with logical decoding
  In-Reply-To: <552FB0D4.1060401@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> <552FB0D4.1060401@gmail.com>

* 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