Skip to content

Console Output

02:46:02 [2025-11-30T02:46:02.281Z] + export POSTGRES_DB=****
02:46:02 [2025-11-30T02:46:02.281Z] + export POSTGRES_USER=****
02:46:02 [2025-11-30T02:46:02.282Z] + export PGPASSWORD=****
02:46:02 [2025-11-30T02:46:02.282Z] + echo 📈 Running basic performance queries...
02:46:02 [2025-11-30T02:46:02.282Z] 📈 Running basic performance queries...
02:46:02 [2025-11-30T02:46:02.282Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c 
02:46:02 [2025-11-30T02:46:02.282Z]                                 -- Test basic query performance
02:46:02 [2025-11-30T02:46:02.282Z]                                 EXPLAIN ANALYZE SELECT 1 as test_query;
02:46:02 [2025-11-30T02:46:02.282Z] 
02:46:02 [2025-11-30T02:46:02.282Z]                                 -- Test system catalog performance
02:46:02 [2025-11-30T02:46:02.282Z]                                 EXPLAIN ANALYZE SELECT COUNT(*) FROM information_schema.tables;
02:46:02 [2025-11-30T02:46:02.282Z] 
02:46:02 [2025-11-30T02:46:02.282Z]                                 -- Test connection info
02:46:02 [2025-11-30T02:46:02.282Z]                                 SELECT database_name, process_count FROM (
02:46:02 [2025-11-30T02:46:02.282Z]                                     SELECT datname as database_name, COUNT(*) as process_count
02:46:02 [2025-11-30T02:46:02.282Z]                                     FROM pg_stat_activity
02:46:02 [2025-11-30T02:46:02.282Z]                                     GROUP BY datname
02:46:02 [2025-11-30T02:46:02.282Z]                                 ) as activity_stats;
02:46:02 [2025-11-30T02:46:02.283Z]                             
02:46:02 [2025-11-30T02:46:02.533Z]                                       QUERY PLAN                                       
02:46:02 [2025-11-30T02:46:02.534Z] ---------------------------------------------------------------------------------------
02:46:02 [2025-11-30T02:46:02.534Z]  Result  (cost=0.00..0.01 rows=1 width=4) (actual time=0.005..0.009 rows=1.00 loops=1)
02:46:02 [2025-11-30T02:46:02.534Z]  Planning:
02:46:02 [2025-11-30T02:46:02.534Z]    Buffers: shared hit=3
02:46:02 [2025-11-30T02:46:02.534Z]  Planning Time: 0.171 ms
02:46:02 [2025-11-30T02:46:02.534Z]  Execution Time: 0.130 ms
02:46:02 [2025-11-30T02:46:02.534Z] (5 rows)
02:46:02 [2025-11-30T02:46:02.534Z] 
02:46:02 [2025-11-30T02:46:02.534Z]                                                                                                                                             QUERY PLAN                                                                                                                                            
02:46:02 [2025-11-30T02:46:02.534Z] --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02:46:02 [2025-11-30T02:46:02.534Z]  Aggregate  (cost=71.97..71.98 rows=1 width=8) (actual time=8.733..8.795 rows=1.00 loops=1)
02:46:02 [2025-11-30T02:46:02.534Z]    Buffers: shared hit=28 read=12
02:46:02 [2025-11-30T02:46:02.535Z]    ->  Hash Left Join  (cost=36.66..71.69 rows=112 width=0) (actual time=6.022..8.418 rows=215.00 loops=1)
02:46:02 [2025-11-30T02:46:02.535Z]          Hash Cond: (c.reloftype = t.oid)
02:46:02 [2025-11-30T02:46:02.535Z]          Buffers: shared hit=28 read=12
02:46:02 [2025-11-30T02:46:02.535Z]          ->  Hash Join  (cost=1.09..34.58 rows=112 width=4) (actual time=0.557..2.203 rows=215.00 loops=1)
02:46:02 [2025-11-30T02:46:02.535Z]                Hash Cond: (c.relnamespace = nc.oid)
02:46:02 [2025-11-30T02:46:02.535Z]                Buffers: shared hit=22 read=1
02:46:02 [2025-11-30T02:46:02.535Z]                ->  Seq Scan on pg_class c  (cost=0.00..32.67 rows=150 width=8) (actual time=0.102..0.936 rows=215.00 loops=1)
02:46:02 [2025-11-30T02:46:02.535Z]                      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:02 [2025-11-30T02:46:02.535Z]                      Rows Removed by Filter: 202
02:46:02 [2025-11-30T02:46:02.535Z]                      Buffers: shared hit=13 read=1
02:46:02 [2025-11-30T02:46:02.536Z]                ->  Hash  (cost=1.05..1.05 rows=3 width=4) (actual time=0.389..0.417 rows=4.00 loops=1)
02:46:02 [2025-11-30T02:46:02.536Z]                      Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:46:02 [2025-11-30T02:46:02.536Z]                      Buffers: shared hit=9
02:46:02 [2025-11-30T02:46:02.536Z]                      ->  Seq Scan on pg_namespace nc  (cost=0.00..1.05 rows=3 width=4) (actual time=0.148..0.347 rows=4.00 loops=1)
02:46:02 [2025-11-30T02:46:02.536Z]                            Filter: (NOT pg_is_other_temp_schema(oid))
02:46:02 [2025-11-30T02:46:02.536Z]                            Buffers: shared hit=9
02:46:02 [2025-11-30T02:46:02.536Z]          ->  Hash  (cost=27.29..27.29 rows=662 width=4) (actual time=5.419..5.435 rows=639.00 loops=1)
02:46:02 [2025-11-30T02:46:02.536Z]                Buckets: 1024  Batches: 1  Memory Usage: 31kB
02:46:02 [2025-11-30T02:46:02.536Z]                Buffers: shared hit=6 read=11
02:46:02 [2025-11-30T02:46:02.536Z]                ->  Hash Join  (cost=1.09..27.29 rows=662 width=4) (actual time=0.264..4.095 rows=639.00 loops=1)
02:46:02 [2025-11-30T02:46:02.536Z]                      Hash Cond: (t.typnamespace = nt.oid)
02:46:02 [2025-11-30T02:46:02.536Z]                      Buffers: shared hit=6 read=11
02:46:02 [2025-11-30T02:46:02.537Z]                      ->  Seq Scan on pg_type t  (cost=0.00..22.62 rows=662 width=8) (actual time=0.053..1.332 rows=639.00 loops=1)
02:46:02 [2025-11-30T02:46:02.537Z]                            Buffers: shared hit=5 read=11
02:46:02 [2025-11-30T02:46:02.537Z]                      ->  Hash  (cost=1.04..1.04 rows=4 width=4) (actual time=0.167..0.173 rows=4.00 loops=1)
02:46:02 [2025-11-30T02:46:02.537Z]                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:46:02 [2025-11-30T02:46:02.537Z]                            Buffers: shared hit=1
02:46:02 [2025-11-30T02:46:02.537Z]                            ->  Seq Scan on pg_namespace nt  (cost=0.00..1.04 rows=4 width=4) (actual time=0.123..0.133 rows=4.00 loops=1)
02:46:02 [2025-11-30T02:46:02.537Z]                                  Buffers: shared hit=1
02:46:02 [2025-11-30T02:46:02.537Z]  Planning:
02:46:02 [2025-11-30T02:46:02.537Z]    Buffers: shared hit=332 read=14
02:46:02 [2025-11-30T02:46:02.537Z]  Planning Time: 11.024 ms
02:46:02 [2025-11-30T02:46:02.537Z]  Execution Time: 10.034 ms
02:46:02 [2025-11-30T02:46:02.537Z] (35 rows)
02:46:02 [2025-11-30T02:46:02.537Z] 
02:46:02 [2025-11-30T02:46:02.537Z]  database_name | process_count 
02:46:02 [2025-11-30T02:46:02.537Z] ---------------+---------------
02:46:02 [2025-11-30T02:46:02.537Z]                |             8
02:46:02 [2025-11-30T02:46:02.537Z]  ****      |             1
02:46:02 [2025-11-30T02:46:02.537Z]  authentik     |             4
02:46:02 [2025-11-30T02:46:02.537Z] (3 rows)
02:46:02 [2025-11-30T02:46:02.537Z]