I am running a trigger function on INSERT/UPDATE that would create a new process that sends a post request to an api.
on a Ubuntu + PostgresQL 12 docker container running I was able to get the new process to form without an issue with the below code
pid=os.fork()
... do some logic
req = urllib2.Request(apiURI)
f = urllib2.urlopen(req)
Now Attempting the same on my windows machine, its clear fork is not an option.
What is best practice when running multiprocessing on a windows system?