Re: reindexing db - Mailing list pgsql-admin

From Paul Förster
Subject Re: reindexing db
Date
Msg-id 01FAC841-0FF0-4B63-A507-C76EFB62A97F@gmail.com
Whole thread Raw
In response to Re: reindexing db  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: reindexing db  (Ron <ronljohnsonjr@gmail.com>)
List 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 by date:

Previous
From: Ron
Date:
Subject: Re: reindexing db
Next
From: Ron
Date:
Subject: Re: reindexing db