Re: COPY command with RLS bug
От | Stephen Frost |
---|---|
Тема | Re: COPY command with RLS bug |
Дата | |
Msg-id | 20160930181104.GV5148@tamriel.snowman.net обсуждение исходный текст |
Ответ на | Re: COPY command with RLS bug (Adam Brightwell <adam.brightwell@crunchydata.com>) |
Ответы |
Re: COPY command with RLS bug
|
Список | pgsql-hackers |
Adam, Michael, * Adam Brightwell (adam.brightwell@crunchydata.com) wrote: > > Looking for and improving test coverage for RLS is a good suggestion, > > but let's not link the fate of the issue reported here with this > > requirement. I have spent some time looking at this patch and this > > looks in rather good shape to me (you even remembered to use the > > prefix regress_* for the role name that you are adding!). So I have > > marked this bug fix as ready for committer. > > Excellent, thanks for the review and feedback. I appreciate it. Attached is an updated patch which fixes a few things and adds a few regression tests. In particular, 'location' should be set to -1 as this is an internally-generated query and there's no location inside the query string passed in by the user that would make sense (and we shouldn't ever end up in a situation where this query is failing in a way that it would make sense to report a location to the user, either). Also fixed a comment or two. Comments and testing welcome, of course, though it's looking pretty good to me at this point and I'll likely commit it in another day or two unless issues are found. Thanks! Stephen
Вложения
В списке pgsql-hackers по дате отправления: