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
asked 3 months ago419 views
1 Answer
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 ENGINEER
Kyle_B
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions