← Back
Editing: postgresql.sh
# Disable pager. export PSQL_PAGER= if [ $(id -u) -eq 0 ] then # PostgreSQL is configured so that 'root' can connect with the 'postgres' user, # with no password required. export PGUSER=postgres else function psql() { PGPASSWORD="$(/alwaysdata/sbin/get_root_password postgresql)" command psql -U _root -d postgres $* } function oid2name() { PGPASSWORD="$(/alwaysdata/sbin/get_root_password postgresql)" command oid2name -U _root $* } fi
Save File
Cancel