From 95bf612c338dec8235e89ca6a1d9e5e8cad3f997 Mon Sep 17 00:00:00 2001
From: Christian Cleberg <hello@cleberg.net>
Date: Tue, 6 May 2025 21:31:46 -0500
Subject: reorganize db dir (#6)

---
 databases/administrators/postgres/admins.sql | 22 ----------------------
 1 file changed, 22 deletions(-)
 delete mode 100644 databases/administrators/postgres/admins.sql

(limited to 'databases/administrators/postgres/admins.sql')

diff --git a/databases/administrators/postgres/admins.sql b/databases/administrators/postgres/admins.sql
deleted file mode 100644
index 6f9d320..0000000
--- a/databases/administrators/postgres/admins.sql
+++ /dev/null
@@ -1,22 +0,0 @@
--- References:
---           : https://www.postgresql.org/docs/current/user-manag.html
---           : https://www.postgresql.org/docs/current/view-pg-roles.html
---           : https://www.postgresql.org/docs/current/catalog-pg-auth-members.html
-
-SELECT 
-    r.rolname AS role_name,
-    r.rolsuper AS is_superuser,
-    r.rolinherit AS inherits_privileges,
-    r.rolcreaterole AS can_create_roles,
-    r.rolcreatedb AS can_create_db,
-    r.rolcanlogin AS can_login,
-    r.rolreplication AS can_replication,
-    r.rolconnlimit AS connection_limit,
-    r.rolvaliduntil AS valid_until,
-    ARRAY(
-        SELECT b.rolname
-        FROM pg_auth_members m
-        JOIN pg_roles b ON (m.roleid = b.oid)
-        WHERE m.member = r.oid
-    ) AS member_of
-FROM pg_roles r;
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

