sraoss / pg_ivm

IVM (Incremental View Maintenance) implementation as a PostgreSQL extension
Other
854 stars 24 forks source link

create_immv allows EXISTS used under an expression other than AND and it doesn't work. #72

Closed yugo-n closed 4 months ago

yugo-n commented 10 months ago

For example, the following view can be created;

select create_immv('mv0', 'select * from t where case exists (select 1 from t1 where t.i=t1.i) when true then false else true end');

But, incremental maintenance of this view doesn't work correctly and it ends in a wrong result.

yugo-n commented 4 months ago

Fixed by #71