temp tables remain after server restart

From: Hari Bhaskaran <hbhaskaran(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: temp tables remain after server restart
Date: 2005-08-31 18:55:09
Message-ID: 8d03025a050831115546bcb517@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

one of our programs went haywire and created around 200,000 temp
tables. In the end, I restarted the db, but the temporary tables are
still around

the query

SELECT n.nspname, c.relname, c.relkind, c.relpages, c.reltuples FROM
pg_class c LEFT JOIN pg_namespace n ON n.oid = c.relnamespace WHERE
(c.relkind = 'r'::"char" OR c.relkind = 'i'::"char") order by relpages

still shows all 200,000 of them.
What should I be doing to clean it up?

They are all under pg_temp_xxxxx namespaces

Any help is appreciated.
--
Hari

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2005-08-31 19:06:19 Re: newbie - postgresql or mysql
Previous Message Frank 2005-08-31 18:50:16 Re: newbie - postgresql or mysql