pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 德哥 <digoal@126.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14234: PostgreSQL consuming large amount of memory for persistent connection
Date: Fri, 8 Jul 2016 13:11:52 +0800 (CST)
Message-ID: <cb85153.681c.155c8eb4dde.Coremail.digoal@126.com> (raw)
In-Reply-To: <8343.1467943278@sss.pgh.pa.us>
References: <20160708012833.1419.89062@wrigleys.postgresql.org>
	<8343.1467943278@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>



HI,
   This is a reproduce method for why PostgreSQL session cann't release memory.
   I have another case, has the same problem.
   so i don't known why postgres cann't release memory? or can you explain these memory contain which objects? why use this design?  
best regards,
digoal




--
公益是一辈子的事,I'm Digoal,Just Do It.




At 2016-07-08 10:01:18, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>digoal@126.com writes:
>> why PostgreSQL session do not release these memory?
>> it will comsume these memory until disconnect.  
>
>Your session has created and accessed 100000 tables plus 100000 views.
>I do not think you should complain if that takes a great deal of memory.
>Either rethink why you need so many tables, or buy hardware commensurate
>with the size of your problem.
>
>			regards, tom lane


view thread (4+ messages)  latest in thread

Message-ID: <cb85153.681c.155c8eb4dde.Coremail.digoal@126.com>
Permalink:  ../cb85153.681c.155c8eb4dde.Coremail.digoal@126.com/
Also on:    postgresql.org/message-id/cb85153.681c.155c8eb4dde.Coremail.digoal@126.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: digoal@126.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14234: PostgreSQL consuming large amount of memory for persistent connection
  In-Reply-To: <cb85153.681c.155c8eb4dde.Coremail.digoal@126.com>
  References: <20160708012833.1419.89062@wrigleys.postgresql.org> <8343.1467943278@sss.pgh.pa.us> <cb85153.681c.155c8eb4dde.Coremail.digoal@126.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