Psql Internal Variable question

Поиск
Список
Период
Сортировка
От Prafulla Tekawade
Тема Psql Internal Variable question
Дата
Msg-id BANLkTimvW4TXJb2FXmiaAN450bnR6hW0_w@mail.gmail.com
обсуждение исходный текст
Список pgsql-general

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 expecting \echo to return 'pgdb' to me but it returns pgdb.
I tried using escape char, but it did not work.
Can somebody help me?

--
Best Regards,
Prafulla V Tekawade



В списке pgsql-general по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Consistency of distributed transactions
Следующее
От: Brendan Jurd
Дата:
Сообщение: Re: search_path versus dynamic CREATE SCHEMA