I’ve really only ever worked in web development. 90+% of web developers regard doing anything at all clever in the database with suspicion.
I’m considering working on a book about implementing business logic in Postgres, and I’m curious about how common that actually is.