From 5d984785678b0a55b7caa555e61860e6703a7be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radoslav=20Bod=C3=B3?= <bodik@cesnet.cz> Date: Sat, 4 May 2024 20:12:00 +0200 Subject: [PATCH] scripts: restore postgresql usage docs --- scripts/restore_postgresql.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/restore_postgresql.sh b/scripts/restore_postgresql.sh index 727f5d6..0ee9990 100755 --- a/scripts/restore_postgresql.sh +++ b/scripts/restore_postgresql.sh @@ -1,4 +1,15 @@ #!/bin/bash +# +# Restores all databases (might throw errros, see pg docs). +# Might require to regrant privileges or ownership of created objects. +# +# ``` +# \c database +# GRANT ALL PRIVILEGES ON SCHEMA public TO y; +# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO y; +# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO y; +# ``` +` set -ex umask 077 -- GitLab