Запрос:
WbExport
-type=text
-outputDir='D:\Migration'
-delimiter='|'
-quotechar='^'
-encoding=UTF8
-quoteCharEscaping=duplicate
-formatFile=postgres
-header=true
-decimal='.'
-dateFormat='yyyy-MM-dd'
-sourceTable=database.schema.tablename
Файл sql Oupput:
copy tablename()
from 'D:\Migration'
with (format csv, header true, quote '^', delimiter '|', encoding 'UTF8', null '');
Ожидаемый результат:
copy tablename(column_names)
from 'D:\Migration'
with (format csv, header true, quote '^', delimiter '|', encoding 'UTF8', null '');