pgflex: propagate environment to flex subprocess
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 30 Jun 2025 10:23:33 +0000 (12:23 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 30 Jun 2025 10:24:48 +0000 (12:24 +0200)
commit40a96cd1484fdf3ab57e8cb7b09767ec7a7f73b1
tree52003bfcbecff2ba48f68a603d1c70297a1f82ca
parentcc2ac0e6f99e4efc3ae5710010ff35e646990a60
pgflex: propagate environment to flex subprocess

Python's subprocess.run docs say that if the env argument is not None,
it will be used "instead of the default behavior of inheriting the
current process’ environment".  However, the environment should be
preserved, only adding FLEX_TMP_DIR to it.

Author: Javier Maestro <jjmaestro@ieee.org>
Discussion: https://www.postgresql.org/message-id/flat/CABvji06GUpmrTqqiCr6_F9vRL2-JUSVAh8ChgWa6k47FUCvYmA%40mail.gmail.com
src/tools/pgflex