May 17, 2026, 11:40 PM

This commit is contained in:
Paweł Domański
2026-05-18 06:40:19 +00:00
commit 64944cf004
896 changed files with 310709 additions and 0 deletions
@@ -0,0 +1,21 @@
List roles :
postgres=# select rolname,rolcanlogin,rolvaliduntil from pg_roles;
rolname | rolcanlogin | rolvaliduntil
----------------------+-------------+---------------------------
pg_monitor | f |
pg_read_all_settings | f |
pg_read_all_stats | f |
pg_stat_scan_tables | f |
pg_signal_backend | f |
postgres | t |
test_dbuser1 | f | 2020-08-08 00:00:00+05:30
rolcanlogin - > If true mean they are role as well as user
If false mean they are only role( they cannot login)
NOTE - > In postgres users are bydefault role, but roles are not bydefault user. i.e
Bydefault user come with login privilege, where as roles dont come with login privilege.