Re: Importing from CSV, auto creating table?

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Importing from CSV, auto creating table?
Date: 2019-08-22 02:36:17
Message-ID: 3121bdd6-abd8-6bfe-21f8-2a904a7efe96@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2019-08-22 03:14:41 Re: Importing from CSV, auto creating table?
Previous Message Michael Lewis 2019-08-21 23:05:11 Re: Complex filters -> Bad row estimates -> bad query plan