Re:Common mistakes in PostgreSQL
by radiowave on Friday May 03, 2019 @03:18PM
(#19821399)
Nothing to do with object orientation. We just use a lot of views, both to abstract away common complex queries, and to allow external systems to interact with the data in a controlled way.
[ Parent
| on HN ]
That makes sense actually. But stored procedures could do that too?
Yes. I tend to treat procedural code as a last resort, because pure declarative SQL is so much easier to troubleshoot.