Re: proposal: schema variables

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: proposal: schema variables
Дата
Msg-id CAFj8pRAX4Pmh_pNcOFF7r_hHkdDNnZ7iwEb_7JyxOzZ8ZrxpXA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal: schema variables  (Dmitry Dolgov <9erthalion6@gmail.com>)
Список pgsql-hackers
Hi


As a side note, I've recently caught myself thinking "it would be cool to have
session variables here". The use case was preparing a policy for RLS, based on
some session-level data set by an application. This session-level data is of a
composite data type, so simple current_setting is cumbersome to use, and a
temporary table will be dropped at the end, taking the policy with it due to
the recorded dependency between them. Thus a session variable of some composite
type sounds like a good fit.

yes, RLS support is one mentioned use case, and strong reason the access rights are implemented there.

Regards

Pavel

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