Database Permission Levels¶
The database associates each login with specific permissions to objects (tables, etc.) within the database.[1]
To access the data in the database permission must be granted. This is done per user login.
There are 2 ordinary levels of permission. Their names are:
readerPermission to query database content.
writerAll the permissions of
readerplus permission to alter the content of the database.
Ordinary permissions are database roles.
Changing A User’s Permissions¶
Normally, users are given the desired level of access when their login is created using SOKWEDB administration tools. There are various ways permissions can be granted or changed. One way is with SQL[2], e.g.:
GRANT reader TO someuser;
The Administrator Permission Levels¶
Administrators are in two groups, role_owner and
admin.
The admin permission level has near-maximal permissions.
It owns all database objects.
The role_owner group manages all roles and has permission to
create new users.[3]
It is the admin role that owns all the SOKWEDB database
objects, the tables, views, etc.
As PostgreSQL introduces new pre-defined roles the
admin should be added as a member of those roles.
This will give all administrators the requisite additional access.
Footnotes
Page last generated: 2025-10-24 02:43:12 UTC