freddez/pg-dump2insert

Some COPY statements are not converted

Opened this issue · 4 comments

I tried to convert a multi-schema dump, but there are unconverted COPY statements in between. Here is an example of the original dump:

image

And here is the result of dump2insert on the same section of the file:

image

As you can see, the latter is remained intact.

What non-alphabetic characters do you have in second schema ?

There are numbers, dots, colons, single-quotes, etc. However, I'm suspicious of the 3rd column name, since it's wrapped in double-quotes due to belonging to reserved names.

I've made corrections in the regexp. Could you check by your side with last master commit ?

Yup, it works fine now. Thanks for your quick response & patch.