Re: reindexing db

Поиск
Список
Период
Сортировка
От Paul Förster
Тема Re: reindexing db
Дата
Msg-id 01FAC841-0FF0-4B63-A507-C76EFB62A97F@gmail.com
обсуждение исходный текст
Ответ на Re: reindexing db  (Ron <ronljohnsonjr@gmail.com>)
Ответы Re: reindexing db
Список pgsql-admin
Hi Ron,

> On 08. Dec, 2020, at 08:42, Ron <ronljohnsonjr@gmail.com> wrote:
>
> DB=test
> while read line;
> do
>     psql $DB "REINDEX TABLE $line CONCURRENTLY;"
> done < list_of_tables.txt

yes, you can do that of course. In this case, I would add an "&" after the psql and probably a "wait" at the end. This
shouldget the job done in parallel. :-) 

That of course depends on how fast the machine is and how much load it can take. :-)

Cheers,
Paul


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

Предыдущее
От: Ron
Дата:
Сообщение: Re: reindexing db
Следующее
От: Ron
Дата:
Сообщение: Re: reindexing db