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

Updates for Learned Indexes, NULLs are equal in DISTINCT but unequal in UNIQUE, fsyncgate & SERIAL is non-transactional. #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

christoshrousis
Copy link

Added explanations in the commit messages, but most are self explanatory if you click through.

If it's not clear:

Learned Indexes appear to be a theoretical index, that hasn't been implemented in PostgreSQL, but is an interesting topic about the application of ML on datasets. The link provides many references.

The NULL one is pretty self explanatory, the link provides a table of how NULL is treated differently in different contexts.

fsyncgate points in a wikipedia page that outlines the whole history of fsyncgate.

SERIAL is technically non-transactional because when you rollback a transaction, SERIAL is still incremented outside of the transaction.

A theoretical dense hash structure derived ("learned") from actual data.
NULL = NULL is treated as not true, but unknown.

NULL = NULL is true, with is [not] distinct.
OS differences relating to fsync reliability issues.
Value allocated even if a row is never successfully inserted.

Creates "gaps" in sequences on values.
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.

1 participant