How to perform update on pg_index

0

We are using a RDS Postgres 15 and have a use case that requires disabling specific indexes using pg_index table but all attempts result in ERROR: permission denied for table pg_index . We've tried granting permissions and altering schema but still receive the same error.

Thanks for any assistance

Steve
gefragt vor 4 Monaten427 Aufrufe
1 Antwort
0

Hi,

Regrettably disabling indexes using pg_index will not be possible as pg_index is owned by rdsadmin:

postgres=> \dt+ pg_index
                              List of relations
   Schema   |   Name   | Type  |  Owner   | Persistence | Size  | Description
------------+----------+-------+----------+-------------+-------+-------------
 pg_catalog | pg_index | table | rdsadmin | permanent   | 56 kB |
(1 row)

Users within RDS are not allowed to modify system catalogs in RDS/Aurora PostgreSQL.

AWS
SUPPORT-TECHNIKER
Kyle_B
beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen