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

From Karsten Hilbert
Subject Re: database "cdf_100_1313" does not exist
Date
Msg-id 20190909115454.GC2813@hermes.hilbert.loc
Whole thread Raw
In response to database "cdf_100_1313" does not exist  (nikhil raj <nikhilraj474@gmail.com>)
Responses Re: database "cdf_100_1313" does not exist
List pgsql-general
On Mon, Sep 09, 2019 at 05:16:20PM +0530, nikhil raj wrote:

>
> 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

Likely a quoting issue.

Karsten Hilbert
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



pgsql-general by date:

Previous
From: nikhil raj
Date:
Subject: database "cdf_100_1313" does not exist
Next
From: nikhil raj
Date:
Subject: Re: database "cdf_100_1313" does not exist