Does flyway migrations support PostgreSQL's COPY?

Viewed 4152

Having performed a pg_dump of an existing posgresql schema, I have an sql file containing a number of table population statements using the copy.

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
\.

Though not standard this is part of PostgreSQL's PLSQL implementation.

Performing a flyway migration (via the maven plugin) I get:

[ERROR] Caused by org.postgresql.util.PSQLException: ERROR: unexpected message type 0x50 during COPY from stein

Am I doing something wrong, or is this just not supported?

Thanks.

2 Answers
Related