Re: postgresql commands(psql,createdb,dropdb) are not working fromshell script - Mailing list pgsql-general

From Ron
Subject Re: postgresql commands(psql,createdb,dropdb) are not working fromshell script
Date
Msg-id edbfae88-4032-419e-c0f5-6b8f91abeb67@gmail.com
Whole thread Raw
In response to postgresql commands(psql,createdb,dropdb) are not working from shell script  (ramesh penumalli <penumallir@gmail.com>)
Responses Re: postgresql commands(psql,createdb,dropdb) are not working fromshell script
List pgsql-general
Does the Jenkins' $PATH variable have the Postgres binaries' location?

On 1/17/20 2:47 AM, ramesh penumalli wrote:
Dear Team,

I am using postgresql 9.2.12 version and I am facing  an issue while running the executing the commands createdb,dropdb,psql commands in the shell script which is running from Jenkins to restore prod data into stage environment.

Jenkins job is failing with the below output.I have verified the script and the scrit is fine and it seems to be an issue with the configuration of postgresql  and not sure where to make the changes.

line 48: dropdb: command not found
line 50: createdb: command not found
line 52: psql: command not found
Kindly guide me to rectify the issue.
Thanks and Regards,
Ramesh

--
Angular momentum makes the world go 'round.

pgsql-general by date:

Previous
From: Durgamahesh Manne
Date:
Subject: Regarding automatic table partitioning in PostgreSQL 12 version ispossible or not
Next
From: Ramesh Penuballi
Date:
Subject: Re: postgresql commands(psql,createdb,dropdb) are not working fromshell script