Postgres closes connection on CREATE EXTENSION IF NOT EXISTS postgis

Try running fly machine status 5683076c12d28e and see what the exit event says. This sounds like it might be an OOM to me.