Skip to content

Commit ce64a8b

Browse files
committed
fix: explicitly create extensions after container start
1 parent 4bb99d3 commit ce64a8b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/actions/setup-postgres/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,17 @@ runs:
133133
sleep 1
134134
done
135135
136+
# Wait a bit more for init scripts to complete
137+
sleep 5
138+
139+
# Verify extensions are created, create if missing
140+
echo "Verifying extensions..."
141+
docker exec postgres psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS plpgsql_check;"
142+
docker exec postgres psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS pglinter;"
143+
144+
# Show extension status
145+
docker exec postgres psql -U postgres -c "SELECT extname, extversion FROM pg_extension WHERE extname IN ('plpgsql_check', 'pglinter');"
146+
147+
# Verify pglinter schema exists
148+
docker exec postgres psql -U postgres -c "SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'pglinter';"
149+

0 commit comments

Comments
 (0)