Reindex concurrently

From: SOzcn <selahattinozcnma(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Reindex concurrently
Date: 2023-12-13 11:27:06
Message-ID: CAJyV5AanzhzubzCs0-Ergr3S_02FjHPWScNxnKB93L7mbRDTnw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello team,

We've been building a index maintenance scripts but in the function it
doesn't work with concurrently, is there a way for manipulate that ? Just
for example ; The reindexes are working without function. Have a nice day!

select index_stat.test ();

CREATE OR REPLACE FUNCTION index_stat.test()

RETURNS void

LANGUAGE plpgsql

AS $function$

begin

REINDEX INDEX CONCURRENTLY "players_id_idx";

commit;

REINDEX INDEX CONCURRENTLY "players_about_idx";

commit;

end;

$function$

;

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Holger Jakobs 2023-12-13 13:48:53 Re: Reindex concurrently
Previous Message SOzcn 2023-12-13 07:25:17 Re: Log Rotation