-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for pgBouncer v1.23 (#177)
* Added support for pgBouncer v1.23 Testcases added for v1.23 Docker compose file added for setting up pgBouncer environment in the future. * Modified tests to not use if/else condition Added steps to add support for new pgbouncer versions Tests no longer use the if/else conditions to check for nil and instead reuse and Added comments for columns added in pgbouncer v1.23 * changelog entry for pgbouncer
- Loading branch information
1 parent
22cc710
commit c59d41b
Showing
5 changed files
with
184 additions
and
38 deletions.
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
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
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,32 @@ | ||
services: | ||
db: | ||
container_name: db | ||
image: postgres:16-alpine | ||
volumes: | ||
- pg_data:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=hbZkzny5xrvVH | ||
healthcheck: | ||
test: ['CMD', 'pg_isready', '-U', 'postgres'] | ||
|
||
pgbouncer: | ||
container_name: pgbouncer | ||
image: edoburu/pgbouncer:latest | ||
environment: | ||
- DB_USER=postgres | ||
- DB_PASSWORD=hbZkzny5xrvVH | ||
- DB_HOST=db | ||
# - DB_NAME=test | ||
- AUTH_TYPE=scram-sha-256 | ||
- POOL_MODE=transaction | ||
- ADMIN_USERS=postgres,dbuser | ||
ports: | ||
- "5432:5432" | ||
depends_on: | ||
- db | ||
healthcheck: | ||
test: ['CMD', 'pg_isready', '-h', 'localhost'] | ||
|
||
volumes: | ||
pg_data: |