89534

89534



Statements that are unsafe for SBR.

Not all statements which modify data (such as INSERT DELETE, UPDATE, and RE PLACE statements)

can be replicated using statement-based replication. Any nondeterministic behavior is difficult

to replicate when using statement-based replication. Examples of such DML (Data Modification

Language) statements include the following:

•    A statement that depends on a UDF or stored program that is nondeterministic, sińce the value

returned by such a UDF or stored program or depends on factors other than the parameters

supplied to it. (Row-based replication, however, simply replicates the value returned by the UDF

or stored program, so its effect on table rows and data is the same on both the master and slave.)

See Section 16.4.1.11, “Replication of lnvoked Features", for morę information. •DELETE and UPDATE statements that u se a LIMIT clause without an ORDER BY are

nondeterministic. See Section 16.4.1.16, "Replication and LIMIT”.

•    Statements using any of the following functions cannot be replicated properly using statementbased

replication:

   LOAD_FILE () [1201]

   UUID () [1300], UUID_SHORT() [1301]

•USER() [1293]

•    FOUND_ROWS () [1288]

   SYSDATE () [1243] (unless both the master and the slave are started with the

sysdate-isnow [458] option)

•    GET_LOCK () [1295]

•    IS_FREE_LOCK() [1298]

•    I S_USED_LOCK () [1299]

•    MASTER_POS_WAIT () [1299]

•RAND() [1226]

•    RELEASE_LOCK () [1300]

•SLEEPO [1300]

•    VERSION () [1293]

However, all other functions are replicated correctly using statement-based

replication, including

NOW () [1240] and so forth.

For morę information, see Section 16.4.1.15, “Replication and System Functions". Statements that cannot be replicated correctly using statement-based replication are logged with a

warning like the one shown here:

090213 16:58:54 [Warning] Statement is not safe to log in statement format. A similar warning is also issued to the Client in such cases. The Client can display it using SHOW WARNINGS.



Wyszukiwarka

Podobne podstrony:
Replication and limit Statement-based replication of LIMIT clauses in DELETE, UPDATE, and INSERT ...
Untitled 39 An alternating arrangcmcnt of triangles crcatcs six-sidcd flower shapcs that are perfect
IMAT tests you on subjects and skills that are essential for university-level study. IMAT is used fo
[DPG] Page7 3.4. Dont forget the parts that are not visible in the frontal view such as t
[DPG] Page7 (2) 3.4. Don tforget the parts that are not visible in the frontal view such as&nb
primary key and unique lndex Constraints Normally, errors occurs for data-change statements (such as
jff 015 THE ENTHUSIAST AND THE EXPERT It is my strong opinion that conteSting is not all of Judo. Th
555645588329208209971248179246140?3361 66046463 n Are Unique Vbu may not think that the worłd needs
ms 043 THE WORLD FAMOUSAPOLLON SYSTEM OF BODY-BUILDING THE COURSE THAT WILL DO MORĘ FOR YOU THAN ALL
ecg@3 Not all sore thumbs are PVC s PAC (1) with normal IV conduction PAC (2) with RBBB aberration (
PRECAUTIONS Observe the following precautions that are not de-scribed in each individual section to
Stahl674 bmp 198 WALTER R. STAHL not all necessary numerical constants are available in vivo to val

więcej podobnych podstron