When a tuple is inserted into a table in an EXISTS subquery, the duplicity of row is computed by count(*), but it was not considered and only one tuple was inserted with ignoring the duplicity.
This is fixed by duplicating rows as much as the duplicity by using generate_series at inserting.
When a tuple is inserted into a table in an EXISTS subquery, the duplicity of row is computed by count(*), but it was not considered and only one tuple was inserted with ignoring the duplicity.
This is fixed by duplicating rows as much as the duplicity by using generate_series at inserting.
(Issue #82)