Re:Soft deletion probably isn't worth it
by firloop on Tuesday July 19, 2022 @03:21PM
(#32156621)
Postgres can do it, you're correct, but in my experience it rarely happens with any view that's even slightly non-trivial even on recent versions of Postgres. Most views with a join break predicate pushdown. It greatly reduces the usecases of views in practice.
[ Parent
| on HN ]
Re:Soft deletion probably isn't worth it
by sarchertech on Tuesday July 19, 2022 @03:54PM
(#32157068)
I haven’t had any problems with this at all and I’ve been using joins in my views for years.
Are you using CTEs in your views?
Postgres docs on CTEs: https://www.postgresql.org/docs/current/queries-with.html
Re:Soft deletion probably isn't worth it
by tomnipotent on Tuesday July 19, 2022 @05:53PM
(#32158470)
Postgres 12 fixed the CTE issue.