Re:Common mistakes in PostgreSQL
by gigatexal on Friday May 03, 2019 @01:24PM
(#19820314)
You had views dependent on views? Object oriented database schemes sound problematic.
[ Parent
| on HN ]
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.
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.