pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Jim Nasby <decibel@decibel.org>
Cc: g.vanluffelen@qipc.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #8573: int4range memory consumption
Date: Mon, 04 Nov 2013 09:45:22 -0500
Message-ID: <11268.1383576322@sss.pgh.pa.us> (raw)
In-Reply-To: <20131104101221.GJ3567@awork2.anarazel.de>
References: <E1VcC7Y-0006Tl-He@wrigleys.postgresql.org>
	<18832.1383332908@sss.pgh.pa.us>
	<FE8DFBB6-CE61-45FE-BCFE-34E3941D1D37@decibel.org>
	<12646.1383420576@sss.pgh.pa.us>
	<20131104101221.GJ3567@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@2ndquadrant.com> writes:
> On 2013-11-02 15:29:36 -0400, Tom Lane wrote:
>> Attached is a proposed patch for this.  It fixes most of the functions
>> in printtup.c to use a per-row memory context.  (I did not bother to
>> fix debugtup(), which is used only in standalone mode.  If you're doing
>> queries large enough for mem leaks to be problematic in standalone mode,
>> you're nuts.) 

> FWIW, by that definition I have been nuts several time in the past -
> without much choice since I was recovering data from a corrupted cluster
> and the database couldn't be started normally. This now has gotten worse
> (even in the backbranches) since debugtup won't clean up detoasted data
> anymore.
> But I guess the solution for that is to use COPY in those situations
> which shouldn't have that problem and should work. Also, easier to parse ;)

Considering the output from debugtup goes to stdout where it will be
intermixed with prompts etc, I'd have to think that COPY is a way better
solution for dealing with bulk data.

Really I'd like to see standalone mode, in its current form, go away
completely.  I had a prototype patch for allowing psql and other clients
to interface to a standalone backend.  I think getting that finished would
be a way more productive use of time than improving debugtup.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (12+ messages)  latest in thread

Message-ID: <11268.1383576322@sss.pgh.pa.us>
Permalink:  ../11268.1383576322@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11268.1383576322@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, decibel@decibel.org, g.vanluffelen@qipc.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #8573: int4range memory consumption
  In-Reply-To: <11268.1383576322@sss.pgh.pa.us>
  References: <E1VcC7Y-0006Tl-He@wrigleys.postgresql.org> <18832.1383332908@sss.pgh.pa.us> <FE8DFBB6-CE61-45FE-BCFE-34E3941D1D37@decibel.org> <12646.1383420576@sss.pgh.pa.us> <20131104101221.GJ3567@awork2.anarazel.de> <11268.1383576322@sss.pgh.pa.us>

* 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