Skip to content
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

Comparing composite types is sometimes crazy slow #285

Open
erichanson opened this issue Nov 29, 2023 · 0 comments
Open

Comparing composite types is sometimes crazy slow #285

erichanson opened this issue Nov 29, 2023 · 0 comments

Comments

@erichanson
Copy link
Member

https://explain.depesz.com/s/RsZl

Three queries here, one is 971ms, the other two are ~7ms. Can't tell why one would be that much slower than the other two.

erichanson added a commit that referenced this issue Nov 29, 2023
Big speedups.  Working around what sure seems to be a PostgreSQL bug #285.  If
we keep this approach, would be nice to add write-blocking triggers on the
internal rowset* tables, as they should never be modified directly, #286.
@erichanson erichanson changed the title Weird issue with comparing composite foreign keys Comparing composite types is sometimes crazy slow Dec 3, 2023
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

No branches or pull requests

1 participant