[MASSMAIL]Output shell variable from psql - Mailing list pgsql-admin

From Murthy Nunna
Subject [MASSMAIL]Output shell variable from psql
Date
Msg-id DM8PR09MB667723C1012EDD032EC1BE22B8002@DM8PR09MB6677.namprd09.prod.outlook.com
Whole thread Raw
Responses Re: Output shell variable from psql
List pgsql-admin

Hi,

 

Is there a way to output shell variable from psql?

 

export TEST_V=7

echo Value is  ${TEST_V}

Value is 7

 

psql -U postgres -p 5439

\echo Value is  ${TEST_V}

Value is ${TEST_V}

 

Thanks!

 

 

pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Autovacuum------Doubts
Next
From: jaya kumar
Date:
Subject: Re: Autovacuum------Doubts