Skip to content

Console Output

02:46:09 [2025-11-26T02:46:09.836Z] + export POSTGRES_DB=****
02:46:09 [2025-11-26T02:46:09.836Z] + export POSTGRES_USER=****
02:46:09 [2025-11-26T02:46:09.836Z] + export PGPASSWORD=****
02:46:09 [2025-11-26T02:46:09.836Z] + echo 📈 Running basic performance queries...
02:46:09 [2025-11-26T02:46:09.837Z] 📈 Running basic performance queries...
02:46:09 [2025-11-26T02:46:09.837Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c 
02:46:09 [2025-11-26T02:46:09.837Z]                                 -- Test basic query performance
02:46:09 [2025-11-26T02:46:09.837Z]                                 EXPLAIN ANALYZE SELECT 1 as test_query;
02:46:09 [2025-11-26T02:46:09.837Z] 
02:46:09 [2025-11-26T02:46:09.837Z]                                 -- Test system catalog performance
02:46:09 [2025-11-26T02:46:09.837Z]                                 EXPLAIN ANALYZE SELECT COUNT(*) FROM information_schema.tables;
02:46:09 [2025-11-26T02:46:09.837Z] 
02:46:09 [2025-11-26T02:46:09.837Z]                                 -- Test connection info
02:46:09 [2025-11-26T02:46:09.837Z]                                 SELECT database_name, process_count FROM (
02:46:09 [2025-11-26T02:46:09.837Z]                                     SELECT datname as database_name, COUNT(*) as process_count
02:46:09 [2025-11-26T02:46:09.837Z]                                     FROM pg_stat_activity
02:46:09 [2025-11-26T02:46:09.837Z]                                     GROUP BY datname
02:46:09 [2025-11-26T02:46:09.837Z]                                 ) as activity_stats;
02:46:09 [2025-11-26T02:46:09.837Z]                             
02:46:10 [2025-11-26T02:46:10.088Z]                                       QUERY PLAN                                       
02:46:10 [2025-11-26T02:46:10.088Z] ---------------------------------------------------------------------------------------
02:46:10 [2025-11-26T02:46:10.089Z]  Result  (cost=0.00..0.01 rows=1 width=4) (actual time=0.005..0.009 rows=1.00 loops=1)
02:46:10 [2025-11-26T02:46:10.089Z]  Planning:
02:46:10 [2025-11-26T02:46:10.089Z]    Buffers: shared hit=3
02:46:10 [2025-11-26T02:46:10.089Z]  Planning Time: 0.188 ms
02:46:10 [2025-11-26T02:46:10.089Z]  Execution Time: 0.123 ms
02:46:10 [2025-11-26T02:46:10.089Z] (5 rows)
02:46:10 [2025-11-26T02:46:10.089Z] 
02:46:10 [2025-11-26T02:46:10.089Z]                                                                                                                                             QUERY PLAN                                                                                                                                            
02:46:10 [2025-11-26T02:46:10.089Z] --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02:46:10 [2025-11-26T02:46:10.089Z]  Aggregate  (cost=71.97..71.98 rows=1 width=8) (actual time=9.706..9.750 rows=1.00 loops=1)
02:46:10 [2025-11-26T02:46:10.089Z]    Buffers: shared hit=28 read=12
02:46:10 [2025-11-26T02:46:10.090Z]    ->  Hash Left Join  (cost=36.66..71.69 rows=112 width=0) (actual time=6.685..9.313 rows=215.00 loops=1)
02:46:10 [2025-11-26T02:46:10.090Z]          Hash Cond: (c.reloftype = t.oid)
02:46:10 [2025-11-26T02:46:10.090Z]          Buffers: shared hit=28 read=12
02:46:10 [2025-11-26T02:46:10.090Z]          ->  Hash Join  (cost=1.09..34.58 rows=112 width=4) (actual time=0.647..2.464 rows=215.00 loops=1)
02:46:10 [2025-11-26T02:46:10.090Z]                Hash Cond: (c.relnamespace = nc.oid)
02:46:10 [2025-11-26T02:46:10.090Z]                Buffers: shared hit=22 read=1
02:46:10 [2025-11-26T02:46:10.090Z]                ->  Seq Scan on pg_class c  (cost=0.00..32.67 rows=150 width=8) (actual time=0.098..1.060 rows=215.00 loops=1)
02:46:10 [2025-11-26T02:46:10.090Z]                      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:10 [2025-11-26T02:46:10.090Z]                      Rows Removed by Filter: 202
02:46:10 [2025-11-26T02:46:10.090Z]                      Buffers: shared hit=13 read=1
02:46:10 [2025-11-26T02:46:10.090Z]                ->  Hash  (cost=1.05..1.05 rows=3 width=4) (actual time=0.461..0.468 rows=4.00 loops=1)
02:46:10 [2025-11-26T02:46:10.091Z]                      Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:46:10 [2025-11-26T02:46:10.091Z]                      Buffers: shared hit=9
02:46:10 [2025-11-26T02:46:10.091Z]                      ->  Seq Scan on pg_namespace nc  (cost=0.00..1.05 rows=3 width=4) (actual time=0.207..0.411 rows=4.00 loops=1)
02:46:10 [2025-11-26T02:46:10.091Z]                            Filter: (NOT pg_is_other_temp_schema(oid))
02:46:10 [2025-11-26T02:46:10.091Z]                            Buffers: shared hit=9
02:46:10 [2025-11-26T02:46:10.091Z]          ->  Hash  (cost=27.29..27.29 rows=662 width=4) (actual time=5.963..5.980 rows=639.00 loops=1)
02:46:10 [2025-11-26T02:46:10.091Z]                Buckets: 1024  Batches: 1  Memory Usage: 31kB
02:46:10 [2025-11-26T02:46:10.091Z]                Buffers: shared hit=6 read=11
02:46:10 [2025-11-26T02:46:10.091Z]                ->  Hash Join  (cost=1.09..27.29 rows=662 width=4) (actual time=0.222..4.458 rows=639.00 loops=1)
02:46:10 [2025-11-26T02:46:10.091Z]                      Hash Cond: (t.typnamespace = nt.oid)
02:46:10 [2025-11-26T02:46:10.091Z]                      Buffers: shared hit=6 read=11
02:46:10 [2025-11-26T02:46:10.091Z]                      ->  Seq Scan on pg_type t  (cost=0.00..22.62 rows=662 width=8) (actual time=0.058..1.638 rows=639.00 loops=1)
02:46:10 [2025-11-26T02:46:10.091Z]                            Buffers: shared hit=5 read=11
02:46:10 [2025-11-26T02:46:10.092Z]                      ->  Hash  (cost=1.04..1.04 rows=4 width=4) (actual time=0.120..0.126 rows=4.00 loops=1)
02:46:10 [2025-11-26T02:46:10.092Z]                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:46:10 [2025-11-26T02:46:10.092Z]                            Buffers: shared hit=1
02:46:10 [2025-11-26T02:46:10.092Z]                            ->  Seq Scan on pg_namespace nt  (cost=0.00..1.04 rows=4 width=4) (actual time=0.073..0.084 rows=4.00 loops=1)
02:46:10 [2025-11-26T02:46:10.092Z]                                  Buffers: shared hit=1
02:46:10 [2025-11-26T02:46:10.092Z]  Planning:
02:46:10 [2025-11-26T02:46:10.092Z]    Buffers: shared hit=332 read=14
02:46:10 [2025-11-26T02:46:10.092Z]  Planning Time: 13.188 ms
02:46:10 [2025-11-26T02:46:10.092Z]  Execution Time: 11.341 ms
02:46:10 [2025-11-26T02:46:10.092Z] (35 rows)
02:46:10 [2025-11-26T02:46:10.092Z] 
02:46:10 [2025-11-26T02:46:10.092Z]  database_name | process_count 
02:46:10 [2025-11-26T02:46:10.092Z] ---------------+---------------
02:46:10 [2025-11-26T02:46:10.092Z]                |             8
02:46:10 [2025-11-26T02:46:10.092Z]  ****      |             1
02:46:10 [2025-11-26T02:46:10.092Z]  authentik     |             7
02:46:10 [2025-11-26T02:46:10.092Z] (3 rows)
02:46:10 [2025-11-26T02:46:10.092Z]