Skip to content

Commit 833474f

Browse files
JaBistDuNarrischJaBistDuNarrisch
authored andcommitted
Workaround 2: use psql
1 parent b1061d9 commit 833474f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ jobs:
8888
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"
8989
- name:
9090
Increase max connections (Postgre SQL).
91-
# Postgre < 16 cannot adjust it using env vars
91+
# Postgre < 16 cannot adjust it using env vars => Workaround: we use psql to adjust the max connections
9292
run: |
93-
docker exec postgres bash -c "echo \"max_connections = 300\" >> /var/lib/postgresql/data/postgresql.conf"
94-
docker restart postgres
95-
sleep 5
93+
psql -h localhost -U postgres -d testdb -c "ALTER SYSTEM SET max_connections = 300;"
94+
psql -h localhost -U postgres -d testdb -c "SELECT pg_reload_conf();"
9695
- name: Create Oracle user
9796
run: |
9897
sql sys/adfkweflajdfglkj@localhost/FREEPDB1 as sysdba <<EOF

0 commit comments

Comments
 (0)