From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Importing from CSV, auto creating table?
Date: Wed, 21 Aug 2019 21:36:17 -0500
Message-ID: <3121bdd6-abd8-6bfe-21f8-2a904a7efe96@gmail.com> (raw)
In-Reply-To: <20190821211530.GA1292@panix.com>
References: <20190821211530.GA1292@panix.com>
On 8/21/19 4:15 PM, stan wrote:
> I have a situation where we need to import data, as an interim measure,
> from spreadsheets.
>
> I have read up on \copy and COPY, but I do not see that either of these can
> use the header from a CSV file to define a new table. Am I missing
> something?
Data types. Sure, you've got column names from the header line, but what
types do you assign them?
>
> Also downloaded something called pgfutter, which I thought would do this,
> but have not had any success with this. After I (thought) I had figured out
> the arguments, it just seams to hag forever.
>
>
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Importing from CSV, auto creating table?
In-Reply-To: <3121bdd6-abd8-6bfe-21f8-2a904a7efe96@gmail.com>
References: <20190821211530.GA1292@panix.com> <3121bdd6-abd8-6bfe-21f8-2a904a7efe96@gmail.com>
* 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