aboutsummaryrefslogtreecommitdiff
path: root/tables.sh
blob: 0b4e4a43f0f295d6096950107ade85b90d6ad471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

command="\dt"
if [ ! -z $1 ]; then
    command="\d $1"
fi

IFS=''
while read -r LINE || [ -n "$LINE" ]; do
    command="\d $LINE"
done

export  PGPASSWORD=postgres
psql -U postgres -h 192.168.1.237 selling_svil -c "$command"