Hi⦠Itās not you; fly pg import
doesnāt work with localhost
, unfortunately.
(I made that same mistake myself, initially.)
The reason is that the main import job is done by a temporary machine that runs within the Fly.io internal network:
Most people end up instead using pg_dump
locally, SFTPing the resulting file up to the server, and then SSHing in to restore from there.
Alternatively, you can try making a fly proxy
tunnel on port 15432 and avoid the SFTP step, at the expense of potentially some network glitchiness (depending on how good your local ISP is).
(Fly Postgres generally expects you to be familiar with these kinds of steps; thatās part of what they mean by ānot managedā, .)
(Hopefully, the upcoming Fly-managed Definitely Managed Postgres will come with very extensive importing instructions, since a lot of people are going to want to do that suddenlyāI expect.)