resources
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources [2011/11/28 21:39] – [Admin SQL] k2patel | resources [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 62: | Line 62: | ||
== Read Only User == | == Read Only User == | ||
- | This only allow user to access database but can not write to it. | + | This only allow user to access database but can not write to it.\\ |
- | **NOTE : Before you grant make sure you selected database else it could not work** | + | <note important> |
<code sql> | <code sql> | ||
Line 70: | Line 70: | ||
GRANT SELECT ON ALL TABLES IN SCHEMA public TO carol; | GRANT SELECT ON ALL TABLES IN SCHEMA public TO carol; | ||
</ | </ | ||
+ | |||
+ | <note tip>If there is ERROR : pg_dump: The command was: LOCK SEQUENCE public.client_group IN ACCESS SHARE MODE See next Section </ | ||
+ | |||
+ | <code sql> | ||
+ | \dp public.client_group; | ||
+ | GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO backup; | ||
+ | </ | ||
+ | |||
+ | <note tip>Even you can use above commands to create backup user for specific database.</ | ||
==== Getting Connection Information ==== | ==== Getting Connection Information ==== |
resources.1322516368.txt.gz · Last modified: 2020/08/10 02:29 (external edit)