Skip to content

Conversation

dveeden
Copy link

@dveeden dveeden commented May 7, 2023

Have the client print out more details about the compression algorithm and compression level:

mysql> \s
--------------
./runtime_output_directory/mysql  Ver 8.0.33 for Linux on x86_64 (Source distribution)

Connection id:		235
Current database:	
Current user:		root@localhost
SSL:			Cipher in use is TLS_AES_256_GCM_SHA384
Current pager:		stdout
Using outfile:		''
Using delimiter:	;
Server version:		8.0.33 MySQL Community Server - GPL
Protocol version:	10
Connection:		127.0.0.1 via TCP/IP
Server characterset:	utf8mb4
Db     characterset:	utf8mb4
Client characterset:	utf8mb4
Conn.  characterset:	utf8mb4
TCP port:		3306
Protocol:		Compressed, algorithms: zstd, zstd level: 9                               ←------------------------------
Binary data as:		Hexadecimal
Uptime:			9 hours 48 min 31 sec

Threads: 2  Questions: 1899280  Slow queries: 0  Opens: 584  Flush tables: 3  Open tables: 476  Queries per second avg: 53.787
--------------

mysql>

The NET structure as defined in mysql_com.h only has a bool for compress. Extending this and using that instead of the opt_... variables would be a good alternative.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@dveeden
Copy link
Author

dveeden commented May 8, 2023

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=110950 for updates.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants