连接pgsql
su - gitlab-psql
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
命令行执行语句
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production -c "select * from xxx;"
连接pgsql
su - gitlab-psql
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
命令行执行语句
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production -c "select * from xxx;"