From: Nicolas Boisselier Date: Thu, 2 Mar 2017 15:48:17 +0000 (+0000) Subject: etc/profile.d/pg.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a0035ae83ad2f576d9d2ea30c26cb9976c73d551;p=nb.git etc/profile.d/pg.sh --- diff --git a/etc/profile.d/pg.sh b/etc/profile.d/pg.sh index 015342f1..1b90de06 100644 --- a/etc/profile.d/pg.sh +++ b/etc/profile.d/pg.sh @@ -12,7 +12,7 @@ pg_count() { echo "[ $db ]"; - tables=$(sem-psql $db -Atc '\dt' | grep -v '^No relations found' | cut -d\| -f2); + tables=$(psql $db -Atc '\dt' | grep -v '^No relations found' | cut -d\| -f2); length=`echo "$tables" | perl -pe 's/^(.*)$/length($1)/e' | sort -n -r | head -1`; (