Loading Docs/manual.texi +50 −4 Original line number Diff line number Diff line Loading @@ -8528,6 +8528,14 @@ libc internal error: _rmutex_unlock: rmutex not held Add @code{-mt} to @code{CFLAGS} and @code{CXXFLAGS} and try again. If you are using the SFW version of gcc (which comes with Solaris 8), you must add @file{/opt/sfw/lib} to the environment variable @code{LD_LIBRARY_PATH} before running configure. If you are using the gcc available from @code{sunfreeware.com}, you may have many problems. You should recompile gcc and GNU binutils on the machine you will be running them from to avoid any problems. If you get the following error when compiling MySQL with @code{gcc}, it means that your @code{gcc} is not configured for your version of Solaris: Loading Loading @@ -18092,6 +18100,9 @@ differ somewhat: | protocol_version | 10 | | record_buffer | 131072 | | query_buffer_size | 0 | | query_cache_limit | 1048576 | | query_cache_size | 16768060 | | query_cache_startup_type | 1 | | safe_show_database | OFF | | server_id | 0 | | skip_locking | ON | Loading Loading @@ -18491,6 +18502,18 @@ buffer to avoid a disk seeks. If not set, then it's set to the value of The initial allocation of the query buffer. If most of your queries are long (like when inserting blobs), you should increase this! @item @code{query_cache_limit} Don't cache results that are bigger than this. (Default 1M). @item @code{query_cache_size} The memory allocated to store results from old queries. If this is zero the query cache is disabled. @item @code{query_cache_startup_type} This may have be set to 0 (cache results but don't retrieve results from cache), 1 (cache results by defaults) or 2 (only cache @code{SELECT}'s marked with @code{SQL_CACHE}). @item @code{safe_show_databases} Don't show databases for which the user doesn't have any database or table privileges. This can improve security if you're concerned about Loading Loading @@ -25724,6 +25747,17 @@ flag again, the @code{SQL_MAX_JOIN_SIZE} variable will be ignored. You can set a default value for this variable by starting @code{mysqld} with @code{-O max_join_size=#}. @item SQL_QUERY_CACHE_TYPE = [OFF | ON | DEMAND] @item SQL_QUERY_CACHE_TYPE = [0 | 1 | 2] The numbers are standing for the correspoding verbose option. @multitable @columnfractions .3 .7 @item 0 or OFF @tab Cache @code{SELECT} results, but don't retrieve results from cache. @item 1 or ON @tab Cache all @code{SELECT}'s that are not marked with @code{SQL_NO_CACHE}. @item 2 or DEMAND @tab Cache only @code{SELECT SQL_CACHE}) queries. @end multitable @item SQL_SAFE_UPDATES = 0 | 1 If set to @code{1}, MySQL will abort if an @code{UPDATE} or @code{DELETE} is attempted that doesn't use a key or @code{LIMIT} in the Loading Loading @@ -31079,7 +31113,7 @@ mysql> SELECT id,FLOOR(value/100) FROM tbl_name ORDER BY RAND(); @c help SELECT @example SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT] [HIGH_PRIORITY] [SQL_CACHE | SQL_NO_CACHE] [HIGH_PRIORITY] [DISTINCT | DISTINCTROW | ALL] select_expression,... [INTO @{OUTFILE | DUMPFILE@} 'file_name' export_options] Loading Loading @@ -31207,9 +31241,8 @@ mysql> select user,max(salary) AS sum from users @end example @item @code{SQL_SMALL_RESULT}, @code{SQL_BIG_RESULT}, @code{SQL_BUFFER_RESULT}, @code{STRAIGHT_JOIN}, and @code{HIGH_PRIORITY} are MySQL extensions to ANSI SQL92. All options beginning with @code{SQL_}, @code{STRAIGHT_JOIN}, and @code{HIGH_PRIORITY} are MySQL extensions to ANSI SQL. @item @code{HIGH_PRIORITY} will give the @code{SELECT} higher priority than Loading Loading @@ -31237,6 +31270,14 @@ result set will be small. In this case, MySQL will use fast temporary tables to store the resulting table instead of using sorting. In MySQL Version 3.23 this shouldn't normally be needed. @item @code{SQL_CACHE} tells MySQL to store the query result in the query cache even if you are using @code{SQL_QUERY_CACHE_METHOD} 2 (= @code{DEMAND}). @item @code{SQL_NO_CACHE} tells MySL to not store the query result in the query cache. @item @cindex @code{GROUP BY}, extensions to ANSI SQL If you use @code{GROUP BY}, the output rows will be sorted according to the Loading Loading @@ -46178,6 +46219,11 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}. @itemize @bullet @item A new query cache to cache results from identical @code{SELECT} queries. @item Fixed core dump bug on 64 bit machines when it got a wrong communication packet. @item @code{MATCH ... AGAINST(... IN BOOLEAN MODE)} can now work without @code{FULLTEXT} index. @item include/ft_global.h +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ extern const char *ft_precompiled_stopwords[]; extern ulong ft_min_word_len; extern ulong ft_max_word_len; extern ulong ft_max_word_len_for_sort; extern char *ft_boolean_syntax; extern const char *ft_boolean_syntax; int ft_init_stopwords(const char **); void ft_free_stopwords(void); Loading include/hash.h +1 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ gptr hash_next(HASH *info,const byte *key,uint length); my_bool hash_insert(HASH *info,const byte *data); my_bool hash_delete(HASH *hash,byte *record); my_bool hash_update(HASH *hash,byte *record,byte *old_key,uint old_key_length); void hash_replace(HASH *hash, uint idx, byte *new_row); my_bool hash_check(HASH *hash); /* Only in debug library */ #define hash_clear(H) bzero((char*) (H),sizeof(*(H))) Loading include/myisam.h +2 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,8 @@ typedef struct st_columndef /* column information */ #endif } MI_COLUMNDEF; /* invalidator function reference for Query Cache */ typedef void (* invalidator_by_filename)(const char * filename); extern my_string myisam_log_filename; /* Name of logfile */ extern uint myisam_block_size; Loading include/myisammrg.h +1 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,7 @@ extern int myrg_lock_database(MYRG_INFO *file,int lock_type); extern int myrg_create(const char *name, const char **table_names, uint insert_method, my_bool fix_names); extern int myrg_extra(MYRG_INFO *file,enum ha_extra_function function); extern void myrg_extrafunc(MYRG_INFO *info,invalidator_by_filename inv); extern ha_rows myrg_records_in_range(MYRG_INFO *info,int inx, const byte *start_key,uint start_key_len, enum ha_rkey_function start_search_flag, Loading Loading
Docs/manual.texi +50 −4 Original line number Diff line number Diff line Loading @@ -8528,6 +8528,14 @@ libc internal error: _rmutex_unlock: rmutex not held Add @code{-mt} to @code{CFLAGS} and @code{CXXFLAGS} and try again. If you are using the SFW version of gcc (which comes with Solaris 8), you must add @file{/opt/sfw/lib} to the environment variable @code{LD_LIBRARY_PATH} before running configure. If you are using the gcc available from @code{sunfreeware.com}, you may have many problems. You should recompile gcc and GNU binutils on the machine you will be running them from to avoid any problems. If you get the following error when compiling MySQL with @code{gcc}, it means that your @code{gcc} is not configured for your version of Solaris: Loading Loading @@ -18092,6 +18100,9 @@ differ somewhat: | protocol_version | 10 | | record_buffer | 131072 | | query_buffer_size | 0 | | query_cache_limit | 1048576 | | query_cache_size | 16768060 | | query_cache_startup_type | 1 | | safe_show_database | OFF | | server_id | 0 | | skip_locking | ON | Loading Loading @@ -18491,6 +18502,18 @@ buffer to avoid a disk seeks. If not set, then it's set to the value of The initial allocation of the query buffer. If most of your queries are long (like when inserting blobs), you should increase this! @item @code{query_cache_limit} Don't cache results that are bigger than this. (Default 1M). @item @code{query_cache_size} The memory allocated to store results from old queries. If this is zero the query cache is disabled. @item @code{query_cache_startup_type} This may have be set to 0 (cache results but don't retrieve results from cache), 1 (cache results by defaults) or 2 (only cache @code{SELECT}'s marked with @code{SQL_CACHE}). @item @code{safe_show_databases} Don't show databases for which the user doesn't have any database or table privileges. This can improve security if you're concerned about Loading Loading @@ -25724,6 +25747,17 @@ flag again, the @code{SQL_MAX_JOIN_SIZE} variable will be ignored. You can set a default value for this variable by starting @code{mysqld} with @code{-O max_join_size=#}. @item SQL_QUERY_CACHE_TYPE = [OFF | ON | DEMAND] @item SQL_QUERY_CACHE_TYPE = [0 | 1 | 2] The numbers are standing for the correspoding verbose option. @multitable @columnfractions .3 .7 @item 0 or OFF @tab Cache @code{SELECT} results, but don't retrieve results from cache. @item 1 or ON @tab Cache all @code{SELECT}'s that are not marked with @code{SQL_NO_CACHE}. @item 2 or DEMAND @tab Cache only @code{SELECT SQL_CACHE}) queries. @end multitable @item SQL_SAFE_UPDATES = 0 | 1 If set to @code{1}, MySQL will abort if an @code{UPDATE} or @code{DELETE} is attempted that doesn't use a key or @code{LIMIT} in the Loading Loading @@ -31079,7 +31113,7 @@ mysql> SELECT id,FLOOR(value/100) FROM tbl_name ORDER BY RAND(); @c help SELECT @example SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT] [HIGH_PRIORITY] [SQL_CACHE | SQL_NO_CACHE] [HIGH_PRIORITY] [DISTINCT | DISTINCTROW | ALL] select_expression,... [INTO @{OUTFILE | DUMPFILE@} 'file_name' export_options] Loading Loading @@ -31207,9 +31241,8 @@ mysql> select user,max(salary) AS sum from users @end example @item @code{SQL_SMALL_RESULT}, @code{SQL_BIG_RESULT}, @code{SQL_BUFFER_RESULT}, @code{STRAIGHT_JOIN}, and @code{HIGH_PRIORITY} are MySQL extensions to ANSI SQL92. All options beginning with @code{SQL_}, @code{STRAIGHT_JOIN}, and @code{HIGH_PRIORITY} are MySQL extensions to ANSI SQL. @item @code{HIGH_PRIORITY} will give the @code{SELECT} higher priority than Loading Loading @@ -31237,6 +31270,14 @@ result set will be small. In this case, MySQL will use fast temporary tables to store the resulting table instead of using sorting. In MySQL Version 3.23 this shouldn't normally be needed. @item @code{SQL_CACHE} tells MySQL to store the query result in the query cache even if you are using @code{SQL_QUERY_CACHE_METHOD} 2 (= @code{DEMAND}). @item @code{SQL_NO_CACHE} tells MySL to not store the query result in the query cache. @item @cindex @code{GROUP BY}, extensions to ANSI SQL If you use @code{GROUP BY}, the output rows will be sorted according to the Loading Loading @@ -46178,6 +46219,11 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}. @itemize @bullet @item A new query cache to cache results from identical @code{SELECT} queries. @item Fixed core dump bug on 64 bit machines when it got a wrong communication packet. @item @code{MATCH ... AGAINST(... IN BOOLEAN MODE)} can now work without @code{FULLTEXT} index. @item
include/ft_global.h +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ extern const char *ft_precompiled_stopwords[]; extern ulong ft_min_word_len; extern ulong ft_max_word_len; extern ulong ft_max_word_len_for_sort; extern char *ft_boolean_syntax; extern const char *ft_boolean_syntax; int ft_init_stopwords(const char **); void ft_free_stopwords(void); Loading
include/hash.h +1 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ gptr hash_next(HASH *info,const byte *key,uint length); my_bool hash_insert(HASH *info,const byte *data); my_bool hash_delete(HASH *hash,byte *record); my_bool hash_update(HASH *hash,byte *record,byte *old_key,uint old_key_length); void hash_replace(HASH *hash, uint idx, byte *new_row); my_bool hash_check(HASH *hash); /* Only in debug library */ #define hash_clear(H) bzero((char*) (H),sizeof(*(H))) Loading
include/myisam.h +2 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,8 @@ typedef struct st_columndef /* column information */ #endif } MI_COLUMNDEF; /* invalidator function reference for Query Cache */ typedef void (* invalidator_by_filename)(const char * filename); extern my_string myisam_log_filename; /* Name of logfile */ extern uint myisam_block_size; Loading
include/myisammrg.h +1 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,7 @@ extern int myrg_lock_database(MYRG_INFO *file,int lock_type); extern int myrg_create(const char *name, const char **table_names, uint insert_method, my_bool fix_names); extern int myrg_extra(MYRG_INFO *file,enum ha_extra_function function); extern void myrg_extrafunc(MYRG_INFO *info,invalidator_by_filename inv); extern ha_rows myrg_records_in_range(MYRG_INFO *info,int inx, const byte *start_key,uint start_key_len, enum ha_rkey_function start_search_flag, Loading