[MDEV-17662] Default to UTF8 Created: 2018-11-10 Updated: 2021-11-04 Resolved: 2021-04-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Olaf van der Spek | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 5 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
Apparently UTF8 still isn't the default everywhere. Could this be fixed? https://mariadb.com/kb/en/library/differences-in-mariadb-in-debian-and-ubuntu/ |
| Comments |
| Comment by Otto Kekäläinen [ 2019-04-15 ] | |||||||||||||||||||||||||||
|
Reported downstream: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923526 | |||||||||||||||||||||||||||
| Comment by Olaf van der Spek [ 2019-04-15 ] | |||||||||||||||||||||||||||
|
Note the downstream bug is related but different. I think both Debian and upstream should update the default to utf8mb4_unicode_ci. | |||||||||||||||||||||||||||
| Comment by Olaf van der Spek [ 2019-06-20 ] | |||||||||||||||||||||||||||
|
Any feedback? | |||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2019-08-25 ] | |||||||||||||||||||||||||||
|
It has both good and bad sides. Good that users who need non-latin1 characters won't longer need to change the default character set. Bad for latin1-only users, because it comes with an unknown slowdown (
with latin1 the key is 4 times longer. For UNIQUE keys it's even worse, a UNIQUE cannot be automatically truncated, so it'll be converted to a HASH based constraint, and such a constraint isn't yet supported by the optimizer (MDEV-17081). So, while a UNIQUE will still work (it's a new 10.4 feature, in 10.3 it'd be an error), it won't longer be used as an index unless MDEV-17081 is closed. | |||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2020-11-22 ] | |||||||||||||||||||||||||||
|
Status for 10.6: https://github.com/MariaDB/server/blob/10.6/cmake/character_sets.cmake
https://github.com/MariaDB/server/blob/10.6/debian/additions/mariadb.conf.d/50-server.cnf
According to | |||||||||||||||||||||||||||
| Comment by Olaf van der Spek [ 2021-04-07 ] | |||||||||||||||||||||||||||
|
Dear Ian, Isn't this the original issue while MDEV-19123 is the duplicate? |