COPY JSON format
JSON format for COPY TO and COPY FROM.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · new · moderate · 3 commits · +643 / -72 lines
- PostgreSQL 18 · worked-on · new · moderate
- PostgreSQL 17 · worked-on · new · moderate
Threads
- [PATCH v1] psql: Do not complete JSON format for COPY FROM
- psql: tab completion offers invalid COPY option values
- Copy from JSON FORMAT.
- [PG19] COPY (query) TO ... (FORMAT json) uses the table's column names
- Reject HEADER with binary and json COPY formats by option presence
- COPY: validate option presence rather than option values
- [PATCH] COPY TO FORMAT json: respect column list order
- [PATCH] Reject ENCODING option for COPY TO FORMAT JSON
- COPY JSON: use trailing commas in FORCE_ARRAY output
- Bug: COPY FORMAT JSON includes generated columns unlike text/CSV
- Emitting JSON to file using COPY TO