data-peek
Features

SQL Dump Import

Import PostgreSQL .sql dump files statement-by-statement, with progress and error handling

SQL Dump Import

Import .sql dump files into your PostgreSQL database directly from data-peek.

Reach for this when you have a pg_dump plain-text export, a schema file from a repo, or a seed script you want to load into a connection — and you’d rather watch it run with a progress bar and an error report than paste it into a terminal and hope. It’s the companion to CSV Import: CSV for tabular data, SQL dump for full schema + data + statements.

Starting an Import

  1. Open the import dialog from the sidebar or command palette
  2. Select a .sql dump file

Import Process

data-peek streams the dump file and executes SQL statements one at a time:

  • Progress — shows statements executed vs. total
  • Error handling — choose between stopping on the first error or continuing past failures
  • Report — after completion, see a summary of successful, skipped, and failed statements

Because statements run individually rather than as one giant transaction, a large dump won’t hold a single lock for the whole run, and the report tells you exactly which statement failed if one does.

Example: loading a schema + seed file

Point it at a plain-text dump like:

CREATE TABLE organizations (id serial PRIMARY KEY, name text, plan text);
INSERT INTO organizations (name, plan) VALUES ('Acme', 'pro'), ('Globex', 'free');

Run it with continue past failures on, and if (say) the CREATE TABLE fails because the table already exists, the INSERT statements still run and the report flags the one skipped statement — no need to hand-edit the file first.

Large dump files may take time to import. The progress indicator helps you track the process. For dumps that are pure tabular data, CSV Import is usually faster.

SQL dump import is currently available for PostgreSQL connections only. It expects plain-text (--format=plain) dumps, not custom/compressed archive formats.

On this page