Console Output
02:46:00 [2025-11-21T02:46:00.037Z] + export POSTGRES_DB=****
02:46:00 [2025-11-21T02:46:00.037Z] + export POSTGRES_USER=****
02:46:00 [2025-11-21T02:46:00.037Z] + export PGPASSWORD=****
02:46:00 [2025-11-21T02:46:00.038Z] + echo 📈 Running basic performance queries...
02:46:00 [2025-11-21T02:46:00.038Z] 📈 Running basic performance queries...
02:46:00 [2025-11-21T02:46:00.038Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c
02:46:00 [2025-11-21T02:46:00.038Z] -- Test basic query performance
02:46:00 [2025-11-21T02:46:00.038Z] EXPLAIN ANALYZE SELECT 1 as test_query;
02:46:00 [2025-11-21T02:46:00.038Z]
02:46:00 [2025-11-21T02:46:00.038Z] -- Test system catalog performance
02:46:00 [2025-11-21T02:46:00.038Z] EXPLAIN ANALYZE SELECT COUNT(*) FROM information_schema.tables;
02:46:00 [2025-11-21T02:46:00.038Z]
02:46:00 [2025-11-21T02:46:00.038Z] -- Test connection info
02:46:00 [2025-11-21T02:46:00.038Z] SELECT database_name, process_count FROM (
02:46:00 [2025-11-21T02:46:00.039Z] SELECT datname as database_name, COUNT(*) as process_count
02:46:00 [2025-11-21T02:46:00.039Z] FROM pg_stat_activity
02:46:00 [2025-11-21T02:46:00.039Z] GROUP BY datname
02:46:00 [2025-11-21T02:46:00.039Z] ) as activity_stats;
02:46:00 [2025-11-21T02:46:00.039Z]
02:46:00 [2025-11-21T02:46:00.290Z] QUERY PLAN
02:46:00 [2025-11-21T02:46:00.290Z] ---------------------------------------------------------------------------------------
02:46:00 [2025-11-21T02:46:00.290Z] Result (cost=0.00..0.01 rows=1 width=4) (actual time=0.006..0.012 rows=1.00 loops=1)
02:46:00 [2025-11-21T02:46:00.290Z] Planning:
02:46:00 [2025-11-21T02:46:00.290Z] Buffers: shared hit=3
02:46:00 [2025-11-21T02:46:00.290Z] Planning Time: 0.233 ms
02:46:00 [2025-11-21T02:46:00.290Z] Execution Time: 0.160 ms
02:46:00 [2025-11-21T02:46:00.290Z] (5 rows)
02:46:00 [2025-11-21T02:46:00.290Z]
02:46:00 [2025-11-21T02:46:00.291Z] QUERY PLAN
02:46:00 [2025-11-21T02:46:00.291Z] --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02:46:00 [2025-11-21T02:46:00.291Z] Aggregate (cost=71.97..71.98 rows=1 width=8) (actual time=12.860..13.064 rows=1.00 loops=1)
02:46:00 [2025-11-21T02:46:00.291Z] Buffers: shared hit=28 read=12
02:46:00 [2025-11-21T02:46:00.291Z] -> Hash Left Join (cost=36.66..71.69 rows=112 width=0) (actual time=8.708..12.487 rows=215.00 loops=1)
02:46:00 [2025-11-21T02:46:00.291Z] Hash Cond: (c.reloftype = t.oid)
02:46:00 [2025-11-21T02:46:00.291Z] Buffers: shared hit=28 read=12
02:46:00 [2025-11-21T02:46:00.291Z] -> Hash Join (cost=1.09..34.58 rows=112 width=4) (actual time=0.733..3.171 rows=215.00 loops=1)
02:46:00 [2025-11-21T02:46:00.291Z] Hash Cond: (c.relnamespace = nc.oid)
02:46:00 [2025-11-21T02:46:00.292Z] Buffers: shared hit=22 read=1
02:46:00 [2025-11-21T02:46:00.292Z] -> Seq Scan on pg_class c (cost=0.00..32.67 rows=150 width=8) (actual time=0.115..1.366 rows=215.00 loops=1)
02:46:00 [2025-11-21T02:46:00.292Z] Filter: ((relkind = ANY ('{r,v,f,p}'::"char"[])) AND (pg_has_role(relowner, 'USAGE'::text) OR has_table_privilege(oid, 'SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER'::text) OR has_any_column_privilege(oid, 'SELECT, INSERT, UPDATE, REFERENCES'::text)))
02:46:00 [2025-11-21T02:46:00.292Z] Rows Removed by Filter: 202
02:46:00 [2025-11-21T02:46:00.292Z] Buffers: shared hit=13 read=1
02:46:00 [2025-11-21T02:46:00.292Z] -> Hash (cost=1.05..1.05 rows=3 width=4) (actual time=0.511..0.521 rows=4.00 loops=1)
02:46:00 [2025-11-21T02:46:00.292Z] Buckets: 1024 Batches: 1 Memory Usage: 9kB
02:46:00 [2025-11-21T02:46:00.292Z] Buffers: shared hit=9
02:46:00 [2025-11-21T02:46:00.292Z] -> Seq Scan on pg_namespace nc (cost=0.00..1.05 rows=3 width=4) (actual time=0.189..0.451 rows=4.00 loops=1)
02:46:00 [2025-11-21T02:46:00.293Z] Filter: (NOT pg_is_other_temp_schema(oid))
02:46:00 [2025-11-21T02:46:00.293Z] Buffers: shared hit=9
02:46:00 [2025-11-21T02:46:00.293Z] -> Hash (cost=27.29..27.29 rows=662 width=4) (actual time=7.886..7.909 rows=639.00 loops=1)
02:46:00 [2025-11-21T02:46:00.293Z] Buckets: 1024 Batches: 1 Memory Usage: 31kB
02:46:00 [2025-11-21T02:46:00.293Z] Buffers: shared hit=6 read=11
02:46:00 [2025-11-21T02:46:00.293Z] -> Hash Join (cost=1.09..27.29 rows=662 width=4) (actual time=0.307..5.861 rows=639.00 loops=1)
02:46:00 [2025-11-21T02:46:00.293Z] Hash Cond: (t.typnamespace = nt.oid)
02:46:00 [2025-11-21T02:46:00.293Z] Buffers: shared hit=6 read=11
02:46:00 [2025-11-21T02:46:00.293Z] -> Seq Scan on pg_type t (cost=0.00..22.62 rows=662 width=8) (actual time=0.091..2.002 rows=639.00 loops=1)
02:46:00 [2025-11-21T02:46:00.293Z] Buffers: shared hit=5 read=11
02:46:00 [2025-11-21T02:46:00.293Z] -> Hash (cost=1.04..1.04 rows=4 width=4) (actual time=0.157..0.165 rows=4.00 loops=1)
02:46:00 [2025-11-21T02:46:00.293Z] Buckets: 1024 Batches: 1 Memory Usage: 9kB
02:46:00 [2025-11-21T02:46:00.294Z] Buffers: shared hit=1
02:46:00 [2025-11-21T02:46:00.294Z] -> Seq Scan on pg_namespace nt (cost=0.00..1.04 rows=4 width=4) (actual time=0.093..0.108 rows=4.00 loops=1)
02:46:00 [2025-11-21T02:46:00.294Z] Buffers: shared hit=1
02:46:00 [2025-11-21T02:46:00.294Z] Planning:
02:46:00 [2025-11-21T02:46:00.294Z] Buffers: shared hit=332 read=14
02:46:00 [2025-11-21T02:46:00.294Z] Planning Time: 15.759 ms
02:46:00 [2025-11-21T02:46:00.294Z] Execution Time: 14.839 ms
02:46:00 [2025-11-21T02:46:00.294Z] (35 rows)
02:46:00 [2025-11-21T02:46:00.294Z]
02:46:00 [2025-11-21T02:46:00.294Z] database_name | process_count
02:46:00 [2025-11-21T02:46:00.294Z] ---------------+---------------
02:46:00 [2025-11-21T02:46:00.294Z] | 8
02:46:00 [2025-11-21T02:46:00.294Z] **** | 1
02:46:00 [2025-11-21T02:46:00.294Z] authentik | 5
02:46:00 [2025-11-21T02:46:00.294Z] (3 rows)
02:46:00 [2025-11-21T02:46:00.294Z]