"ERROR: Invalid value for BL_PSQL_PATH" occurs when you use PostgreSQL bulk load on Windows in SAS® 9.4M9 (TS1M9)


In SAS 9.4M9 on Windows, PostgreSQL bulk load operations with PROC APPEND with BULKLOAD=YES might fail with the following error:

ERROR: Invalid value for BL_PSQL_PATH.

Note that the same code works correctly in SAS® 9.4M8 (TS1M8).

This issue is caused by a regression introduced in SAS 9.4M9 on Windows as part of a security-related code change.

In SAS 9.4M9, additional validation logic was added for external executable paths used during bulk load, which resulted in the following:

This change affects the following:

Workaround

To circumvent this issue, do the following:

Currently, there is no supported workaround that allows the continued use of BL_PSQL_PATH= in SAS 9.4M9 on Windows.