jwp/py-postgresql — Issue #56: Modify temporal.pg_tmp sets/uses environment variable
Author: jwp
Created: 2011-10-25 16:03:18+00:00
State: open

In order to allow temporary database usage across processes, set and use an environment variable:

with pg_tmp: Popen(("python3", "test_foo.py"))

Where test_foo uses pg_tmp, test_foo will use the pg_tmp entered in the parent process.