"Vladimir Lavrentiev" <vyorick@gmail.com> writes:
> Description: Grants on inherited tables checks before constraint
> exclusion see, that table not needed
This is not a bug. Sorry, but that's just the way it works: you need
suitable permission on every table referenced by the query. Constraint
exclusion is just an optimization, it does not change the semantics;
in particular it doesn't change permissions requirements.
regards, tom lane