So I'm trying to create a FDW in a running v12 Postgres RDS instance.
The extension already exists, but for some reason I cannot create one. This seems crazy simple having come from an on premises set up.
What am I missing here ?
sourceDatabase=> create extension postgres_fdw ;
ERROR: extension "postgres_fdw" already exists
sourceDatabase=> create foreign data wrapper testwrap ;
ERROR: permission denied to create foreign-data wrapper "testwrap"
HINT: Must be superuser to create a foreign-data wrapper.
sourceDatabase=> \du
List of roles
Role name | Attributes | Member of
---------------------------+------------------------------------------------+--------------------------------------------------------------
rds_superuser | Cannot login | {pg_monitor,pg_signal_backend,rds_replication,rds_password}
rdsadmin | Superuser, Create role, Create DB, Replication+| {}
| Password valid until infinity |
rdsrepladmin | No inheritance, Cannot login, Replication | {}
sourceUser | Create role, Create DB +| {rds_superuser}
| Password valid until infinity |
ERROR: permission denied to create foreign-data wrapper "testwrap" HINT: Must be superuser to create a foreign-data wrapper.tells you can't do that without becoming asuperuser. You will need to do this asrdsadmin.