Jun 2021

2 commits
Remove unnecessary failure cases in RemoveRoleFromObjectPolicy().
25 Jun 2021Tom Lanemaster14beta3REL_19_STABLE14beta3REL_18_STABLE14beta3REL_17_STABLE14beta3REL_16_STABLE14beta3REL_15_STABLE14beta3REL_14_STABLE14beta3REL_13_STABLE13.4+4 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #140 of 1 reviewer saw the final version

Applying #14 to the commit's parent reproduces src/backend/commands/policy.c except that the commit places ReleaseSysCache(reltup) inside the HeapTupleIsValid guard, fixing the missing-tuple case.

  • Michael Paquiersaw an earlier versionLLM analysis, 96% sureMichael examined shared-dependency rebuilding, checked documentation, and supported removing unnecessary checks in #15; the committed version subsequently corrected the ReleaseSysCache guard.
Fix misbehavior of DROP OWNED BY with duplicate polroles entries.
18 Jun 2021Tom Lanemaster14beta2REL_19_STABLE14beta2REL_18_STABLE14beta2REL_17_STABLE14beta2REL_16_STABLE14beta2REL_15_STABLE14beta2REL_14_STABLE14beta2REL_13_STABLE13.4+4 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #12

The commit preserves the duplicate-role removal and CommandCounterIncrement() from #12, with equivalent control-flow cleanup and a clearer keep_policy variable in src/backend/commands/policy.c. It also adds duplicate-role regression cases in src/test/regress/sql/rowsecurity.sql and the corresponding expected output.

Credits across 2 commits

Author
Tom LaneLLM2
Committer
Tom Lane2

N LLM means N of the credits come from LLM analysis, not from commit trailers.