Re: memory issues when running with mod_perl

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jonathan Vanasco <postgres(at)2xlp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: memory issues when running with mod_perl
Date: 2006-10-03 16:43:49
Message-ID: 3484.1159893829@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jonathan Vanasco <postgres(at)2xlp(dot)com> writes:
> except instead of relying on a leak to increase memory, I'd like a
> rather intensive large function with a dataset to consumer massive
> amounts of ram. I just can't think of any function to do that.

Sort a big chunk of data with a high work_mem setting, eg

select random() from generate_series(1,1000000) order by 1;

or

select count(*) from
(select random() from generate_series(1,1000000) order by 1) ss;

The former will drive psql's memory usage up too, the latter not.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Browne 2006-10-03 17:15:53 Re: PostgreSQL Database Transfer between machines
Previous Message Jonathan Vanasco 2006-10-03 16:39:07 Re: memory issues when running with mod_perl