Search Postgresql Archives

Re: How to set up temporary path for starting up psql in any folder?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 4 Oct 2021 at 12:40, Shaozhong SHI <shishaozhong@xxxxxxxxx> wrote:
> How to set up temporary path for starting up psql in any folder?
> I do not want to disrupt existing settings of paths.

You will need to provide a lot more details ( like your OS, and wheter
you just want to open the "psql" binary or modify the paths for other
things ).

In simple OSs like mine, plain Debian Linux, you can start psql in the
folder $FOLDER by just doing "$FOLDER/psql". To launch it using
temporary override of PATH you will need to do "PATH=$FOLDER:$PATH
psql".

But anyway, this is a shell-101 question, not much to do with
postgres, you'll have to ask someone who knows your
os/shell/whatever.

Francisco Olarte.





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux