Postgres asynchronous procedure execution?
Unfortunately, PostgreSQL does not currently support having such an asynchronous call made to it, where the client is able to disconnect before the original call completes.  This has been discussed a number of times and there is ongoing work to implement a capability similar to this using a "pg_background" worker, but it's not in released versions of PG and it isn't clear when that will change.