-
-
Notifications
You must be signed in to change notification settings - Fork 587
Description
I am attempting to migrate from MySQL to PostgreSQL via pgloader.
MySQL Version: 8.0.37 MySQL Community Server
PostgreSQL Version: 15.12
pgloader Version: pgloader version "3.6.7~devel"
compiled with SBCL 2.2.10-1.rhel9
Here is my pgloader command being run at the time of the error:
pgloader --verbose --debug --dynamic-space-size 18432 --with "prefetch rows = 500" mysql://:@:3306/<DB_NAME> pgsql://:@:5432/<DB_NAME>
I have been continuously seeing the heap error so I increased my RAM and CPU on the VM temporarily in hopes it would allow it to process if I specified a higher value for --dynamic-space-size. I have been trying all sorts of combinations for --dynamic-space-size and prefetch rows but it continues to fail. The MySQL database being converted is only 3GB in size, what can I do to get this to complete properly?
This is the most recent error which does not look to be related to heap but I am not sure why it failed, any help is apprecited!
2025-07-29T21:38:28.140234+01:00 DATA < #("98213" "2020-05-01 11:18:29.000000" "2025-05-07 09:21:40.866597"
"PRIORITY" "type/Decimal" NIL #1="t" NIL #1# "34" "5404" NIL "Priority"
"normal" NIL "2020-05-01 12:33:03.000000" NIL NIL
"{"global":{"distinct-count":2,"nil%":0.9989350372736954},"type":{"type/Number":{"min":225.0,"max":225.0,"avg":225.0,"sd":null,"q1":225.0,"q3":225.0}}}"
"4" "NUMBER" NIL NIL "34" "0" "type/Decimal" NIL NIL #2="f" #2# #2# NIL NIL
#2# "0")
2025-07-29T21:38:28.140234+01:00 DATA < #("98214" "2020-05-01 11:18:29.000000" "2025-05-07 09:21:41.054957"
"ITERATE_PARAM_INDEX" "type/Decimal" NIL #1="t" NIL #1# "10" "5404" NIL
"Iterate Param Index" "normal" NIL "2020-05-01 12:33:03.000000" NIL NIL
"{"global":{"distinct-count":2,"nil%":0.001064962726304579},"type":{"type/Number":{"min":-1.0,"max":-1.0,"avg":-1.0,"sd":0.0,"q1":-1.0,"q3":-1.0}}}"
"4" "NUMBER" NIL NIL "10" "0" "type/Decimal" NIL NIL #2="f" #2# #2# NIL NIL
#2# "0")
2025-07-29T21:38:28.140234+01:00 DATA < #("98215" "2020-05-01 11:18:29.000000" "2025-05-07 09:21:41.099189"
"PARENT_STEP_ID" "type/Decimal" NIL #1="t" NIL #1# "11" "5404" NIL
"Parent Step ID" "normal" NIL "2020-05-01 12:33:03.000000" NIL NIL
"{"global":{"distinct-count":513,"nil%":0.001064962726304579},"type":{"type/Number":{"min":-1.0,"max":1909979.0,"avg":949943.960554371,"sd":903830.5577293859,"q1":42596.51114246267,"q3":1885718.775465599}}}"
"4" "NUMBER" NIL NIL "11" "0" "type/Decimal" NIL NIL #2="f" #2# #2# NIL NIL
#2# "0")
2025-07-29T21:38:28.140234+01:00 INFO Stopping monitor
What I am doing here?
The value
NIL
is not of type
PGLOADER.CATALOG:COLUMN