[ticket/16920] Try fixing PostgreSQL startup error on Windows server

PHPBB3-16920
This commit is contained in:
rxu 2021-12-01 23:46:53 +07:00
parent 4b62f57481
commit 3bf065fd4f
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -566,6 +566,7 @@ jobs:
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";${env:PGBIN}")
$env:PGPASSWORD = 'root'
psql -c hot_standby=on
psql -c wal_level=minimal
psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres
psql -c 'create database phpbb_tests;' -U postgres
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender