pg RLS suggestions needed

Поиск
Список
Период
Сортировка
От Laura Smith
Тема pg RLS suggestions needed
Дата
Msg-id uKBUtTKFKrYpM9ow3m7MKhbWrhAfGyXIFdrh7GDdZrfDB_Cs56J4JqMU2qpnr7SOR6peoSgfbPaeknGjG9p4_-AYMKXZrkXfGFbS9FDzmrY=@protonmail.ch
обсуждение исходный текст
Список pgsql-general
I've got a table with an RLS policy on it:

Policies:    POLICY "app_users_policy"
      USING ((app_id = CURRENT_USER))

Is there a way I'm not aware of (e.g. via Pl/PGSQL) that would allow "migration" of data from one RLS owner to another
?

At the moment, the only option I can think of is for the external app to login as one user, cache the data and then
loginas the other user and re-save it. 

Basically the background is that I want to give users the ability to self-service migrate their existing app profile
from"old" to "new" (the app being differentiated via RLS user on app_id) 



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

Предыдущее
От: Tiaswin
Дата:
Сообщение: What ist the standard setting of FETCH_COUNT?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: What ist the standard setting of FETCH_COUNT?