I tried removing the scale to zero on my postgres by following Scale to zero for Postgres Development projects · Fly Docs
I saved the config, removed the FLY_SCALE_TO_ZERO line noted that image show said flyio/postgres 14.6, then ran flyctl deploy . --image flyio/postgres:14.6.
It seemed to deploy fine, and then I tried logging into my app and it said libpq: failed (connection to server at "myapp-db.flycast" (fafa:1:fafa:0:1::6), port 5432 failed: FATAL: password authentication failed for user "myapp" ). I could see in the logs for the db app that requests were reaching it, but obviously the password for that user got changed.
Is that supposed to happen? (Shouldn’t the docs say so then?)
Hi… A couple of your older posts mention fly postgres detach calls, so my guess is that you unknowingly deleted a user and/or altered passwords prior to this, .
Also, the old Stolon-based image that you’re using doesn’t support FLY_SCALE_TO_ZERO in the first place, as far as I know. (I see no mentions in its source code.) Perhaps its config got mangled as well at some point?
Finally, the fly postgres commands and Legacy Postgres in general are officially deprecated now (after having spent ~2 years in a kind of limbo):
Unmanaged Fly Postgres is deprecated in favor of ‘fly mpg’ (Managed Postgres). Please visit https://fly.io/docs/mpg/overview/ for more information about Managed Postgres.
So you can generally expect a less and less smooth ride as time goes on…
Ah, I don’t think I knew that Supabase was previously integrated. Yes, it would just be a regular external database provider, like AWS RDS. You can indeed use Fly secrets for credentials, yes.