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

From nikhil raj
Subject database "cdf_100_1313" does not exist
Date
Msg-id CAG1ps1w3_Ewc7EaPDWWpm1hae1v4DQsgdDyBFPtE=cBQ66k_kA@mail.gmail.com
Whole thread Raw
Responses Re: database "cdf_100_1313" does not exist
List pgsql-general

Hi All,

The DB is already there and getting the error of the DB does not exist where I execute it via shell.

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"

ERROR: database "cdf_100_1313" does not exist

pgsql-general by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: Permissions on postgresql.conf, psql and patroni
Next
From: Karsten Hilbert
Date:
Subject: Re: database "cdf_100_1313" does not exist