Ask Your Question
4

What is the method of preventing modifications to table rows in postgresql except for triggers?

asked 2023-06-03 14:03:38 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-03 14:25:02 +0000

huitzilopochtli gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-03 14:03:38 +0000

Seen: 10 times

Last updated: Jun 03 '23