You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
Pggate has an interface for a foreign key cache (PgGate_ForeignKeyReferenceExists, etc). Currently this cache is implemented in a per session way. Depending on how pg uses this cache, it may be broken in a distributed setting. For example, connection A inserts and commits to table A (row gets inserted into foreign key cache), then connection B deletes and commits that row, then connection A inserts to table B with a foreign key constraint on table A. The cache may allow the last insert to succeed even if it should fail due to the foreign key constraint.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Pggate has an interface for a foreign key cache (PgGate_ForeignKeyReferenceExists, etc). Currently this cache is implemented in a per session way. Depending on how pg uses this cache, it may be broken in a distributed setting. For example, connection A inserts and commits to table A (row gets inserted into foreign key cache), then connection B deletes and commits that row, then connection A inserts to table B with a foreign key constraint on table A. The cache may allow the last insert to succeed even if it should fail due to the foreign key constraint.
The text was updated successfully, but these errors were encountered: