Is it possible to prevent the removal of the first row in a table on the PostgreSQL side?
I have a category table, and I want to prevent the removal of the default category, as this may break the application. Of course, I could easily do this in the application code, but it would be much better to do this in the database.
I think this has something to do with the rules in the delete statement, but I could not find anything remotely close to my problem in the documentation.
source
share