Skip to content

Commit 322df77

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

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

0 commit comments

Comments
 (0)