Quantcast
Channel: Znuny Open Source Ticketsystem
Viewing all articles
Browse latest Browse all 300

Migrate from mySQL (mariaBD) to postgres - how?

$
0
0
Hi all,

I intend to migrate from otrs 6.0.18 to znuny 6.5 and thereby also to switch from mariaDB to postgres. I already tried the DB migration with the help of pgloader and noticed that some type casts should be set in the pgloader config file (e.g. datetime from mariaDB is migrated to 'datetime with time zone' in postgresql which causes issues in znuny). As I do not know whether this casting problem is the only one, I think it might be better to use the `schema.postgresql.sql`, transfer all data as csv (how to do this without exporting all tables individually to files?), and then run the `schema-post.postgresql.sql`. Doing it this way should ensure to have exactly the expected types in all tables.

How would you suggest to do the intended DB migration, especially the csv transfer.
Perhaps there is even a pgloader config file template?

So far, I would do:
mariaDB (otrs 6.0) -> postgresql (znuny 6.0) -> migration steps: 6.1/2/3/4 -> postgresql (znuny 6.5)
Would you suggest to do it in a different manner?

context: after switching from mariaDB 5 to mariaDB 10 I noticed a massive decrease in performance for full text searches from approx 30 seconds (mariaDB 5.5.68) to >10 minutes (mariaDB 10.11.6) - postgresql reports results within 5 seconds.

Thanks
Gregor

Statistics: Posted by gwarsow — 09 Aug 2024, 12:58 — Replies 3 — Views 113



Viewing all articles
Browse latest Browse all 300

Trending Articles