Re: postgres connection with port option in shell script

2018-02-17 Thread Abhra Kar
On Wed, Feb 14, 2018 at 9:03 PM, David G. Johnston < david.g.johns...@gmail.com> wrote: > On Wed, Feb 14, 2018 at 8:21 AM, Abhra Kar wrote: > >> Hi, >> >> I want to get postgres connection in script file. I am executing >> below command and successfully getting

Re: postgres connection with port option in shell script

2018-02-14 Thread David G. Johnston
On Wed, Feb 14, 2018 at 8:21 AM, Abhra Kar wrote: > Hi, > > I want to get postgres connection in script file. I am executing > below command and successfully getting connected --- > > > psql postgresql://$USER:$PASSWORD@$HOST/$DATABASE < > > If all you are going to do

Re: postgres connection with port option in shell script

2018-02-14 Thread Andreas Kretschmer
Am 14.02.2018 um 16:21 schrieb Abhra Kar: Hi,       I want to get postgres connection in script file. I am executing below command and successfully getting connected --- psql postgresql://$USER:$PASSWORD@$HOST/$DATABASE