Re: Issue with psqlrc with command line.

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: saurabh shelar <saurabhshelar5(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Issue with psqlrc with command line.
Date: 2018-08-29 15:13:58
Message-ID: CAKFQuwa-X0Y6H-vPsoyKbOGkvBvpG0EmOmYcshAv0p5+rxScPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, August 29, 2018, saurabh shelar <saurabhshelar5(at)gmail(dot)com>
wrote:
>
> As per the document from PG-9.6 it is possible.
>

You cannot use psql variables with -c

“ command must be either a command string that is completely parsable by
the server (i.e., it contains no psql-specific features), or a single
backslash command.”

https://www.postgresql.org/docs/10/static/app-psql.html

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message saurabh shelar 2018-08-29 15:18:26 Re: Issue with psqlrc with command line.
Previous Message saurabh shelar 2018-08-29 15:07:59 Issue with psqlrc with command line.