On Thu, Oct 8, 2015 at 2:54 PM, Stephen Frost <sfr...@snowman.net> wrote:
> * Haribabu Kommi (kommi.harib...@gmail.com) wrote:
>> During the testing of multi-tenancy feature from system catalog views, that
>> is described in , found a problem in executing "user_privileges" view
>> from information_schema. The following is the minimal test sql that
>> reproduces the problem.
> Interesting, thanks.
>> >From further analysis, I found that the same issue can happen with user
>> tables also. Attached
>> rls_failure.sql file has test steps to reproduce the issue.
> Just to make sure we're on the same page, this results in this assertion
> being tripped:
> TRAP: FailedAssertion("!(var->varattno <= rel->max_attr)", File:
> Line: 4152)
> Due to var->varattno being 1 and rel->max_attr being 0.
Yes, the same the assertion problem with assert build.
without assert build, query fails with the following error.
ERROR: invalid attnum -2 for rangetable entry test_tbl
>> Any ideas how to handle this problem?
> It's quite late here, but I'll take a look at this in more depth
> Based on what the Assert's testing, I took an educated guess and tried
> running without the UNION ALL, which appeared to work correctly.
Yes, it works fine without UNION ALL.
And also if we change the table column datatype from name to char,
the "pull_up_subqueries" function doesn't pull the union all because of
datatype mismatch and it works fine even with row level security is enabled.
Sent via pgsql-hackers mailing list (firstname.lastname@example.org)
To make changes to your subscription: