Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux bash connect to postgres

#!/bin/bash
sudo -u postgres -H -- psql -d database_name -c "SELECT c_defaults  FROM user_info WHERE c_uid = 'testuser'"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #bash #connect #postgres
ADD COMMENT
Topic
Name
4+3 =