temboard icon indicating copy to clipboard operation
temboard copied to clipboard

Feature - temboard-agent - Usage of pgenv

Open robinportigliatti opened this issue 1 year ago • 2 comments

Hello,

It could be nice to use pgven when using auto_configure.sh and get all.

When pgenv is set with SYSUSER pg_ctl is not set correctly:

# Path to pg_ctl. %s is either start, restart or reload.

pg_ctl = /usr/lib/postgresql/15/bin/pg_ctl %s -D /home/frbn/.pgenv/pgsql/data

For example:

$ which pg_ctl
/home/frbn/.pgenv/pgsql/bin/pg_ctl

I think it comes frome here: https://github.com/dalibo/temboard/blob/master/agent/share/auto_configure.sh#L224

Robin,

robinportigliatti avatar Jun 23 '23 16:06 robinportigliatti

On appelle search_bindir seulement si pg_ctl n'est pas dans le PATH.

https://github.com/dalibo/temboard/blob/master/agent/share/auto_configure.sh#L251

Es-tu sûr d'avoir pg_ctl dans le PATH ? sudo réécrit le PATH, même avec -E.

bersace avatar Jun 29 '23 07:06 bersace

$ which pg_ctl
/home/frbn/.pgenv/pgsql/bin/pg_ctl

I think it comes frome here: https://github.com/dalibo/temboard/blob/master/agent/share/auto_configure.sh#L224

search_bindir n'est appelé que si pg_ctl n'est pas dans PATH.

https://github.com/dalibo/temboard/blob/5943144a34ce9792d35a03be6b12836c4eba4fd6/agent/share/auto_configure.sh#L260C7-L260C14

Arrives-tu à reproduire ce problème ?

bersace avatar Oct 10 '23 07:10 bersace