Difference between revisions of "GRANT pg read all data TO xxx;"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
  
:<code>create role USERNAME with login password 'PASSWORD';</code>
+
:<code>[[create role]] USERNAME [[with login password]] 'PASSWORD';</code>
 
:<code>[[GRANT]] [[pg_read_all_data]] TO xxx;</code> <ref>https://stackoverflow.com/a/67213972</ref>
 
:<code>[[GRANT]] [[pg_read_all_data]] TO xxx;</code> <ref>https://stackoverflow.com/a/67213972</ref>
 +
 +
[[PostgreSQL read only user]]:
 +
:<code>[[create role]] USERNAME [[with login password]] 'PASSWORD';</code>
 +
:<code>[[GRANT]] [[pg_read_all_data]], [[pg_monitor]] TO xxx;</code>
  
 
== Related ==
 
== Related ==
Line 13: Line 17:
 
* [[PostgreSQL predefined roles]]
 
* [[PostgreSQL predefined roles]]
 
* [[PostgreSQL users]]
 
* [[PostgreSQL users]]
 +
* [[pg_monitor]]
  
 
== See also ==
 
== See also ==
 +
* {{PostgreSQL users}}
 
* {{ALTER}}
 
* {{ALTER}}
 
* {{GRANT}}
 
* {{GRANT}}
  
 
[[Category:PostgreSQL]]
 
[[Category:PostgreSQL]]

Latest revision as of 16:15, 20 September 2024

Advertising: