Skip to content

Conversation

@kirs
Copy link

@kirs kirs commented Dec 4, 2025

When running yugabyted in development on local machines, we need to populate it with ~1500 tables.

We found that ysql_colocate_database_by_default=true significantly speeds up schema population.

However, it doesn't allow primary keys with HASH by design.

All of our tables use HASH partitioning, and even though it doesn't make a lot of sense in development, we feel strongly that we want to let developers CREATE TABLE with the same primary key as they'll use in production.

This PR adds colocate_allow_hash_schema as an option, which is intended to be used with ysql_colocate_database_by_default=true to let you populate schema with HASH partitioned tables.

@CLAassistant
Copy link

CLAassistant commented Dec 4, 2025

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for infallible-bardeen-164bc9 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 6f76fea
🔍 Latest deploy log https://app.netlify.com/projects/infallible-bardeen-164bc9/deploys/6930e25219fd53000816d40a
😎 Deploy Preview https://deploy-preview-29590--infallible-bardeen-164bc9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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