In Postgres, when a table owner, say "xxx" tries to transfer the table ownership to user "yyy", he is getting error
ERROR: must be member of role "yyy"
When I searched further, it can be fixed in two ways.
As a "Super user", we can transfer table ownership of any table. However it needs Super user/core DBA intervention every time.
As user "yyy" we need to grant like "grant yyy to xxx;", and then as user "xxx" transfer table ownership like "alter table test_table owner to yyy;". However, this seems aliasing user "yyy" to "xxx", and user "xxx" will get all permissions and grants of "yyy". Though table ownership is possible her, unnecessary privileges are also granted, which is not the intention.
Apart from these two ways, is there any way to transfer table ownership?