When init with exisiting instance, report permission error
execute cargo pgrx init --pg16=/etc/postgresql/16/main/postgresql.conf environment:Ubuntu 24.04 in WSL output
Validating /etc/postgresql/16/main/postgresql.conf Error: 0: Permission denied (os error 13)
Location: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-config-0.12.9/src/lib.rs:446
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
0: cargo_pgrx::command::init::init_pgrx at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgrx-0.12.9/src/command/init.rs:163 1: cargo_pgrx::command::init::execute at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgrx-0.12.9/src/command/init.rs:88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 3 frames hidden ⋮
4: pgrx_pg_config::PgConfig::run::he0e8c2e0fc453420
at
Did I do something wrong there?
@wangyjx The --pg16 argument should be the path to the pg_config binary rather than the path to postgresql.conf. E.g. cargo pgrx init --pg16=/usr/lib/postgresql/16/bin/pg_config