Re: Proposal "VACUUM SCHEMA"

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема Re: Proposal "VACUUM SCHEMA"
Дата
Msg-id 20141222165836.GA11110@msg.df7cb.de
обсуждение исходный текст
Ответ на Re: Proposal "VACUUM SCHEMA"  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Re: Alvaro Herrera 2014-12-22 <20141222165157.GD1768@alvh.no-ip.org>
> Multi-table CLUSTER uses multiple transactions, so this should not be an
> issue.  That said, I don't think there's much point in CLUSTER SCHEMA,
> much less TRUNCATE SCHEMA.  Do you normally organize your schemas so
> that there are some that contain only tables that need to be truncated
> together?  That would be a strange use case.

Having a schema that's only used for importing data in batch jobs
doesn't sound too unreasonable. It could then be cleaned in a simple
"TRUNCATE SCHEMA import_area" command.

> Overall, this whole line of development seems like bloating the parse
> tables for little gain.

Reading the thread, my impression was that most people opposed the
idea because there's ways to script "vacuum schema", or because of
"people shouldn't be invoking manual vacuums anyway". I think the
patch tries to solve a practical problem, and does have its merits.

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Proposal "VACUUM SCHEMA"
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Proposal "VACUUM SCHEMA"