Skip to content

Commit 46d4be1

Browse files
NikolaySclaude
andcommitted
Fix Docker options and PostgreSQL configuration
- Remove invalid -c flag from Docker options - Use proper POSTGRES_INITDB_ARGS for authentication - Handle pg_stat_statements extension gracefully if not available 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0db8d88 commit 46d4be1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
POSTGRES_PASSWORD: postgres
2323
POSTGRES_DB: test
2424
POSTGRES_HOST_AUTH_METHOD: trust
25+
POSTGRES_INITDB_ARGS: --auth-host=trust --auth-local=trust
2526
options: >-
2627
--health-cmd pg_isready
2728
--health-interval 10s
2829
--health-timeout 5s
2930
--health-retries 5
30-
-c shared_preload_libraries=pg_stat_statements
3131
ports:
3232
- 5432:5432
3333

@@ -55,8 +55,8 @@ jobs:
5555
# Check PostgreSQL version
5656
psql -h localhost -U postgres -d test -c 'SELECT version();'
5757
58-
# Create extensions
59-
psql -h localhost -U postgres -d test -c 'CREATE EXTENSION IF NOT EXISTS pg_stat_statements;'
58+
# Create extensions (pg_stat_statements may not work without shared_preload_libraries)
59+
psql -h localhost -U postgres -d test -c 'CREATE EXTENSION IF NOT EXISTS pg_stat_statements;' || echo "Warning: pg_stat_statements extension not available"
6060
psql -h localhost -U postgres -d test -c 'CREATE EXTENSION IF NOT EXISTS pgstattuple;'
6161
6262
# Verify extensions

0 commit comments

Comments
 (0)