From: Diehl, Jeffrey <jdiehl@sandia.gov>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
To: darcy@druid.net
Cc: Diehl, Jeffrey <jdiehl@sandia.gov>
Cc: pgsql-sql@postgresql.org
Subject: Re: Out of free buffers... HELP!
Date: Wed, 19 Sep 2001 14:55:39 -0600
Message-ID: <B51F0C636E578A4E832D3958690CD73E0130C03B@es04snlnt> (raw)
I recently lost a hard drive and had to re-install, so the PG version I am
using is only about 3 weeks old. However, as I said in my original post, I
have A LOT of data in this database. Brick* implies 1334 tables, some of
which have 2.5M records... All told, I have about 355G of data. I don't
care if it takes DAYS to run queries like this, but I need them to finish.
Ok, you may be thinking that I am nuts to try to store this much data and to
break it up into so many tables. Well, I used to have it all in one
table.... It took several days to vacuum it, and because inserts are
happening all the time, I was unable to have the tables indexed and still be
able to keep up with the incoming data. This new structure addresses these
and other issues.
Any help would be most appreciated.
Mike Diehl,
Network Monitoring Tool Devl.
Sandia National Laboratories.
(505) 284-3137
jdiehl@sandia.gov
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: September 18, 2001 5:26 PM
> To: darcy@druid.net
> Cc: jdiehl@sandia.gov; pgsql-sql@postgresql.org
> Subject: Re: [SQL] Out of free buffers... HELP!
>
>
> darcy@druid.net (D'Arcy J.M. Cain) writes:
> > Thus spake Diehl, Jeffrey
> >> psql ids -c 'select src,dst,count(*) from brick* where src_port=135
> >> group by src,dst' > /tmp/135.dat
>
> > Hard to tell without knowing more but perhaps you need another table
> > instead of/in addition to this one that just tracks the counts. You
> > can use a trigger to increment it. If you only allow inserts this
> > should be easy. Deletes are easy too. Updates are a
> little trickier.
>
> The thing is, you shouldn't ever get "out of free buffers", period.
> Jeffrey must be running into some kind of buffer-leak bug ... but it's
> hard to think what, unless he's running an extremely old PG version.
> We haven't seen reports of buffer leaks in a long time. So I'd like
> to run that down, quite independently of whether he should change his
> query for efficiency.
>
> regards, tom lane
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
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-sql@postgresql.org
Cc: jdiehl@sandia.gov, tgl@sss.pgh.pa.us, darcy@druid.net
Subject: Re: Out of free buffers... HELP!
In-Reply-To: <B51F0C636E578A4E832D3958690CD73E0130C03B@es04snlnt>
References: <B51F0C636E578A4E832D3958690CD73E0130C03B@es04snlnt>
* 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