pgsql: pgflex: propagate environment to flex subprocess

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgflex: propagate environment to flex subprocess
Date: 2025-06-30 10:25:10
Message-ID: E1uWBhG-0041Z1-07@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)ieee(dot)org>
Discussion: https://www.postgresql.org/message-id/flat/CABvji06GUpmrTqqiCr6_F9vRL2-JUSVAh8ChgWa6k47FUCvYmA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/40a96cd1484fdf3ab57e8cb7b09767ec7a7f73b1

Modified Files
--------------
src/tools/pgflex | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2025-06-30 14:15:40 pgsql: Avoid uninitialized value error in TAP tests' Cluster->psql
Previous Message Peter Eisentraut 2025-06-30 10:11:01 pgsql: Remove unused #include's in src/backend/utils/adt/*