From 4be7747818f2250d451adef470424eac64ca48d6 Mon Sep 17 00:00:00 2001 From: dorota <114921900+wojcik-dorota@users.noreply.github.com> Date: Wed, 27 Dec 2023 08:14:51 +0100 Subject: [PATCH] Update readonly-user.rst --- docs/products/postgresql/howto/readonly-user.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/products/postgresql/howto/readonly-user.rst b/docs/products/postgresql/howto/readonly-user.rst index d426eca9d0..ec94d4f479 100644 --- a/docs/products/postgresql/howto/readonly-user.rst +++ b/docs/products/postgresql/howto/readonly-user.rst @@ -1,9 +1,11 @@ Restrict access to databases or tables in Aiven for PostgreSQL® =============================================================== -This article shows how you can restrict access to Aiven for PostgreSQL® databases and tables by setting up read-only permissions for specific user's roles. + +You can restrict access to Aiven for PostgreSQL® databases and tables by setting up read-only permissions for specific user's roles. Set read-only access in a schema -------------------------------- + 1. Modify default permissions for a user's role in a particular schema. .. code-block:: bash @@ -18,8 +20,9 @@ Set read-only access in a schema Set read-only access in a database ---------------------------------- + You can set up the read-only access for a specific user's role in a particular database. -1. Create a new database which will be used as a template ``create database ro__template...`` +1. Create a new database which will be used as a template ``create database ro__template...``. 2. For the new template database, set permissions and roles that you want as default ones in the template. -3. When creating a new database, use ``create database NAME with template = 'ro__template'`` +3. When creating a new database, use ``create database NAME with template = 'ro__template'``.