From: | Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: swap storm created by 8.2.3 |
Date: | 2007-05-22 17:40:50 |
Message-ID: | 46532B22.9090008@cox.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/22/07 12:17, Joseph Shraibman wrote:
> I'm running:
>
> PostgreSQL 8.2.3 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC)
> 3.4.6 20060404 (Red Hat 3.4.6-3)
>
> My memory settings are:
>
> work_mem = 64MB
> shared_buffers = 128MB
> temp_buffers = 32MB
>
> I ran a query that was "SELECT field, count(*) INTO TEMP temptable" and
> it grew to be 10gig (as reported by top) and brought the whole machine
> to its knees. How do I keep this from happening again?
It looks to me as if TEMP tables are in-memory structures, not
file-backed objects like "regular" tables.
- --
Ron Johnson, Jr.
Jefferson LA USA
Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGUysiS9HxQb37XmcRAo06AJ4k2i7Q1GN1digKbcYoZYuZv/E0SwCg4zN5
ENSWo9fvXwTJWKatOGb/xpY=
=WAvF
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2007-05-22 17:41:12 | Re: How to move tables in another physial place |
Previous Message | sudhir | 2007-05-22 17:27:59 | Re: Lock table, Select for update and Serialization error |