On Thu, 4 Oct 2018 at 13:11, Pierre Ducroquet <p(dot)psql(at)pinaraf(dot)info> wrote:
> Our developpers ORM (Django's) sadly can not use EXISTS in the where
> clauses
> without having it in the expression part of the SELECT statement.
>
I don't know if this will be helpful to you (and I appreciate there's still
the underlying PG issue), but there's a suggestion here that you can work
around this using .extra()
https://stackoverflow.com/a/38880144/321161
Geoff