COPY CSV header line feature

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: COPY CSV header line feature
Date: 2005-03-13 23:32:20
Message-ID: 4234CD84.6010004@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


The attached patch implements the previously discussed header line
feature for CSV mode COPY. It is triggered by the keyword HEADER (blame
Bruce - he chose it ;-) ).

On input this feature causes the first line to be ignored; on output it
generates a line of column names. This will make playing with
spreadsheets potentially a lot nicer.

Docs and regression tests will be forthcoming.

cheers

andrew

Attachment Content-Type Size
csv-header.patch text/x-patch 9.6 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2005-03-13 23:47:20 Re: pgcrypto: openssl digest fix
Previous Message Greg Stark 2005-03-13 22:35:27 Re: [PATCHES] A way to let Vacuum warn if FSM settings are low. [final?]