pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: database "cdf_100_1313" does not exist
Date: Mon, 9 Sep 2019 13:54:54 +0200
Message-ID: <20190909115454.GC2813@hermes.hilbert.loc> (raw)
In-Reply-To: <CAG1ps1w3_Ewc7EaPDWWpm1hae1v4DQsgdDyBFPtE=cBQ66k_kA@mail.gmail.com>
References: <CAG1ps1w3_Ewc7EaPDWWpm1hae1v4DQsgdDyBFPtE=cBQ66k_kA@mail.gmail.com>

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





view thread (13+ messages)  latest in thread

Message-ID: <20190909115454.GC2813@hermes.hilbert.loc>
Permalink:  ../20190909115454.GC2813@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/20190909115454.GC2813@hermes.hilbert.loc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Karsten.Hilbert@gmx.net
  Subject: Re: database "cdf_100_1313" does not exist
  In-Reply-To: <20190909115454.GC2813@hermes.hilbert.loc>
  References: <CAG1ps1w3_Ewc7EaPDWWpm1hae1v4DQsgdDyBFPtE=cBQ66k_kA@mail.gmail.com> <20190909115454.GC2813@hermes.hilbert.loc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox