Skip to content

Partman on Cluster (Master with Slaves) #566

Answered by keithf4
psyskeptic asked this question in Q&A
Discussion options

You must be logged in to vote

Replicas cannot write to the database, so it's not possible for them to create child tables before the master. All newly created tables on the primary will automatically replicate. So just do the same config on all nodes in the cluster and you should be fine.

But, you know, it looks like I never did add replica detection to the maintenance function. Can't believe I've missed that all this time. All this means is that if maintenance runs on the replica before the primary, it'll throw an error that it can't write. I can code it to fail gracefully if it's run on a replica, though. Thanks for bringing this up!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@psyskeptic
Comment options

@keithf4
Comment options

@keithf4
Comment options

Answer selected by psyskeptic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants