← All Tools

PostgreSQL COPY Statement Builder

Compose a valid COPY FROM or COPY TO statement without hunting through the docs — pick format, delimiter, null token, header handling, quoting, encoding, and per-column overrides. See both the server-side COPY (runs as the superuser, path is on the server) and the equivalent psql \copy meta-command that streams through your local client.

Basics

Format & delimiters

Per-column options

Generated COPY

psql \copy equivalent runs client-side, no superuser needed

Cheat sheet