PostgreSQL 19 will introduce native JSON format support for the COPY TO command, enabling direct export of query results or table data as NDJSON (one JSON object per line). The new format supports an optional force_array option to wrap all records in a JSON array. It is incompatible with some standard text/CSV options like

3m read timeFrom depesz.com
Post cover image

Sort: