Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group