小编eng*_*eth的帖子

flyway迁移是否支持PostgreSQL的COPY?

执行了现有posgresql架构的pg_dump后,我有一个sql文件,其中包含许多使用该副本的表填充语句.

COPY test_table (id, itm, factor, created_timestamp, updated_timestamp, updated_by_user, version) FROM stdin;
1   600 0.000   2012-07-17 18:12:42.360828  2012-07-17 18:12:42.360828  system  0
2   700 0.000   2012-07-17 18:12:42.360828  2012-07-17 18:12:42.360828  system  0
\.
Run Code Online (Sandbox Code Playgroud)

虽然不标准,但这是PostgreSQL的PLSQL实现的一部分.

执行flyway迁移(通过maven插件)我得到:

[ERROR] Caused by org.postgresql.util.PSQLException: ERROR: unexpected message type 0x50 during COPY from stein
Run Code Online (Sandbox Code Playgroud)

我做错了什么,或者这只是不支持?

谢谢.

database postgresql flyway

6
推荐指数
1
解决办法
2719
查看次数

标签 统计

database ×1

flyway ×1

postgresql ×1