yukkop 7d5300853b fix(db-tool): postgres-init: createdb on reuse when target DB missing
Previously when PG_REUSE=1 and PG_VERSION existed but the target database had
never been successfully created (e.g. devshell exited mid-init in a prior run),
postgres-init skipped createdb and the subsequent psql connection failed with
'database "<db>" does not exist'.

Now on reuse path we probe pg_database and create the target DB if missing,
making postgres-init fully idempotent across stale-state recovery.

Adds postgres-init-reuse-missing-db test.
2026-04-30 12:16:09 +00:00
2026-04-14 08:43:56 +00:00
2025-10-16 12:22:19 +00:00
2025-11-03 18:51:38 +00:00
2026-04-26 22:22:15 +00:00
2026-04-27 12:58:36 +00:00
2026-01-04 20:40:43 +00:00
2025-04-17 06:22:21 +03:00
2026-04-26 22:22:15 +00:00
2026-04-26 13:52:17 +00:00
Description
No description provided
1.7 MiB
Languages
C 32.7%
Shell 30.4%
Nix 22.5%
PLpgSQL 5.2%
Rust 4.2%
Other 4.9%