© 2026 Hedgehog Software, LLC
users - id - ... posts - id - author (fk to users.id) - ... likes - pid (fk to posts.id) - uid (fk to users.id) (PK = pid + uid)
(role() = 'authenticated'::text) AND (uid = uid() AND pid.author = uid())
Error adding policy: failed to create pg.policies: missing FROM-clause entry for table "pid"