Re: Drop table wildcard

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Drop table wildcard
Дата
Msg-id 28575.989894137@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Drop table wildcard  (Danny Aldham <danny@lennon.postino.com>)
Список pgsql-novice
Danny Aldham <danny@lennon.postino.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

В списке pgsql-novice по дате отправления:

Предыдущее
От: Danny Aldham
Дата:
Сообщение: Drop table wildcard
Следующее
От: "Matus \"fantomas\" Uhlar"
Дата:
Сообщение: asynchronour queries and result testing