Withdata Software

Schedule and automate DB2 to PostgreSQL task

Want to schedule and automate from DB2 to PostgreSQL copy data task?

Try Withdata DB Copier, a desktop tool, you can scheduled DB2 to PostgreSQL copy data task easily, just a few mouse clicks!

Let computer automate repetitive DB2 to PostgreSQL transfer data busy work, DB Copier make our life easier!

Here you can download and install DB Copier.

Schedule and automate DB2 to PostgreSQL data task

1. Select and run a task from follow list:

2. Save session and create .bat file.

3. Set scheduled task.


More about Withdata DBCopier – the tool to copy DB2 data to PostgreSQL

30-day free trial

DB2 → PostgreSQL reference

Type mapping

Value kindin DB2in PostgreSQL
IntINTEGERinteger
BigintBIGINTbigint
DecimalDECIMAL(p,s)numeric(p,s)
FloatDOUBLEdouble precision
TextVARCHAR(n)varchar(n)
Long textCLOBtext
DateDATEdate
DatetimeTIMESTAMPtimestamp
BinaryBLOBbytea
BooleanSMALLINTboolean
JSONCLOBjsonb

Dialect differences

Both DB2 and PostgreSQL are database servers, so the differences below are dialect-level: the same concept is spelled differently on each side.

Propertyin DB2in PostgreSQL
port500005432
row limitFETCH FIRST n ROWSLIMIT n
datesDATE, TIME, TIMESTAMPtimestamp, timestamptz, date, time
long textCLOBTEXT
binaryBLOBBYTEA

Command line

SideCommand
DB2EXPORT TO out.csv OF DEL
PostgreSQLpg_dump or COPY ... TO
PostgreSQL (load)COPY ... FROM
DB2 (load)db2 IMPORT FROM file OF DEL

Convert your data online, free

Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.