mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 05:39:09 +08:00
PostgreSQL refuses to run initdb/pg_ctl as root. When TemporaryDb detects it is running as root, it now delegates all PG commands to the postgres system user via sudo. This fixes the migration-tests CI workflow where the schema validation step runs as root. Also adds a PATH-based fallback for pg_bin_path discovery to support distributions that install PG binaries outside the hardcoded paths (e.g. Fedora system packages in /usr/bin). --------- Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org> |
||
|---|---|---|
| .. | ||
| adapter | ||
| intermediate_db | ||
| schema | ||
| connection.rb | ||
| intermediate_db.rb | ||
| migrator.rb | ||
| offline_connection.rb | ||
| prepared_statement_cache.rb | ||
| schema.rb | ||