Re: pg_upgrade: Pass -j down to vacuumdb

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_upgrade: Pass -j down to vacuumdb
Дата
Msg-id 2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: pg_upgrade: Pass -j down to vacuumdb  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_upgrade: Pass -j down to vacuumdb
Re: pg_upgrade: Pass -j down to vacuumdb
Список pgsql-hackers
On 2019-03-25 22:57, Tom Lane wrote:
> +    fprintf(script, "echo %sYou may wish to add --jobs=N for parallel analyzing.%s\n",
> +            ECHO_QUOTE, ECHO_QUOTE);

But then you get that information after you have already started the script.

I don't find any information about this analyze business on the
pg_upgrade reference page.  Maybe a discussion there could explain the
different paths better than making the output script extra complicated.

Essentially: If you want a slow and gentle analyze, use the supplied
script.  If you want a fast analyze, use vacuumdb, perhaps with an
appropriate --jobs option.  Note that pg_upgrade --jobs and vacuumdb
--jobs are resource-bound in different ways, so the same value might not
be appropriate for both.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: Ordered Partitioned Table Scans
Следующее
От: Yugo Nagata
Дата:
Сообщение: Improvement of installation document