These table definitions are not properly translated when migrating to Postgres. pgloader converts it to a simple varchar type.
So I thought about manually creating these tables definitions and then doing a WITH data only, create no tables load.
The issue is that I don't know if there's a way to skip COPYing these generated values, since PG will refuse to insert values in such columns.
This is more of a how to question.
I have a couple of tables in MySQL containing generated columns. e.g.
These table definitions are not properly translated when migrating to Postgres. pgloader converts it to a simple
varchar
type. So I thought about manually creating these tables definitions and then doing aWITH data only, create no tables
load.The issue is that I don't know if there's a way to skip
COPY
ing these generated values, since PG will refuse to insert values in such columns.