We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8ec3f6 commit 38e41a9Copy full SHA for 38e41a9
.github/workflows/smoke-test.yml
@@ -44,6 +44,17 @@ jobs:
44
export PGPASSWORD=test1234
45
psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
46
47
+ - name: Verify Max Connection Limit
48
+ run: |
49
+ export PGHOST=localhost
50
+ export PGUSER=postgres
51
+ export PGPASSWORD=test1234
52
+ MAX_CONNECTIONS=$(PGPASSWORD=test1234 psql -h localhost -U postgres -d postgres -c "SHOW max_connections;" | grep -oP '(?<=row )[0-9]+')
53
+ if [ "$MAX_CONNECTIONS" -ne "100" ]; then
54
+ echo "Max connections is not set correctly!"
55
+ exit 1
56
+ fi
57
+
58
- name: Run the smoke test
59
run: |
60
set -eu
0 commit comments