Re: Issue with psqlrc with command line.

2018-08-30 Thread saurabh shelar
Hi David, Got your point. Thank you for the help. On Wed, Aug 29, 2018 at 9:07 PM David G. Johnston < david.g.johns...@gmail.com> wrote: > On Wed, Aug 29, 2018 at 8:31 AM, saurabh shelar > wrote: > >> Hi David, >> >> Thank you for the help. >> >>

Re: Issue with psqlrc with command line.

2018-08-29 Thread saurabh shelar
9, 2018 at 8:54 PM David G. Johnston < david.g.johns...@gmail.com> wrote: > On Wednesday, August 29, 2018, saurabh shelar > wrote: > >> Hi David, >> >> Thank you for the swift response. >> >> However, could you please confirm if the below scenario is exp

Re: Issue with psqlrc with command line.

2018-08-29 Thread saurabh shelar
* ** * 1* On Wed, Aug 29, 2018 at 8:44 PM David G. Johnston < david.g.johns...@gmail.com> wrote: > On Wednesday, August 29, 2018, saurabh shelar > wrote: >> >> As per the document from PG-9.6 it is possible. >> > > You cannot use psql variables with -c > >

Issue with psqlrc with command line.

2018-08-29 Thread saurabh shelar
Hi All, I am facing issue while executing psqlrc alias commands via. "psql -c" option. Please find below details: -bash-4.2$ cat .psqlrc \set testing 'select * from test;' postgres=# select version(); version