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/postgres/passwords.sql | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 databases/postgres/passwords.sql

(limited to 'databases/postgres/passwords.sql')

diff --git a/databases/postgres/passwords.sql b/databases/postgres/passwords.sql
new file mode 100644
index 0000000..cb81cd6
--- /dev/null
+++ b/databases/postgres/passwords.sql
@@ -0,0 +1,18 @@
+-- References:
+--           : https://www.postgresql.org/docs/current/view-pg-shadow.html
+--           : https://www.postgresql.org/docs/current/auth-password.html
+--           : https://www.postgresql.org/docs/current/auth-password.html#AUTH-PASSWORD-ENCRYPTION
+--           : https://www.postgresql.org/docs/current/runtime-config.html
+
+-- Defined password configuration
+SELECT *
+FROM pg_settings
+WHERE name LIKE 'password_%';
+
+-- Users and their password configurations
+SELECT 
+    usename AS user_name,
+    passwd AS password,
+    valuntil AS valid_until,
+    useconfig AS user_config
+FROM pg_shadow;
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

