Re: Is analyze_new_cluster.sh still useful?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Is analyze_new_cluster.sh still useful?
Дата
Msg-id 20140618172749.GR3115@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Is analyze_new_cluster.sh still useful?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Is analyze_new_cluster.sh still useful?
Список pgsql-hackers
On 2014-06-18 13:24:14 -0400, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > On 2014-06-18 12:51:43 -0400, Tom Lane wrote:
> >> Another angle is that some folks might have tried to automate things
> >> even more, with a wrapper script that starts up the new postmaster
> >> and runs analyze_new_cluster.sh all by itself.  I guess they could
> >> make the wrapper do "vacuumdb --all --analyze-in-stages" directly,
> >> though, so maybe that's not a fatal objection either.
> 
> > Wouldn't that be quite counterproductive? The reason we don't normally
> > do that and why --analyze-in-stages exists is that the cluster should be
> > started up as fast as possible. Restarting it after ANALYZE went through
> > would be defeating that purpose, no?
> 
> How so?  Once you've started the postmaster, you're open for business,
> no?

Wasn't there lots of talk about making the server inaccessible while
pg_upgrade is doing its thing? Also, many people are desparately unhappy
if postgres has to be restarted (to return to be being OS managed) after
their application already has connected.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Set new system identifier using pg_resetxlog
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: Set new system identifier using pg_resetxlog