Long overdue first commit with content

This commit is contained in:
Julien Dessaux 2020-04-28 17:29:52 +02:00
parent f63ce5bdd8
commit 6cc9d8c72a
92 changed files with 2031 additions and 97 deletions
content/en/blog/miscellaneous

View file

@ -0,0 +1,17 @@
---
title: "Grant postgresql read only access"
linkTitle: "Grant postgresql read only access"
date: 2015-11-24
description: >
Grant postgresql read only access
---
{{< highlight sh >}}
GRANT CONNECT ON DATABASE "db" TO "user";
\c db
GRANT USAGE ON SCHEMA public TO "user";
GRANT SELECT ON ALL TABLES IN SCHEMA public TO "user";
ALTER DEFAULT PRIVILEGES IN SCHEMA public
GRANT SELECT ON TABLES TO "user";
{{< /highlight >}}