Re: Is it safe to rename an index through pg_class update?

From: Kouber Saparev <kouber(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Is it safe to rename an index through pg_class update?
Date: 2020-03-23 16:39:40
Message-ID: CAN4RuQuMPR4=gxuCquAZf+Q-1aW2Y9Ffxt71kwq4uC1JvAmMVg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Just in case somebody else also needs such a functionality in PostgreSQL <
12, I made a function in plpgsql:

https://github.com/kouber/pg_utils/blob/master/rename_index.sql

--
Kouber Saparev

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Radu Radutiu 2020-03-23 16:48:35 Re: Runtime partition pruning
Previous Message Andres Freund 2020-03-23 16:23:03 Re: PG12 autovac issues