From b1e4554d977a68dd4f39308c5a117b5a4ff481c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= Date: Tue, 20 Feb 2024 17:06:02 +0100 Subject: [PATCH] add aiven extras docs --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2f52357..de356e5 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,16 @@ it is done with running the SQL command below, and restating the database server ALTER SYSTEM SET wal_level = logical; ``` +When registering a new region on a DigitalOcean postgres server, the default user doesn't have the required roles to set up a subscription. +On DO we can use [aiven-extras](https://github.com/aiven/aiven-extras) to create subs without root access. +The current branch is utilizing just that. But it needs a setup step executed on each database, that is registered as a region + +Run this in a `psql` shell + +```sql +CREATE EXTENSION aiven_extras; +``` + Note: Postgres subscriptions (which we use) in the same db server don't work that easily; easiest way to get things going is to set up multiple db servers locally. ## Project description @@ -52,11 +62,10 @@ Organizations may be granted access to any given region. That action creates a n ## Steps to flex this POC Using the exposed graphql explorer, you can go ahead and -- create a user + +- create a user - create an organisation - add the user to the organisation - create regions & associate them with an organisation - create a resource in the default organisation, or for a specific organisation & region - etc. - -