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

Custom Partition Key in PeerDB UI #2146

Open
iskakaushik opened this issue Oct 16, 2024 · 0 comments
Open

Custom Partition Key in PeerDB UI #2146

iskakaushik opened this issue Oct 16, 2024 · 0 comments
Assignees

Comments

@iskakaushik
Copy link
Contributor

iskakaushik commented Oct 16, 2024

Currently, though the backend supports partitioning on a column of type int or datetime, we only expose CTID-based partitioning. This is a feature request to support selecting a custom column as the partition key. In the UI, we can show a drop-down for each table, default the value to ctid, and allow the user to select a custom column per table as they wish, only allowing valid types though.

Another important aspect of this is: if a user selects a custom, non-CTID partition key for all the tables as part of this mirror, there is no reason to maintain a long snapshot connection. We create the slot, and then we don't need a long-living connection; we can let the connection close right away since the changes are captured in the slot anyway. This is especially useful in cases where there are many transactions preventing vacuums and causing database issues.

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

2 participants