Skip to content

Console Output

02:45:46 [2025-11-24T02:45:46.560Z] + export POSTGRES_DB=****
02:45:46 [2025-11-24T02:45:46.560Z] + export POSTGRES_USER=****
02:45:46 [2025-11-24T02:45:46.560Z] + export PGPASSWORD=****
02:45:46 [2025-11-24T02:45:46.561Z] + echo 📈 Running basic performance queries...
02:45:46 [2025-11-24T02:45:46.561Z] 📈 Running basic performance queries...
02:45:46 [2025-11-24T02:45:46.561Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c 
02:45:46 [2025-11-24T02:45:46.561Z]                                 -- Test basic query performance
02:45:46 [2025-11-24T02:45:46.561Z]                                 EXPLAIN ANALYZE SELECT 1 as test_query;
02:45:46 [2025-11-24T02:45:46.561Z] 
02:45:46 [2025-11-24T02:45:46.561Z]                                 -- Test system catalog performance
02:45:46 [2025-11-24T02:45:46.561Z]                                 EXPLAIN ANALYZE SELECT COUNT(*) FROM information_schema.tables;
02:45:46 [2025-11-24T02:45:46.561Z] 
02:45:46 [2025-11-24T02:45:46.561Z]                                 -- Test connection info
02:45:46 [2025-11-24T02:45:46.561Z]                                 SELECT database_name, process_count FROM (
02:45:46 [2025-11-24T02:45:46.561Z]                                     SELECT datname as database_name, COUNT(*) as process_count
02:45:46 [2025-11-24T02:45:46.561Z]                                     FROM pg_stat_activity
02:45:46 [2025-11-24T02:45:46.561Z]                                     GROUP BY datname
02:45:46 [2025-11-24T02:45:46.561Z]                                 ) as activity_stats;
02:45:46 [2025-11-24T02:45:46.561Z]                             
02:45:46 [2025-11-24T02:45:46.813Z]                                       QUERY PLAN                                       
02:45:46 [2025-11-24T02:45:46.813Z] ---------------------------------------------------------------------------------------
02:45:46 [2025-11-24T02:45:46.813Z]  Result  (cost=0.00..0.01 rows=1 width=4) (actual time=0.005..0.009 rows=1.00 loops=1)
02:45:46 [2025-11-24T02:45:46.813Z]  Planning:
02:45:46 [2025-11-24T02:45:46.813Z]    Buffers: shared hit=3
02:45:46 [2025-11-24T02:45:46.813Z]  Planning Time: 0.173 ms
02:45:46 [2025-11-24T02:45:46.813Z]  Execution Time: 0.119 ms
02:45:46 [2025-11-24T02:45:46.813Z] (5 rows)
02:45:46 [2025-11-24T02:45:46.813Z] 
02:45:46 [2025-11-24T02:45:46.814Z]                                                                                                                                             QUERY PLAN                                                                                                                                            
02:45:46 [2025-11-24T02:45:46.814Z] --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02:45:46 [2025-11-24T02:45:46.814Z]  Aggregate  (cost=71.97..71.98 rows=1 width=8) (actual time=10.051..10.094 rows=1.00 loops=1)
02:45:46 [2025-11-24T02:45:46.814Z]    Buffers: shared hit=28 read=12
02:45:46 [2025-11-24T02:45:46.814Z]    ->  Hash Left Join  (cost=36.66..71.69 rows=112 width=0) (actual time=7.018..9.679 rows=215.00 loops=1)
02:45:46 [2025-11-24T02:45:46.814Z]          Hash Cond: (c.reloftype = t.oid)
02:45:46 [2025-11-24T02:45:46.814Z]          Buffers: shared hit=28 read=12
02:45:46 [2025-11-24T02:45:46.814Z]          ->  Hash Join  (cost=1.09..34.58 rows=112 width=4) (actual time=0.671..2.492 rows=215.00 loops=1)
02:45:46 [2025-11-24T02:45:46.814Z]                Hash Cond: (c.relnamespace = nc.oid)
02:45:46 [2025-11-24T02:45:46.814Z]                Buffers: shared hit=22 read=1
02:45:46 [2025-11-24T02:45:46.814Z]                ->  Seq Scan on pg_class c  (cost=0.00..32.67 rows=150 width=8) (actual time=0.123..1.141 rows=215.00 loops=1)
02:45:46 [2025-11-24T02:45:46.815Z]                      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:45:46 [2025-11-24T02:45:46.815Z]                      Rows Removed by Filter: 202
02:45:46 [2025-11-24T02:45:46.815Z]                      Buffers: shared hit=13 read=1
02:45:46 [2025-11-24T02:45:46.815Z]                ->  Hash  (cost=1.05..1.05 rows=3 width=4) (actual time=0.472..0.479 rows=4.00 loops=1)
02:45:46 [2025-11-24T02:45:46.815Z]                      Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:45:46 [2025-11-24T02:45:46.815Z]                      Buffers: shared hit=9
02:45:46 [2025-11-24T02:45:46.815Z]                      ->  Seq Scan on pg_namespace nc  (cost=0.00..1.05 rows=3 width=4) (actual time=0.211..0.421 rows=4.00 loops=1)
02:45:46 [2025-11-24T02:45:46.815Z]                            Filter: (NOT pg_is_other_temp_schema(oid))
02:45:46 [2025-11-24T02:45:46.815Z]                            Buffers: shared hit=9
02:45:46 [2025-11-24T02:45:46.815Z]          ->  Hash  (cost=27.29..27.29 rows=662 width=4) (actual time=6.287..6.305 rows=639.00 loops=1)
02:45:46 [2025-11-24T02:45:46.815Z]                Buckets: 1024  Batches: 1  Memory Usage: 31kB
02:45:46 [2025-11-24T02:45:46.815Z]                Buffers: shared hit=6 read=11
02:45:46 [2025-11-24T02:45:46.816Z]                ->  Hash Join  (cost=1.09..27.29 rows=662 width=4) (actual time=0.448..4.841 rows=639.00 loops=1)
02:45:46 [2025-11-24T02:45:46.816Z]                      Hash Cond: (t.typnamespace = nt.oid)
02:45:46 [2025-11-24T02:45:46.816Z]                      Buffers: shared hit=6 read=11
02:45:46 [2025-11-24T02:45:46.816Z]                      ->  Seq Scan on pg_type t  (cost=0.00..22.62 rows=662 width=8) (actual time=0.066..1.689 rows=639.00 loops=1)
02:45:46 [2025-11-24T02:45:46.816Z]                            Buffers: shared hit=5 read=11
02:45:46 [2025-11-24T02:45:46.816Z]                      ->  Hash  (cost=1.04..1.04 rows=4 width=4) (actual time=0.317..0.322 rows=4.00 loops=1)
02:45:46 [2025-11-24T02:45:46.816Z]                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:45:46 [2025-11-24T02:45:46.816Z]                            Buffers: shared hit=1
02:45:46 [2025-11-24T02:45:46.816Z]                            ->  Seq Scan on pg_namespace nt  (cost=0.00..1.04 rows=4 width=4) (actual time=0.263..0.275 rows=4.00 loops=1)
02:45:46 [2025-11-24T02:45:46.816Z]                                  Buffers: shared hit=1
02:45:46 [2025-11-24T02:45:46.816Z]  Planning:
02:45:46 [2025-11-24T02:45:46.816Z]    Buffers: shared hit=332 read=14
02:45:46 [2025-11-24T02:45:46.816Z]  Planning Time: 12.675 ms
02:45:46 [2025-11-24T02:45:46.816Z]  Execution Time: 11.885 ms
02:45:46 [2025-11-24T02:45:46.816Z] (35 rows)
02:45:46 [2025-11-24T02:45:46.816Z] 
02:45:46 [2025-11-24T02:45:46.816Z]  database_name | process_count 
02:45:46 [2025-11-24T02:45:46.816Z] ---------------+---------------
02:45:46 [2025-11-24T02:45:46.816Z]                |             8
02:45:46 [2025-11-24T02:45:46.817Z]  ****      |             1
02:45:46 [2025-11-24T02:45:46.817Z]  authentik     |             6
02:45:46 [2025-11-24T02:45:46.817Z] (3 rows)
02:45:46 [2025-11-24T02:45:46.817Z]