I'm on a Mac, but this seems like a UNIX/Linux question. I just installed Postgres.app, and the documentation says to add the /bin directory that ships with Postgres.app to your PATH by adding the following line to .bashrc, it'll get set for every terminal session:PATH=/Applications/Postgres.app/Contents/MacOS/bin:$PATHShould I be exporting that, or just keep it as is?
Adding Postgres bins to PATH: should I `export`?
path;postgresql
export puts the variable in the program environment, which is propagated to forked processes. If you want any processes you launch to know about the new location, you need to export it (although if it is already exported, you don't need to use export again, but it does no harm to do so).If you want to be totally sure, export it. If it is already in your environment, though, you do not need to do it again.