Re: dropping a master table and all of its partitions?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: dropping a master table and all of its partitions?
Дата
Msg-id 20070227022623.GY19104@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: dropping a master table and all of its partitions?  (George Nychis <gnychis@cmu.edu>)
Список pgsql-general
George Nychis wrote:
> I tend to forget the important details ;)
>
> gnychis@sn001:~$ psql --version
> psql (PostgreSQL) 8.1.8
> contains support for command-line editing
> gnychis@sn001:~$ uname -a
> Linux sn001 2.6.17-10-server #2 SMP Tue Dec 5 21:17:26 UTC 2006 x86_64
> GNU/Linux

Just tried it here, worked without a hitch.

create a table "parent", then 2000 children
for i in `seq 1 2000`; do psql -c "create table child_$i (b int) inherits (parent)"; done

then
DROP TABLE parent CASCADE

and it took some seconds.  I have 1 GB of physical RAM here.

You're going to give us a lot more details ...

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: preventing ALTER TABLE RENAME from changing view definitions?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: dropping a master table and all of its partitions?