Skip to content

Console Output

02:46:08 [2025-11-25T02:46:08.205Z] + export POSTGRES_DB=****
02:46:08 [2025-11-25T02:46:08.206Z] + export POSTGRES_USER=****
02:46:08 [2025-11-25T02:46:08.206Z] + export PGPASSWORD=****
02:46:08 [2025-11-25T02:46:08.206Z] + echo 📈 Running basic performance queries...
02:46:08 [2025-11-25T02:46:08.206Z] 📈 Running basic performance queries...
02:46:08 [2025-11-25T02:46:08.206Z] + docker exec -e PGPASSWORD=**** ****-**** psql -h localhost -U **** -d **** -c 
02:46:08 [2025-11-25T02:46:08.206Z]                                 -- Test basic query performance
02:46:08 [2025-11-25T02:46:08.206Z]                                 EXPLAIN ANALYZE SELECT 1 as test_query;
02:46:08 [2025-11-25T02:46:08.206Z] 
02:46:08 [2025-11-25T02:46:08.206Z]                                 -- Test system catalog performance
02:46:08 [2025-11-25T02:46:08.206Z]                                 EXPLAIN ANALYZE SELECT COUNT(*) FROM information_schema.tables;
02:46:08 [2025-11-25T02:46:08.206Z] 
02:46:08 [2025-11-25T02:46:08.206Z]                                 -- Test connection info
02:46:08 [2025-11-25T02:46:08.206Z]                                 SELECT database_name, process_count FROM (
02:46:08 [2025-11-25T02:46:08.207Z]                                     SELECT datname as database_name, COUNT(*) as process_count
02:46:08 [2025-11-25T02:46:08.207Z]                                     FROM pg_stat_activity
02:46:08 [2025-11-25T02:46:08.207Z]                                     GROUP BY datname
02:46:08 [2025-11-25T02:46:08.207Z]                                 ) as activity_stats;
02:46:08 [2025-11-25T02:46:08.207Z]                             
02:46:08 [2025-11-25T02:46:08.458Z]                                       QUERY PLAN                                       
02:46:08 [2025-11-25T02:46:08.458Z] ---------------------------------------------------------------------------------------
02:46:08 [2025-11-25T02:46:08.458Z]  Result  (cost=0.00..0.01 rows=1 width=4) (actual time=0.005..0.009 rows=1.00 loops=1)
02:46:08 [2025-11-25T02:46:08.458Z]  Planning:
02:46:08 [2025-11-25T02:46:08.458Z]    Buffers: shared hit=3
02:46:08 [2025-11-25T02:46:08.459Z]  Planning Time: 0.192 ms
02:46:08 [2025-11-25T02:46:08.459Z]  Execution Time: 0.136 ms
02:46:08 [2025-11-25T02:46:08.459Z] (5 rows)
02:46:08 [2025-11-25T02:46:08.459Z] 
02:46:08 [2025-11-25T02:46:08.459Z]                                                                                                                                             QUERY PLAN                                                                                                                                            
02:46:08 [2025-11-25T02:46:08.459Z] --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02:46:08 [2025-11-25T02:46:08.459Z]  Aggregate  (cost=71.97..71.98 rows=1 width=8) (actual time=8.775..8.814 rows=1.00 loops=1)
02:46:08 [2025-11-25T02:46:08.459Z]    Buffers: shared hit=28 read=12
02:46:08 [2025-11-25T02:46:08.459Z]    ->  Hash Left Join  (cost=36.66..71.69 rows=112 width=0) (actual time=6.031..8.440 rows=215.00 loops=1)
02:46:08 [2025-11-25T02:46:08.459Z]          Hash Cond: (c.reloftype = t.oid)
02:46:08 [2025-11-25T02:46:08.459Z]          Buffers: shared hit=28 read=12
02:46:08 [2025-11-25T02:46:08.459Z]          ->  Hash Join  (cost=1.09..34.58 rows=112 width=4) (actual time=0.575..2.241 rows=215.00 loops=1)
02:46:08 [2025-11-25T02:46:08.460Z]                Hash Cond: (c.relnamespace = nc.oid)
02:46:08 [2025-11-25T02:46:08.460Z]                Buffers: shared hit=22 read=1
02:46:08 [2025-11-25T02:46:08.460Z]                ->  Seq Scan on pg_class c  (cost=0.00..32.67 rows=150 width=8) (actual time=0.099..0.950 rows=215.00 loops=1)
02:46:08 [2025-11-25T02:46:08.460Z]                      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:08 [2025-11-25T02:46:08.460Z]                      Rows Removed by Filter: 202
02:46:08 [2025-11-25T02:46:08.460Z]                      Buffers: shared hit=13 read=1
02:46:08 [2025-11-25T02:46:08.460Z]                ->  Hash  (cost=1.05..1.05 rows=3 width=4) (actual time=0.414..0.420 rows=4.00 loops=1)
02:46:08 [2025-11-25T02:46:08.460Z]                      Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:46:08 [2025-11-25T02:46:08.460Z]                      Buffers: shared hit=9
02:46:08 [2025-11-25T02:46:08.460Z]                      ->  Seq Scan on pg_namespace nc  (cost=0.00..1.05 rows=3 width=4) (actual time=0.130..0.371 rows=4.00 loops=1)
02:46:08 [2025-11-25T02:46:08.460Z]                            Filter: (NOT pg_is_other_temp_schema(oid))
02:46:08 [2025-11-25T02:46:08.460Z]                            Buffers: shared hit=9
02:46:08 [2025-11-25T02:46:08.461Z]          ->  Hash  (cost=27.29..27.29 rows=662 width=4) (actual time=5.409..5.425 rows=639.00 loops=1)
02:46:08 [2025-11-25T02:46:08.461Z]                Buckets: 1024  Batches: 1  Memory Usage: 31kB
02:46:08 [2025-11-25T02:46:08.461Z]                Buffers: shared hit=6 read=11
02:46:08 [2025-11-25T02:46:08.461Z]                ->  Hash Join  (cost=1.09..27.29 rows=662 width=4) (actual time=0.215..4.056 rows=639.00 loops=1)
02:46:08 [2025-11-25T02:46:08.461Z]                      Hash Cond: (t.typnamespace = nt.oid)
02:46:08 [2025-11-25T02:46:08.461Z]                      Buffers: shared hit=6 read=11
02:46:08 [2025-11-25T02:46:08.461Z]                      ->  Seq Scan on pg_type t  (cost=0.00..22.62 rows=662 width=8) (actual time=0.054..1.323 rows=639.00 loops=1)
02:46:08 [2025-11-25T02:46:08.461Z]                            Buffers: shared hit=5 read=11
02:46:08 [2025-11-25T02:46:08.461Z]                      ->  Hash  (cost=1.04..1.04 rows=4 width=4) (actual time=0.118..0.123 rows=4.00 loops=1)
02:46:08 [2025-11-25T02:46:08.461Z]                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
02:46:08 [2025-11-25T02:46:08.461Z]                            Buffers: shared hit=1
02:46:08 [2025-11-25T02:46:08.461Z]                            ->  Seq Scan on pg_namespace nt  (cost=0.00..1.04 rows=4 width=4) (actual time=0.076..0.086 rows=4.00 loops=1)
02:46:08 [2025-11-25T02:46:08.461Z]                                  Buffers: shared hit=1
02:46:08 [2025-11-25T02:46:08.461Z]  Planning:
02:46:08 [2025-11-25T02:46:08.461Z]    Buffers: shared hit=332 read=14
02:46:08 [2025-11-25T02:46:08.462Z]  Planning Time: 11.125 ms
02:46:08 [2025-11-25T02:46:08.462Z]  Execution Time: 10.059 ms
02:46:08 [2025-11-25T02:46:08.462Z] (35 rows)
02:46:08 [2025-11-25T02:46:08.462Z] 
02:46:08 [2025-11-25T02:46:08.462Z]  database_name | process_count 
02:46:08 [2025-11-25T02:46:08.462Z] ---------------+---------------
02:46:08 [2025-11-25T02:46:08.462Z]                |             8
02:46:08 [2025-11-25T02:46:08.462Z]  ****      |             1
02:46:08 [2025-11-25T02:46:08.462Z]  authentik     |             3
02:46:08 [2025-11-25T02:46:08.462Z] (3 rows)
02:46:08 [2025-11-25T02:46:08.462Z]