Skip to content

community.postgresql.postgresql_info does not work in AWS RDS hosted postgresql #169

@marcosdiez

Description

@marcosdiez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions