Users and roles in Managed Service for PostgreSQL
Written by
Updated at October 30, 2025
Can I migrate users from a PostgreSQL source cluster to a Managed Service for PostgreSQL target cluster?
No, you cannot automatically migrate users from a third-party PostgreSQL cluster or a Managed Service for PostgreSQL cluster to a Managed Service for PostgreSQL cluster. You have to create users once again in the target cluster.
How to create a role using SQL queries?
You cannot create a role using SQL queries.
In PostgreSQL, a role is a database user or group of users. In Managed Service for PostgreSQL, you can create a user only via the management console, Yandex Cloud CLI, Terraform, or API. For more information about creating users, see this PostgreSQL guide
You can assign user privileges, which decide the actions the user can perform with database objects.