Skip to content

Conversation

@levkk
Copy link
Collaborator

@levkk levkk commented Jan 23, 2026

Description

  • Removed pgdog.unqiue_id() inside Postgres introduced in Default to omni #725. That can lead to data loss when used with omnisharded and sharded tables alike.
  • Added omnisharded_sticky setting to make omnisharded SELECT queries use the same shard for each client, to avoid schema drift from the schema cache (e.g. Rails)
[general]
omnisharded_sticky = true

@levkk levkk mentioned this pull request Jan 23, 2026
@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

❌ Patch coverage is 98.48485% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pgdog/src/backend/replication/sharded_tables.rs 90.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@levkk levkk changed the title Remove pgdog.unique_id() from Postgres. Add default sticky routing for r omnisharded tables Remove pgdog.unique_id() from Postgres. Add default sticky routing for omnisharded tables Jan 23, 2026
@levkk levkk merged commit 1a7df2e into main Jan 23, 2026
8 checks passed
@levkk levkk deleted the levkk-remove-pgdog-unique-id-from-pg branch January 23, 2026 02:35
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.

2 participants