Re: Reindex concurrently - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Reindex concurrently
Date
Msg-id CAKFQuwZ94S=fXfPWP8rCpJVckSMiGKDziEu_UumL-x_U0yLPNA@mail.gmail.com
Whole thread Raw
In response to Re: Reindex concurrently  (SOzcn <selahattinozcnma@gmail.com>)
Responses Re: Reindex concurrently
List pgsql-admin
On Wednesday,
According to my research, the only way to do this is to write a bash script in Linux and insert it with the loop.

Right.  It is fundamentally impossible to store something in the database capable of executing multiple commands and not execute it within a normal transaction.  The maintenance work that cannot be done within a transaction must be sourced externally and executed in an implicit transaction that auto-commits after the command finishes.

David J.

pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Reindex concurrently
Next
From: Rajesh Kumar
Date:
Subject: Re: Verify data after backup and restore