when running psql
PGPASSWORD=$PGPASSWORD /usr/bin/psql -h $HOST -U $USERNAME $DATABASE -c "$SQL"
(CREATE UNLOGGED TABLE ....)
could not identify current directory: Numerical result out of range
could not identify current directory: Numerical result out of range
psql: fatal: could not find own program executable
Possible culprit: was using pushd pushd then only one pop