Ask Your Question

Revision history [back]

One method to prevent modifications to table rows in PostgreSQL except for triggers is by using the "Row-Level Security" (RLS) feature. RLS allows the database administrator to define policies that govern what actions are permitted on a specific table's rows, based on the user's role or other criteria. With RLS, the administrator can specify that updates, deletes, or inserts be allowed or denied based on the user's identity, time of day, or other factors. This provides a flexible way to control access to the data, without relying solely on triggers.