-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM postgres:15 | ||
|
||
RUN apt-get update && \ | ||
apt-get install curl -y && \ | ||
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 && \ | ||
tar -xf /tmp/pg_profile.tar.gz -C $(pg_config --sharedir)/extension \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- file: 20-configure-pg-profile.sql | ||
CREATE EXTENSION dblink; | ||
CREATE EXTENSION pg_stat_statements; | ||
CREATE EXTENSION pg_profile; | ||
|
||
ALTER SYSTEM SET shared_preload_libraries = 'pg_stat_statements'; | ||
ALTER SYSTEM SET track_activities = on; | ||
ALTER SYSTEM SET track_counts = on; | ||
ALTER SYSTEM SET track_io_timing = on; | ||
ALTER SYSTEM SET track_wal_io_timing = on; | ||
ALTER SYSTEM SET track_functions = 'all'; | ||
SELECT PG_RELOAD_CONF(); |