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.
Are you using CTEs in your views?