News for hackers. Stuff that matters.
Re:PostgREST by ako on Monday November 04, 2019 @12:56PM (#21444298)
Stored procedures often offer a better and more efficient way to implement data validation than non database native alternatives.
Re:PostgREST by bayesian_horse on Wednesday November 06, 2019 @02:17AM (#21460401)
It may indeed be efficient.

Maybe I just don't like the idea of putting all my application logic into SQL statements.

What I like about Django's ORM, for example, that you can declare a field to be an IP address, and this not only does the validation (which SQL can do easily, I am sure), but this declaration also carries over to HTML forms, admin interface, REST API serialization and HTML Templates.