This repository was archived by the owner on Aug 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
PostgreSQL 11 support + Dockerfile improvements #142
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
11e578c
PostgreSQL 11 support + Dockerfile improvements
NikolayS 38046a7
PostgreSQL 11 support + Dockerfile improvements
NikolayS 9429882
Fix auto-config
NikolayS 8e923cd
Merge branch 'postgres_11' of github.com:startupturbo/nancy into post…
NikolayS 7e189e5
Fix auto-config
NikolayS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,7 +1,13 @@ | ||
| How to build/rebuild: | ||
|
|
||
| ```bash | ||
| docker build --build-arg PG_SERVER_VERSION=9.6 -t postgresmen/postgres-with-stuff:pg9.6 . | ||
| export NANCY_DOCKER_PG_VERSION=9.6 | ||
|
|
||
| docker build \ | ||
| --build-arg "PG_SERVER_VERSION=${NANCY_DOCKER_PG_VERSION}" \ | ||
| -t "postgresmen/postgres-nancy:${NANCY_DOCKER_PG_VERSION}" . | ||
|
|
||
| docker login # you must be registered, go to hub.docker.com | ||
| docker push postgresmen/postgres-with-stuff:pg9.6 | ||
|
|
||
| docker push "postgresmen/postgres-nancy:${NANCY_DOCKER_PG_VERSION}" | ||
| ``` |
This file contains hidden or 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 hidden or 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,34 @@ | ||
| # IMPORTANT: on faster systems, you need to use your own memory-related settings! | ||
| statement_timeout = 0 | ||
|
|
||
| log_destination = 'stderr,csvlog' | ||
| logging_collector = on | ||
| log_directory = '/var/log/postgresql' | ||
| # log_filename – to be set dynamically | ||
| log_min_messages = notice | ||
| log_min_error_statement = notice | ||
| log_min_duration_statement = -1 # rely on "auto_explain.log_min_duration = 0", avoid duplicates | ||
| log_checkpoints = on | ||
| log_connections = on | ||
| log_disconnections = on | ||
| log_line_prefix = '%t [%p]: [%l-1] db=%d,user=%u (%a,%h) ' | ||
| log_lock_waits = on | ||
| log_replication_commands = on | ||
| log_temp_files = 0 | ||
| log_autovacuum_min_duration = 0 | ||
|
|
||
| shared_preload_libraries = 'pg_stat_statements,auto_explain' | ||
|
|
||
| pg_stat_statements.max = 5000 | ||
| pg_stat_statements.track = all | ||
| pg_stat_statements.track_utility = on | ||
| pg_stat_statements.save = on | ||
|
|
||
| auto_explain.log_min_duration = 0 | ||
| auto_explain.log_analyze = on | ||
| auto_explain.log_verbose = on | ||
| auto_explain.log_buffers = on | ||
| auto_explain.log_format = 'json' | ||
| auto_explain.log_timing = on | ||
| auto_explain.log_triggers = on | ||
| auto_explain.log_nested_statements = on |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.