Commit 53ff4c82 authored by unknown's avatar unknown

Merge rurik.mysql.com:/home/igor/mysql-4.1

into rurik.mysql.com:/home/igor/dev/mysql-4.1-0


sql/sql_yacc.yy:
  Auto merged
parents 83abc06d 32ddd427
...@@ -46,169 +46,122 @@ count(*) ...@@ -46,169 +46,122 @@ count(*)
20672 20672
flush tables; flush tables;
flush status; flush status;
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
count(*) count(*)
4181 4181
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 217 Key_read_requests 217
Key_reads 45 Key_reads 45
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
count(*) count(*)
4181 4181
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 434 Key_read_requests 434
Key_reads 45 Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables; flush tables;
flush status; flush status;
select @@preload_buffer_size; select @@preload_buffer_size;
@@preload_buffer_size @@preload_buffer_size
32768 32768
preload t1 keys; load index into cache t1 keys;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 preload_keys status OK test.t1 preload_keys status OK
show status like "preload_%"; show status like "key_read%";
Variable_name Value Variable_name Value
show status like "key_%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
count(*) count(*)
4181 4181
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 217 Key_read_requests 217
Key_reads 45 Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables; flush tables;
flush status; flush status;
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
set session preload_buffer_size=256*1024; set session preload_buffer_size=256*1024;
select @@preload_buffer_size; select @@preload_buffer_size;
@@preload_buffer_size @@preload_buffer_size
262144 262144
preload t1 keys ignore leaves; load index into cache t1 keys ignore leaves;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 preload_keys status OK test.t1 preload_keys status OK
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
count(*) count(*)
4181 4181
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 217 Key_read_requests 217
Key_reads 45 Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables; flush tables;
flush status; flush status;
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
set session preload_buffer_size=1*1024; set session preload_buffer_size=1*1024;
select @@preload_buffer_size; select @@preload_buffer_size;
@@preload_buffer_size @@preload_buffer_size
1024 1024
preload t1 keys, t2 keys (primary,b) ignore leaves; load index into cache t1 keys, t2 keys (primary,b) ignore leaves;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 preload_keys status OK test.t1 preload_keys status OK
test.t2 preload_keys status OK test.t2 preload_keys status OK
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
count(*) count(*)
4181 4181
select count(*) from t2 where b = 'test1'; select count(*) from t2 where b = 'test1';
count(*) count(*)
2584 2584
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 351 Key_read_requests 351
Key_reads 73 Key_reads 73
Key_write_requests 0
Key_writes 0
flush tables; flush tables;
flush status; flush status;
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0 load index into cache t3 keys, t2 keys (primary,b) ;
Key_writes 0
preload t3 keys, t2 keys (primary,b) ;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t2 preload_keys status OK test.t2 preload_keys status OK
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
flush tables; flush tables;
flush status; flush status;
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0 load index into cache t3 keys (b), t2 keys (c) ;
Key_writes 0
preload t3 keys (b), t2 keys (c) ;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t2 preload_keys error Key column 'c' doesn't exist in table test.t2 preload_keys error Key column 'c' doesn't exist in table
test.t2 preload_keys status Operation failed test.t2 preload_keys status Operation failed
show status like "key_%"; show status like "key_read%";
Variable_name Value Variable_name Value
Key_blocks_used 918
Key_read_requests 0 Key_read_requests 0
Key_reads 0 Key_reads 0
Key_write_requests 0
Key_writes 0
drop table t1, t2; drop table t1, t2;
...@@ -54,48 +54,47 @@ select count(*) from t1; ...@@ -54,48 +54,47 @@ select count(*) from t1;
select count(*) from t2; select count(*) from t2;
flush tables; flush status; flush tables; flush status;
show status like "key_%"; show status like "key_read%";
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
show status like "key_%"; show status like "key_read%";
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
show status like "key_%"; show status like "key_read%";
flush tables; flush status; flush tables; flush status;
select @@preload_buffer_size; select @@preload_buffer_size;
preload t1 keys; load index into cache t1 keys;
show status like "preload_%"; show status like "key_read%";
show status like "key_%";
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
show status like "key_%"; show status like "key_read%";
flush tables; flush status; flush tables; flush status;
show status like "key_%"; show status like "key_read%";
set session preload_buffer_size=256*1024; set session preload_buffer_size=256*1024;
select @@preload_buffer_size; select @@preload_buffer_size;
preload t1 keys ignore leaves; load index into cache t1 keys ignore leaves;
show status like "key_%"; show status like "key_read%";
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
show status like "key_%"; show status like "key_read%";
flush tables; flush status; flush tables; flush status;
show status like "key_%"; show status like "key_read%";
set session preload_buffer_size=1*1024; set session preload_buffer_size=1*1024;
select @@preload_buffer_size; select @@preload_buffer_size;
preload t1 keys, t2 keys (primary,b) ignore leaves; load index into cache t1 keys, t2 keys (primary,b) ignore leaves;
show status like "key_%"; show status like "key_read%";
select count(*) from t1 where b = 'test1'; select count(*) from t1 where b = 'test1';
select count(*) from t2 where b = 'test1'; select count(*) from t2 where b = 'test1';
show status like "key_%"; show status like "key_read%";
flush tables; flush status; flush tables; flush status;
show status like "key_%"; show status like "key_read%";
preload t3 keys, t2 keys (primary,b) ; load index into cache t3 keys, t2 keys (primary,b) ;
show status like "key_%"; show status like "key_read%";
flush tables; flush status; flush tables; flush status;
show status like "key_%"; show status like "key_read%";
preload t3 keys (b), t2 keys (c) ; load index into cache t3 keys (b), t2 keys (c) ;
show status like "key_%"; show status like "key_read%";
drop table t1, t2; drop table t1, t2;
...@@ -300,7 +300,6 @@ static SYMBOL symbols[] = { ...@@ -300,7 +300,6 @@ static SYMBOL symbols[] = {
{ "POLYGON", SYM(POLYGON),0,0}, { "POLYGON", SYM(POLYGON),0,0},
{ "PURGE", SYM(PURGE),0,0}, { "PURGE", SYM(PURGE),0,0},
{ "PRECISION", SYM(PRECISION),0,0}, { "PRECISION", SYM(PRECISION),0,0},
{ "PRELOAD", SYM(PRELOAD),0,0},
{ "PREV", SYM(PREV_SYM),0,0}, { "PREV", SYM(PREV_SYM),0,0},
{ "PRIMARY", SYM(PRIMARY_SYM),0,0}, { "PRIMARY", SYM(PRIMARY_SYM),0,0},
{ "PROCEDURE", SYM(PROCEDURE),0,0}, { "PROCEDURE", SYM(PROCEDURE),0,0},
......
...@@ -310,7 +310,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize); ...@@ -310,7 +310,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%token DUMPFILE %token DUMPFILE
%token PACK_KEYS_SYM %token PACK_KEYS_SYM
%token PARTIAL %token PARTIAL
%token PRELOAD
%token PRIMARY_SYM %token PRIMARY_SYM
%token PRIVILEGES %token PRIVILEGES
%token PROCESS %token PROCESS
...@@ -581,7 +580,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize); ...@@ -581,7 +580,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
type int_type real_type order_dir opt_field_spec lock_option type int_type real_type order_dir opt_field_spec lock_option
udf_type if_exists opt_local opt_table_options table_options udf_type if_exists opt_local opt_table_options table_options
table_option opt_if_not_exists opt_no_write_to_binlog opt_var_type opt_var_ident_type table_option opt_if_not_exists opt_no_write_to_binlog opt_var_type opt_var_ident_type
delete_option opt_temporary all_or_any opt_distinct opt_ignore_leafs delete_option opt_temporary all_or_any opt_distinct opt_ignore_leaves
%type <ulong_num> %type <ulong_num>
ULONG_NUM raid_types merge_insert_types ULONG_NUM raid_types merge_insert_types
...@@ -1840,7 +1839,7 @@ table_to_table: ...@@ -1840,7 +1839,7 @@ table_to_table:
}; };
preload: preload:
PRELOAD LOAD INDEX INTO CACHE_SYM
{ {
LEX *lex=Lex; LEX *lex=Lex;
lex->sql_command=SQLCOM_PRELOAD_KEYS; lex->sql_command=SQLCOM_PRELOAD_KEYS;
...@@ -1854,7 +1853,7 @@ preload_list: ...@@ -1854,7 +1853,7 @@ preload_list:
| preload_list ',' preload_keys; | preload_list ',' preload_keys;
preload_keys: preload_keys:
table_ident preload_keys_spec opt_ignore_leafs table_ident preload_keys_spec opt_ignore_leaves
{ {
LEX *lex=Lex; LEX *lex=Lex;
SELECT_LEX *sel= &lex->select_lex; SELECT_LEX *sel= &lex->select_lex;
...@@ -1882,7 +1881,7 @@ preload_key_list_or_empty: ...@@ -1882,7 +1881,7 @@ preload_key_list_or_empty:
| '(' key_usage_list2 ')' {} | '(' key_usage_list2 ')' {}
; ;
opt_ignore_leafs: opt_ignore_leaves:
/* empty */ /* empty */
{ $$= 0; } { $$= 0; }
| IGNORE_SYM LEAVES { $$= TL_OPTION_IGNORE_LEAVES; } | IGNORE_SYM LEAVES { $$= TL_OPTION_IGNORE_LEAVES; }
...@@ -4376,7 +4375,6 @@ keyword: ...@@ -4376,7 +4375,6 @@ keyword:
| PASSWORD {} | PASSWORD {}
| POINT_SYM {} | POINT_SYM {}
| POLYGON {} | POLYGON {}
| PRELOAD {}
| PREV_SYM {} | PREV_SYM {}
| PROCESS {} | PROCESS {}
| PROCESSLIST_SYM {} | PROCESSLIST_SYM {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment