From: | Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com> |
---|---|
To: | czezz <czezz(at)o2(dot)pl> |
Cc: | pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: SQL statement form shell ? |
Date: | 2014-08-27 15:13:45 |
Message-ID: | CA+h6AhgTd=eY7BD150TVgHcHjSADeCYUkQS6kSWN44WaMbWkPQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Is the database name correct ?
In your OK execution, database looks to be "Server4" and in other execution
its "fm_db_Server4".
---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/
On Wed, Aug 27, 2014 at 8:34 PM, czezz <czezz(at)o2(dot)pl> wrote:
> Im trying to execute simple query in shell.
> This query works OK in PSQL client:
> Server4=# SELECT * FROM foo2;
>
> However, for some reason I cannot execute it in shell. I try it like
> following:
>
> -bash-4.1$ psql -p 5472 -d fm_db_Server4 -c "SELECT * FROM foo2;"
> ERROR: relation "foo2" does not exist
> LINE 1: SELECT * FROM foo2;
> ^
>
> Any ideas what Im doing wrong ?
>
> BR,
> czezz
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
From | Date | Subject | |
---|---|---|---|
Next Message | czezz | 2014-08-27 15:23:08 | Re: SQL statement form shell ? |
Previous Message | czezz | 2014-08-27 15:04:34 | SQL statement form shell ? |