mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-31003: Second execution for ps-protocol
This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
This commit is contained in:
@ -42,6 +42,7 @@ explain extended
|
||||
select * from (select * from t1 where f1 in (2,3)) tt join
|
||||
(select * from t1 where f1 in (1,2)) aa on tt.f1=aa.f1;
|
||||
|
||||
--disable_ps2_protocol
|
||||
flush status;
|
||||
explain extended
|
||||
select * from (select * from t1 where f1 in (2,3)) tt where f11=2;
|
||||
@ -49,6 +50,7 @@ show status like 'Handler_read%';
|
||||
flush status;
|
||||
select * from (select * from t1 where f1 in (2,3)) tt where f11=2;
|
||||
show status like 'Handler_read%';
|
||||
--enable_ps2_protocol
|
||||
|
||||
--echo for merged views
|
||||
create view v1 as select * from t1;
|
||||
@ -69,6 +71,7 @@ explain extended
|
||||
select * from v3 join v4 on f1=f2;
|
||||
select * from v3 join v4 on f1=f2;
|
||||
|
||||
--disable_ps2_protocol
|
||||
flush status;
|
||||
explain extended select * from v4 where f2 in (1,3);
|
||||
show status like 'Handler_read%';
|
||||
@ -91,6 +94,7 @@ show status like 'Handler_read%';
|
||||
flush status;
|
||||
select * from t1 join (select * from t2 group by f2) tt on f1=f2;
|
||||
show status like 'Handler_read%';
|
||||
--enable_ps2_protocol
|
||||
|
||||
--echo for materialized views
|
||||
drop view v1,v2,v3;
|
||||
@ -106,6 +110,7 @@ explain extended select * from t1 join v2 on f1=f2;
|
||||
select * from t1 join v2 on f1=f2;
|
||||
explain extended
|
||||
select * from t1,v3 as v31,v3 where t1.f1=v31.f1 and t1.f1=v3.f1;
|
||||
--disable_ps2_protocol
|
||||
flush status;
|
||||
select * from t1,v3 as v31,v3 where t1.f1=v31.f1 and t1.f1=v3.f1;
|
||||
show status like 'Handler_read%';
|
||||
@ -116,6 +121,7 @@ show status like 'Handler_read%';
|
||||
flush status;
|
||||
select * from t1 join v2 on f1=f2;
|
||||
show status like 'Handler_read%';
|
||||
--enable_ps2_protocol
|
||||
|
||||
explain extended select * from v1 join v4 on f1=f2;
|
||||
explain format=json select * from v1 join v4 on f1=f2;
|
||||
@ -159,6 +165,7 @@ join
|
||||
(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) z
|
||||
on x.f1 = z.f1;
|
||||
|
||||
--disable_ps2_protocol
|
||||
flush status;
|
||||
select * from
|
||||
(select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) x
|
||||
@ -167,6 +174,7 @@ join
|
||||
on x.f1 = z.f1;
|
||||
show status like 'Handler_read%';
|
||||
flush status;
|
||||
--enable_ps2_protocol
|
||||
|
||||
--echo merged in merged derived join merged in merged derived
|
||||
explain extended select * from
|
||||
|
Reference in New Issue
Block a user