Re: BUG #12910: Memory leak with logical decoding

From: Петър Славов <pet(dot)slavov(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12910: Memory leak with logical decoding
Date: 2015-04-22 16:02:51
Message-ID: CAC5T6ECZkND_kufC9gCY6ymoXhBUgTFV-SRD0LYV5J7GhakUyA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

Are all the connectors based on libpq acting the same like psql?

Peter
На 22.04.2015 18:57 "Andres Freund" <andres(at)anarazel(dot)de> написа:

> 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
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2015-04-22 16:15:55 Re: BUG #12910: Memory leak with logical decoding
Previous Message Andres Freund 2015-04-22 15:57:02 Re: BUG #12910: Memory leak with logical decoding