Re: [GENERAL] Psql Internal Variable question

2011-06-01 Thread Pavel Stehule
Hello \set removes outer quotes if you use PostgreSQL 9.0 you can use \set xxx 'Pavel ''Stěhule' postgres=# \set AUTOCOMMIT = 'on' PROMPT1 = '%/%R%# ' PROMPT2 = '%/%R%# ' PROMPT3 = '>> ' VERBOSITY = 'default' VERSION = 'PostgreSQL 9.1beta1 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.5.

[GENERAL] Psql Internal Variable question

2011-05-31 Thread Prafulla Tekawade
Hi, I am trying to use psql \set and \echo commands to set some internal variables. My variable starts with single quote and ends with single quote. That is actual value of the variable. Eg. set cur_db 'pgdb' \echo :cur_db --I am expecting here 'pgdb' but psql shows pgdb As mentioned above, I am

[GENERAL] Psql Internal Variable question

2011-05-31 Thread Prafulla Tekawade
Hi, I am trying to use psql \set and \echo commands to set some internal variables. My variable starts with single quote and ends with single quote. That is actual value of the variable. Eg. set cur_db 'pgdb' \echo :cur_db --I am expecting here 'pgdb' but psql shows pgdb As mentioned above, I am