8000 Consider tuple duplicity in maintenance of EXISTS views by yugo-n · Pull Request #83 · sraoss/pg_ivm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Consider tuple duplicity in maintenance of EXISTS views #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

yugo-n
Copy link
Collaborator
@yugo-n yugo-n commented Feb 27, 2024

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)

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)
@yugo-n yugo-n linked an issue Feb 27, 2024 that may be closed by this pull request
@yugo-n yugo-n requested a review from thoshiai February 27, 2024 08:48
In previous commit, maintenance of views using EXISTS and containing
duplicated tuples was fixed, but it was insufficient because it
raised an error during maintenance of views using both DISTINCT
and EXISTS. The cause was that tuples were tried to be duplicated
even when DISTINCT was specified. In this commit, it is fixed not
to duplicate tuples when DISTINCT is used.
@thoshiai thoshiai merged commit 01f0ea0 into main Feb 29, 2024
@yugo-n yugo-n deleted the 82-views-using-exists-with-tuple-duplication-doesnt-work-correctly branch March 1, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Views using EXISTS with tuple duplication doesn't work correctly
3493
2 participants
0