Output shell variable from psql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

 

 


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux