pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: czezz <czezz@o2.pl>
To: pgsql-admin@postgresql.org
Subject: SQL statement form shell ?
Date: Wed, 27 Aug 2014 17:04:34 +0200
Message-ID: <50235644.468fa51b.53fdf382.a46b@o2.pl> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (7+ messages)  latest in thread

Message-ID: <50235644.468fa51b.53fdf382.a46b@o2.pl>
Permalink:  ../50235644.468fa51b.53fdf382.a46b@o2.pl/
Also on:    postgresql.org/message-id/50235644.468fa51b.53fdf382.a46b@o2.pl

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: czezz@o2.pl
  Subject: Re: SQL statement form shell ?
  In-Reply-To: <50235644.468fa51b.53fdf382.a46b@o2.pl>

* 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