Rewrote the whole website to get rid on a heavy theme
This commit is contained in:
parent
3ea54810ad
commit
60d3abc6ec
122 changed files with 346 additions and 2558 deletions
17
content/blog/miscellaneous/postgresql-read-only.md
Normal file
17
content/blog/miscellaneous/postgresql-read-only.md
Normal 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 >}}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue