Postgresql

對於不同版本的 postgresql,我如何呼叫 pg_config

  • July 14, 2022

對於不同版本的 Postgresql,我如何呼叫 pg_config?我有 pg15.1 和 pg14.3。

對於單個版本,您應該使用二進製文件的完整路徑

> find /usr/lib/postgresql/*/bin/pg_config    
/usr/lib/postgresql/12/bin/pg_config
/usr/lib/postgresql/13/bin/pg_config
/usr/lib/postgresql/14/bin/pg_config

引用自:https://dba.stackexchange.com/questions/314419