pg_dump ANALYZE statements

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема pg_dump ANALYZE statements
Дата
Msg-id 1169480417.3776.324.camel@silverbirch.site
обсуждение исходный текст
Ответы Re: pg_dump ANALYZE statements  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pg_dump ANALYZE statements  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
Re: pg_dump ANALYZE statements  (Gregory Stark <stark@enterprisedb.com>)
Re: pg_dump ANALYZE statements  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-hackers
There is currently a performance tip to run ANALYZE after a pg_dump
script has been restored.

ISTM that pg_dump should default to have ANALYZE statements for a table,
when both table definition and data are dumped. If only data (-a) or
only table definition (-s) is dumped the default should be to *not* add
an ANALYZE statement.

There doesn't seem to be any reason to skip the ANALYZE, but I'll
implement it as an option. 
-z on | off 
--analyze=on | off

This would add a table-specific ANALYZE statement following each table's
actions.

I'm not aware of a strong argument against such an option. Performance
surely can't be one because the time saved on the ANALYZE will quickly
bite back on time lost on poorly planned queries.

What does the panel think?

--  Simon Riggs              EnterpriseDB   http://www.enterprisedb.com




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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: savepoint improvements
Следующее
От: Tom Lane
Дата:
Сообщение: Re: savepoint improvements