1 2 3 4 5
#!/bin/bash export PGDATA=/var/lib/postgres/data15 export PATH=/opt/postgresql15/bin:$PATH # export LD_LIBRARY_PATH=/opt/postgresql15/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH