Re: WIP patch (v2) for updatable security barrier views
От | Dean Rasheed |
---|---|
Тема | Re: WIP patch (v2) for updatable security barrier views |
Дата | |
Msg-id | CAEZATCUhC-xjrt8ZcJUQr3_U91FhHo4gkSQRwoU3AMkzmWxHcw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: WIP patch (v2) for updatable security barrier views (Craig Ringer <craig@2ndquadrant.com>) |
Список | pgsql-hackers |
On 12 January 2014 10:12, Craig Ringer <craig@2ndquadrant.com> wrote: > On 01/09/2014 06:48 PM, Dean Rasheed wrote: >> On 8 January 2014 10:19, Dean Rasheed <dean.a.rasheed@gmail.com> wrote: >>> The assertion failure with inheritance and sublinks is a separate >>> issue --- adjust_appendrel_attrs() is not expecting to find any >>> unplanned sublinks in the query tree when it is invoked, since they >>> would normally have all been planned by that point. However, the >>> addition of the new security barrier subqueries after inheritance >>> expansion can now insert new sublinks which need to be planned. I'll >>> look into how best to make that happen. >> >> The attached patch does that, which fixes the case you reported. > > Dean, any objections to adding this to the current CF, or to my doing so? > OK, I'll do that. I've added a page to the wiki with a more in-depth description of how the patch works, and the test cases I've tried so far: https://wiki.postgresql.org/wiki/Making_security_barrier_views_automatically_updatable there's obviously still a lot more testing to do, but the early signs are encouraging. Regards, Dean
В списке pgsql-hackers по дате отправления: