| От | Tom Lane |
|---|---|
| Тема | Re: can I define own variables? |
| Дата | |
| Msg-id | 10109.1192243797@sss.pgh.pa.us обсуждение |
| Ответ на | Re: can I define own variables? (Guy Rouillier <guyr-ml1@burntmail.com>) |
| Ответы |
Re: can I define own variables?
|
| Список | pgsql-general |
Guy Rouillier <guyr-ml1@burntmail.com> writes:
> Tom Lane wrote:
>> Another possibility, if you only need to store and retrieve values
>> and not do anything especially interesting with them, is to abuse
>> the "custom GUC variable" facility.
> I've had several occasions when a user-defined variable would have come
> in handy. What is the scope of user_vars as you've defined them above?
They'd act like any other GUC variable. The scope of a SET would be the
current connection, but there are other ways to set them with larger scope.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера