a new param replicate-wild-rewrite-table for rewrite table name in slave

Bug #1015463 reported by 林晓斌
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Triaged
Wishlist
Unassigned

Bug Description

There is a param replicate-rewrite-db already, for from_db.* -> to_db.*

It is useful for environment that need split tables into several dbs in master, and collect all the updates into one db in slave.

Another requirement will be spliting table into several ones in on schema,
such as split a into a_01, a_02, .... a_n, for performance issues.

There may be requirement that need to collect all the a_% data into a single table, in slave.
So if there is way to translate updates from a_% into a, it will be convenient.

Patch follow based on Percona Server 5.5.18, offer a new param for the purpose above.
eg.
  replicate-wild-rewrite-table=test_%.abc_% -> test.abc
can translate all updates in tables that match the "test_%.abc_%" patten, into test.abc.

Revision history for this message
林晓斌 (dingqi-lxb) wrote :
Revision history for this message
Stewart Smith (stewart) wrote :

Hi!

Thanks very much for the patch. Before we can incorporate it, we'll need a couple of things:
1) tests (while replication tests aren't always the easiest to write, it does help ensure that the feature continues to work)
2) A bzr branch with the changes commited
3) a merge request

let me know if there's any part of this I can help with.

cheers,
stewart

Stewart Smith (stewart)
summary: - a new param eplicate-wild-rewrite-table for rewite table name in slave
+ a new param replicate-wild-rewrite-table for rewite table name in slave
summary: - a new param replicate-wild-rewrite-table for rewite table name in slave
+ a new param replicate-wild-rewrite-table for rewrite table name in slave
tags: added: contribution
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

林晓斌, is the "In Progress" status of this bug up to date?

Changed in percona-server:
status: In Progress → Triaged
assignee: 林晓斌 (dingqi-lxb) → nobody
no longer affects: percona-server/5.5
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2373

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.