Skip to content

Commit

Permalink
Ensure pg data dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 5, 2024
1 parent 26f0f13 commit 0eccfbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/appveyor.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def configure_postgres():
Set up PostgreSQL config before the service starts.
"""
logger.info("Configuring Postgres")
opt.pg_data_dir.mkdir(parents=True, exist_ok=True)
with (opt.pg_data_dir / 'postgresql.conf').open('a') as f:
# allow > 1 prepared transactions for test cases
print("max_prepared_transactions = 10", file=f)
Expand Down

0 comments on commit 0eccfbe

Please sign in to comment.