Create a pg_shdepend entry for each role in TO clause of policies.

Joe Conway <mail@joeconway.com>

Commit: f781a0f1d88411978c9df5f05cbb4f46aabe3d24
Author: Joe Conway <mail@joeconway.com>
Date: 2015-07-28T23:01:53Z
Releases: 9.6.0
Create a pg_shdepend entry for each role in TO clause of policies.

CreatePolicy() and AlterPolicy() omit to create a pg_shdepend entry for
each role in the TO clause. Fix this by creating a new shared dependency
type called SHARED_DEPENDENCY_POLICY and assigning it to each role.

Reported by Noah Misch. Patch by me, reviewed by Alvaro Herrera.
Back-patch to 9.5 where RLS was introduced.

Files

Documentation touched