4 ms·
The only thing I missed in Postgres after switching from MySQL was that text was not searched case insensitively, i.e. searching for "alex", would not match "Al
by JelteF 10y ago
The only thing I missed in Postgres after switching from MySQL was that text was not searched case insensitively, i.e. searching for "alex", would not match "Alex".
However, this was easily solved by using the CITEXT type, which is exactly for that purpose, but you have to enable it as an extension [1].
Except for that the only thing that was a problem after switching is that Postgres is a bit more strict about some stuff, such as dividing by zore, which throws an error in Postgres but results in NULL in MySQL.
The main reason I love Postgres, and which is also why I switched, are the Database Definition language statements that support transactions (ALTER TABLE).
This allows for much better migrations, if for some reason something fails you will not be in a state that is undefined.
[1]: https://www.postgresql.org/docs/9.1/static/citext.html https://www.postgresql.org/docs/9.1/static/citext.html