RE: database "cdf_100_1313" does not exist - Mailing list pgsql-general

From Klint Gore
Subject RE: database "cdf_100_1313" does not exist
Date
Msg-id MEAPR01MB22939B9D191D1146D55BC31FA4B70@MEAPR01MB2293.ausprd01.prod.outlook.com
Whole thread Raw
In response to Re: database "cdf_100_1313" does not exist  (nikhil raj <nikhilraj474@gmail.com>)
List pgsql-general

From: nikhil raj [mailto:nikhilraj474@gmail.com]
Sent: Tuesday, 10 September 2019 12:39 AM
To: Adrian Klaver
Cc: Tom Lane; Rob Sargent; Dan Livingston; Karsten Hilbert; pgsql-general@lists.postgresql.org
Subject: Re: database "cdf_100_1313" does not exist

 

 

> DBLIST=/usr/lib/postgresql/11/bin/psql -p 5432 -U postgres -d postgres -q -t -c "SELECT datname from pg_database where datname in ('CDF_100_1313')"

/usr/lib/postgresql/11/bin/psql -p 5432 -U postgres -d $DBLIST -c "GRANT CONNECT ON DATABASE \"$DBLIST\" TO cpupdate"

Ø  only in the grant its taking space rest in -d its perfectly all right.

 

Add –A to the options of the “select datname...” call to psql.  The aligned output is adding a space to the front of the value.

 

 

pgsql-general by date:

Previous
From: Ayub M
Date:
Subject: Re: pgbouncer with ldap
Next
From: Prakash Ramakrishnan
Date:
Subject: pgrounting extension in 11