Re: SQL statement form shell ?

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 16:43:11
Message-ID: CA+h6Ahh2AMPkW9=ghUX73pq8348dJr6cS9EK7rv-PUgJwKKqHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Aug 27, 2014 at 8:53 PM, czezz <czezz(at)o2(dot)pl> wrote:

> Copy/Paste error. DB name should be: fm_db_Server4
>
>
> ​
​Did you set
PGOPTIONS environment variable for that terminal for any specific schema
which do not contain the table "foo"
​. Then you might hit the error

-bash-4.1$ export PGOPTIONS="-c search_path=tester"
-bash-4.1$ psql -p 5432 -d postgres -c "SELECT * FROM foo;"
ERROR: relation "foo" does not exist
LINE 1: SELECT * FROM foo;
^

​---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/

>
> Dnia 27 sierpnia 2014 17:13 Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
> napisał(a):
>
> fm_db_Server4
>
>
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Whitney 2014-08-27 16:50:57 Re: SQL statement form shell ?
Previous Message Scott Whitney 2014-08-27 15:30:03 Re: SQL statement form shell ?