Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ykx1R-0004PY-Ak for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Apr 2015 15:57:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ykx1Q-0005JR-QI for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Apr 2015 15:57:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ykx1Q-0005JK-6p for pgsql-bugs@postgresql.org; Wed, 22 Apr 2015 15:57:08 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ykx1N-0005l1-1j for pgsql-bugs@postgresql.org; Wed, 22 Apr 2015 15:57:07 +0000 Received: from intern.anarazel.de (unknown [88.250.126.121]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 6AA1D860001; Wed, 22 Apr 2015 17:57:03 +0200 (CEST) Date: Wed, 22 Apr 2015 17:57:02 +0200 From: Andres Freund To: Peter Slavov Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12910: Memory leak with logical decoding Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5537C2FE.7070907@gmail.com> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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