[SQL] Only insert into tables trough functions - Mailing list pgsql-sql

From Alvin Díaz
Subject [SQL] Only insert into tables trough functions
Date
Msg-id BN6PR17MB1601E555AA4B8F01C03B652CE7490@BN6PR17MB1601.namprd17.prod.outlook.com
Whole thread Raw
Responses Re: [SQL] Only insert into tables trough functions  (Klaus Kaisersberger <point-of-entry@outlook.com>)
List pgsql-sql
Hi community.

I’m working in a project as architect so I’m focused in control as much as possible from the database in other words  business logic is in the DB so I’m trying to find a way to prevent developers can insert directly on tables instead o directs insert against data table the should be force to use the prebuilt functions.

If I implement this scheme I make sure that developers follow business logic then I want to listen some suggestions  because I was thinking in create functions whit security definer with a user with permission to write in the tables then create a user for developers allowing then just read  all tables and execute the functions.

Best regards.
Alvin Diaz.

Sent from my iPhone

pgsql-sql by date:

Previous
From: ROS Didier
Date:
Subject: Re: [SQL] ERROR: invalid byte sequence for encoding "UTF8": 0xe9 0x6d0x61 - fixed
Next
From: ROS Didier
Date:
Subject: [SQL] How to index encrypted colums ?