Re: Drop table wildcard

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Danny Aldham <danny(at)lennon(dot)postino(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Drop table wildcard
Date: 2001-05-15 02:35:37
Message-ID: 28575.989894137@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Danny Aldham <danny(at)lennon(dot)postino(dot)com> writes:
> I am working with some software that creates a lot of temporary tables
> to store query returns. So after a few weeks I have over 200 tables
> named tmp_123_some_number_etc . Is there a way from psql for me to
> drop all the tables with names beginning with tmp_ ?

Why don't you make it create the tables as TEMP tables to begin with?
Then they'll go away by themselves.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Matus "fantomas" Uhlar 2001-05-15 12:48:21 asynchronour queries and result testing
Previous Message Danny Aldham 2001-05-15 01:58:23 Drop table wildcard