From: Daniel Verite <daniel@manitou-mail.org>
To: arun chirappurath <arunsnmimt@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Import csv to temp table
Date: Tue, 02 Jan 2024 15:51:21 +0100
Message-ID: <369a8ac6-e77d-4de6-878a-01eee781acaf@manitou-mail.org> (raw)
In-Reply-To: <CAA23Sdtm64pz-SgULXof6F9mD1s3E1SVuhXFom_nrEu0B+8vDA@mail.gmail.com>
arun chirappurath wrote:
> Do we have any scripts that create a temp table with column names
> from the first row of csv files?
csvkit [1] does that.
[1] https://csvkit.readthedocs.io/en/latest/
Best regards,
--
Daniel Vérité
https://postgresql.verite.pro/
Twitter: @DanielVerite
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: daniel@manitou-mail.org, arunsnmimt@gmail.com
Subject: Re: Import csv to temp table
In-Reply-To: <369a8ac6-e77d-4de6-878a-01eee781acaf@manitou-mail.org>
References: <CAA23Sdtm64pz-SgULXof6F9mD1s3E1SVuhXFom_nrEu0B+8vDA@mail.gmail.com> <369a8ac6-e77d-4de6-878a-01eee781acaf@manitou-mail.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox