Want to upsert data from TXT (“|” pipe delimited text) file to PostgreSQL ?
Upsert: inserts rows into a table if they do not already exist, or updates them if they do.
Try Withdata FileToDB, a desktop TXT to PostgreSQL converter for Windows, MacOS, and Linux, Convert TXT to PostgreSQL, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Convert locally and securely, avoid uploading large or private TXT file(s) to online services.
Upsert data from TXT (“|” pipe delimited text) file to PostgreSQL
Choose PostgreSQL and logon.

Click “Wizard – 1 File To 1 Table” at task dialog.

Select the “TXT” file type.

then show the wizard.
1. Open a TXT (“|” pipe delimited text) file.

2. Select a table and config fields.
Set “Load Type” to “Upsert”, choice “By Key”.

3. Preview data.

4. Upsert TXT data to PostgreSQL.

View upserted data

Upsert TXT data to PostgreSQL in command line
Save “TXT to PostgreSQL” session, then you can:
- Upsert TXT to PostgreSQL in Windows command line.
- Upsert TXT to PostgreSQL in Linux command line.
- Upsert TXT to PostgreSQL in macOS command line.
Set scheduled tasks for upseting TXT data to PostgreSQL
You can schedule and automate this “TXT to PostgreSQL” conversion task by:
- Save session and create .bat (Windows) or .sh (Linux/macOS) file for “TXT to PostgreSQL” conversion.
- Set scheduled task for “TXT to PostgreSQL” conversion.
FAQ
More about Withdata FileToDB – TXT (“|” pipe delimited text) to PostgreSQL converter

