Добавить скрипты EXPLAIN и проверки SIGTERM

This commit is contained in:
2026-10-08 18:54:35 +03:00
parent ef24bc1635
commit 6473fd06e9
4 changed files with 150 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# Наполняет БД синтетической историей и печатает планы запросов пагинации.
set -eu
cd "$(dirname "$0")/.."
run_sql() {
docker compose --env-file .env exec -T postgres psql -U messenger -d messenger -v ON_ERROR_STOP=1 -q
}
run_sql < scripts/seed_history.sql
run_sql < scripts/explain_history.sql