From a0035ae83ad2f576d9d2ea30c26cb9976c73d551 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 2 Mar 2017 15:48:17 +0000 Subject: [PATCH] etc/profile.d/pg.sh --- etc/profile.d/pg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`; ( -- 2.47.3