the table `pg_authid` is not available on AWS RDS hosted postgresql. It just gives the following error: `PostgreSQL said: permission denied for relation pg_authid` The problem is that in the AWS managed RDS, once can't have the full superuser, just some aws admin user that can't access this table. It seems that AWS consides this a feature, not a bug, source: https://stackoverflow.com/questions/55143544/aws-rds-postgresql-access-to-pg-catalog-pg-authid-forbidden-in-all-contexts Since `postgres_info` uses a query that involves this table: https://github.com/ansible-collections/community.postgresql/blob/main/plugins/modules/postgresql_info.py#L711 that command does not work on aws rds.