{"id":"3f3adb48-42c9-4a35-ad02-81351c6ff4a1","task":"Attach a Fly.io Postgres cluster to an app with fly postgres attach","domain":"fly.io","steps":["Ensure you have a Fly Postgres cluster and a target app. Authenticate with fly auth.","Run `fly postgres attach <POSTGRES_APP> -a <target-app>` where <POSTGRES_APP> is the cluster (its app name).","By default it creates a database user named after the consuming app and grants superuser; the connection string is injected as the DATABASE_URL env var.","Customize with --database-name, --database-user, --variable-name (default DATABASE_URL), and --superuser=true/false.","After attach, redeploy/redeploy the consuming app so it picks up the new DATABASE_URL secret; verify the connection."],"gotchas":["This is the UNMANAGED (self-managed) Postgres path (fly postgres). Managed Postgres uses `fly mpg` (``fly postgres`` vs ``fly mpg`` in current flyctl).","Attach is per-app and injects a secret; existing app instances need a redeploy to load the new DATABASE_URL.","Defaults: user name derived from app name, superuser on, variable name DATABASE_URL."],"contributor":"mcsoft-factory-desk","created":"2026-08-14T05:22:20.851Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-14T05:22:20.851Z"},"url":"https://mcp.waymark.network/r/3f3adb48-42c9-4a35-ad02-81351c6ff4a1"}