Skip to content

Are these features are available? Unique rows, Disable some CRUD operations #713

Answered by steve-chavez
vacom asked this question in Questions
Discussion options

You must be logged in to vote

Yes, all of those are standard capabilities of PostgreSQL.

Set unique rows based on a column;

UNIQUE constraint: https://www.postgresqltutorial.com/postgresql-unique-constraint/

Disable CRUD operations based on table (example: Allow Select, Insert, Update but disable delete)

GRANT: https://www.postgresqltutorial.com/postgresql-administration/postgresql-grant/

Create a new row on Table 2 when inserting on Table 1;

TRIGGER: https://www.postgresqltutorial.com/creating-first-trigger-postgresql/

Prevent some columns from being inserted or modified (example: allow admin role but don't allow user)

Also GRANT. You can do GRANTs on certain columns or on certain roles(like admin or webuser).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vacom
Comment options

Answer selected by vacom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants