File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ FROM postgres:15
2+
3+ RUN apt-get update && \
4+ apt-get install curl -y && \
5+ curl -L -o /tmp/pg_profile.tar.gz https://github.com/zubkov-andrei/pg_profile/releases/download/4.7/pg_profile--4.7.tar.gz && \
6+ tar -xf /tmp/pg_profile.tar.gz -C $(pg_config --sharedir)/extension \
Original file line number Diff line number Diff line change 11version : " 3.9"
22services :
33 postgres :
4- image : postgres:15
4+ build : .
5+ image : romanowalex/postgres:15-pg_profile
56 container_name : postgres
67 environment :
78 POSTGRES_USER : postgres
Original file line number Diff line number Diff line change 1+ -- file: 20-configure-pg-profile.sql
2+ CREATE EXTENSION dblink;
3+ CREATE EXTENSION pg_stat_statements;
4+ CREATE EXTENSION pg_profile;
5+
6+ ALTER SYSTEM SET shared_preload_libraries = ' pg_stat_statements' ;
7+ ALTER SYSTEM SET track_activities = on ;
8+ ALTER SYSTEM SET track_counts = on ;
9+ ALTER SYSTEM SET track_io_timing = on ;
10+ ALTER SYSTEM SET track_wal_io_timing = on ;
11+ ALTER SYSTEM SET track_functions = ' all' ;
12+ SELECT PG_RELOAD_CONF();
You can’t perform that action at this time.
0 commit comments