Re: Adding custom constraints on a postgres database - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Adding custom constraints on a postgres database
Date
Msg-id CAKFQuwYej5N-T-6YADf1ZLKAKcQ1Avd7xHozTpcG5g8zY1tNeg@mail.gmail.com
Whole thread Raw
In response to Adding custom constraints on a postgres database  (Debraj Manna <subharaj.manna@gmail.com>)
Responses Re: Adding custom constraints on a postgres database
List pgsql-admin
On Thu, Feb 29, 2024, 11:10 Debraj Manna <subharaj.manna@gmail.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.


David J.

pgsql-admin by date:

Previous
From: Debraj Manna
Date:
Subject: Adding custom constraints on a postgres database
Next
From: Tom Lane
Date:
Subject: Re: Adding custom constraints on a postgres database