Re: Extend COPY FROM with HEADER <integer> to skip multiple lines
Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>, Shinya Kato
<shinya11.kato@gmail.com>, pgsql-hackers@postgresql.org
Date: 2025-06-10T10:05:30Z
Lists: pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes: > OTOH I'm a bit curious to know what software produces multi-line CSV > headers. AWS CloudFront access logs are stored in S3 as TSV files (one per hour per CF node) with a two-line header comment where the first line is the version and the second lists the fields (but not in a form useful for HEADER MATCH). Although not useful for the above format, and not intended to derail or bloat the proposal in this thread, would it be useful to have a mode that combines skip and match? I.e. skip N lines, then check the fields in the one after that against the target columns. - ilmari
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Support multi-line headers in COPY FROM command.
- bc2f348e87c0 19 (unreleased) landed