On Thu, Feb 29, 2024, 11:10 Debraj Manna <subharaj(dot)manna(at)gmail(dot)com> wrote:
> Can someone let me know if there is a way I can add some custom
> rules/constraints on a Postgres database?
>
> For example, all tables in a database should have a primary key specified.
> If someone is trying to violate the rules specified then the SQL command
> should fail.
>
https://www.postgresql.org/docs/current/event-trigger-definition.html
David J.