A PostgreSQL backend started with the master user as POSTGRES_USER, so the master was the bootstrap superuser and owned the system catalog: REASSIGN OWNED BY <master> failed with "required by the database system", and rds_superuser did not exist.
A new backend is now initialized as rdsadmin, as RDS initializes one. A first-boot script creates the master as LOGIN NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION VALID UNTIL 'infinity' in rds_superuser (RDS User Guide, "Understanding the rds_superuser role"). The master owns postgres, template1 and the instance's database. rds_superuser holds rds_password, rds_replication and the predefined pg_* roles RDS grants it, with ADMIN OPTION, and ADMIN OPTION alone on rds_iam on PostgreSQL 16 and later, so the master can grant rds_iam without becoming an IAM-only member. The rdsadmin database is closed to PUBLIC.
rdsadmin gets a random password on every start, which only the auth proxy uses: an IAM session for a role other than the master is opened as rdsadmin and handed over, since only a superuser can SET SESSION AUTHORIZATION. No client may log in as rdsadmin. The proxy's rds_iam walk skips grants of ADMIN OPTION alone, such as the one PostgreSQL 16 gives the master on each role it creates. Snapshots, restores, exports and database renames run as rdsadmin; a restore applies the RDS roles and ownership again and gives rdsadmin back its password.
A data volume first initialized by an earlier Floci keeps its master as the bootstrap superuser, and a master named rdsadmin stays one. Two tests leaned on a superuser master: the IAM replication test now turns logical replication on through rds.logical_replication in a parameter group instead of ALTER SYSTEM, and the startup-parameters test stores its superuser-only role defaults as rdsadmin and gives app_user its schema with GRANT USAGE.
Closes#5885