Um banco de dados do AlloyDB Omni usa o conceito padrão de papéis do PostgreSQL. Um papel pode atuar como um usuário do banco de dados, um grupo de usuários ou ambos.
Uma função do usuário tem o privilégio LOGIN, que permite que os usuários façam login no sistema do AlloyDB Omni. Uma função de grupo tem papéis de membro com vários privilégios, que podem ser concedidos ou revogados para todos os membros de uma só vez.
Papéis predefinidos do PostgreSQL no AlloyDB Omni
O PostgreSQL tem um conjunto de papéis predefinidos
com vários privilégios. O AlloyDB Omni adiciona vários papéis do usuário e de grupo a esse conjunto de papéis predefinidos do PostgreSQL.
A seguinte tabela lista os papéis do PostgreSQL que o AlloyDB Omni
predefine:
Nome do papel
Privilégios
alloydbadmin
SUPERUSER (que inclui CREATEROLE, CREATEDB e LOGIN).
alloydbmetadata
Por padrão, esse papel não tem nenhum privilégio.
Além disso, o AlloyDB Omni reserva os nomes de papéis a seguir que não são usados, mas podem ser usados no futuro.
Nome do papel
Privilégios
alloydbagent
NOLOGIN
alloydbexport
NOLOGIN
alloydbiamgroupuser
NOLOGIN
alloydbiamuser
NOLOGIN
alloydbimportexport
NOLOGIN
alloydbobservability
NOLOGIN
alloydbreplica
NOLOGIN
alloydbsqllogical
NOLOGIN
alloydbsuperuser
NOLOGIN
A função do usuário alloydbadmin
alloydbadmin é um papel predefinido que configura
o sistema de banco de dados e realiza outras tarefas de superusuário. Esse papel tem os seguintes privilégios:
Criar extensões que exigem privilégios de superusuário
Criar gatilhos de eventos
Criar usuários de replicação
Criar publicações e assinaturas de replicação
Esse papel é usado apenas por ferramentas internas do AlloyDB Omni e não deve ser usado por usuários.
O papel alloydbmetadata
alloydbmetadata é um papel predefinido com menos privilégios, também usado internamente pelo AlloyDB Omni. Assim como alloydbadmin, esse papel não deve ser usado por outros usuários.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[[["\u003cp\u003eAlloyDB Omni utilizes standard PostgreSQL roles, which can function as database users, groups, or both.\u003c/p\u003e\n"],["\u003cp\u003eAlloyDB Omni introduces predefined roles like \u003ccode\u003ealloydbadmin\u003c/code\u003e (with \u003ccode\u003eSUPERUSER\u003c/code\u003e privileges) and \u003ccode\u003ealloydbmetadata\u003c/code\u003e (with no default privileges).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ealloydbadmin\u003c/code\u003e role, possessing extensive privileges such as \u003ccode\u003eCREATEROLE\u003c/code\u003e, \u003ccode\u003eCREATEDB\u003c/code\u003e, and \u003ccode\u003eLOGIN\u003c/code\u003e, is intended for AlloyDB Omni's internal operations.\u003c/p\u003e\n"],["\u003cp\u003eAlloyDB Omni has reserved several role names (e.g., \u003ccode\u003ealloydbagent\u003c/code\u003e, \u003ccode\u003ealloydbexport\u003c/code\u003e) with \u003ccode\u003eNOLOGIN\u003c/code\u003e privilege for potential future use.\u003c/p\u003e\n"]]],[],null,["# AlloyDB Omni user role overview\n\nSelect a documentation version: 15.7.1keyboard_arrow_down\n\n- [Current (16.8.0)](/alloydb/omni/current/docs/database-users/overview)\n- [16.8.0](/alloydb/omni/16.8.0/docs/database-users/overview)\n- [16.3.0](/alloydb/omni/16.3.0/docs/database-users/overview)\n- [15.12.0](/alloydb/omni/15.12.0/docs/database-users/overview)\n- [15.7.1](/alloydb/omni/15.7.1/docs/database-users/overview)\n- [15.7.0](/alloydb/omni/15.7.0/docs/database-users/overview)\n\n\u003cbr /\u003e\n\nThis page describes how AlloyDB Omni on a VM works with PostgreSQL roles. This page assumes that you are familiar with PostgreSQL.\n\n\u003cbr /\u003e\n\nAn AlloyDB Omni database uses [the standard PostgreSQL concept of roles](https://www.postgresql.org/docs/current/database-roles.html). A role can act as a database user, a group of users, or both.\n\nA *user role* has the `LOGIN` privilege that lets users sign in to the AlloyDB Omni system. A *group role* has member roles with various privileges, which you can grant to or revoke from all members at once.\n\nAlloyDB Omni predefined PostgreSQL roles\n----------------------------------------\n\nPostgreSQL has a set of [predefined roles](https://www.postgresql.org/docs/current/predefined-roles.html)\nwith various privileges. AlloyDB Omni adds several user and group\nroles to this set of PostgreSQL's predefined roles.\n\nThe following table lists the PostgreSQL roles that AlloyDB Omni\npredefines:\n\nIn addition, AlloyDB Omni reserves the following role names that are unused but may be used in the future.\n\n### The alloydbadmin user role\n\nThe `alloydbadmin` role is a predefined role that sets up\nthe database system and performs other superuser tasks. This role has the following privileges:\n\n- Create extensions that require superuser privileges\n- Create event triggers\n- Create replication users\n- Create replication publications and subscriptions\n\nThis role is only used by AlloyDB Omni internal tools and shouldn't be used by users.\n\n### The alloydbmetadata role\n\nThe `alloydbmetadata` role is a predefined role with fewer privileges, also used by AlloyDB Omni internally. Similar to `alloydbadmin`, this role shouldn't be used by other users.\n\nWhat's next\n-----------\n\n- [Manage AlloyDB Omni roles](/alloydb/omni/15.7.1/docs/database-users/about)"]]