How to import a 7M+ rows data set into PostgreSQL? (SQL for beginners)

How to import a 7M+ rows data set into PostgreSQL? (SQL for beginners)

33,243 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Javier Cepeda
Javier Cepeda - 08.04.2023 23:25

THANK YOU

Ответить
shamil ponnath
shamil ponnath - 09.10.2022 16:36

postgres=# COPY PUBLIC.flight_delays_all FROM '/users/SPM/desktop/2007.csv' DELIMITER ',' CSV HEADER;
ERROR: could not open file "/users/SPM/desktop/2007.csv" for reading: Permission denied
HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.

Ответить
Muneer Ahmed
Muneer Ahmed - 20.02.2022 18:24

I have 5 million records in a CSV file which I tried to load into a PostgreSQL table using a copy command just like the one you used. However for reasons unknown only 375,000 records were copied in the target table. Please help me out with this. Thanks in advance

Ответить
Vishwas Khare
Vishwas Khare - 29.12.2021 09:47

How much that in bytes

Ответить
mirrr velll
mirrr velll - 09.11.2021 14:42

Good video, do you have any video how to import huge amount of data from folder - with subfolders? And data type is in my example .dif files?

Ответить
Jean Pierre Aguirre
Jean Pierre Aguirre - 17.10.2021 21:20

¿Es necesario hacer todos los pasos del servicio remoto para obtener la data flight_delays?. Ayuda por favor. Necesito el archivo csv.

Ответить
Shajila KP
Shajila KP - 21.09.2021 07:18

Hi, could you please Explain how to read file from S3 and deploy this in AWS EC2 instance ? Would be happy to understand how to use pg_bulkload instead of copy

Ответить
IloveBaklava
IloveBaklava - 03.10.2019 01:41

Is there a way to use that copy command and eliminate duplicates ? I think mysql supports that with their import tool

Ответить
Kun Fang
Kun Fang - 15.09.2019 15:54

Thanks for your viedo!

Ответить
Prathibha Kuruvail
Prathibha Kuruvail - 17.12.2018 13:21

Hello ... could you help me with the procedure for uploading a .csv file with postgresql on UBUNTU?

Ответить
Andres Areiza
Andres Areiza - 21.03.2018 08:19

Hi, how would you do this, if in your table have FOREIGN KEY and subquerys?
Please, I'll be grateful if you answer.

Ответить
Mohamed Ziedan
Mohamed Ziedan - 16.03.2018 13:24

Moreover SELECT * FROM fligh_delays LIMIT 10 ; it goes through but return nothing

Ответить
Mohamed Ziedan
Mohamed Ziedan - 16.03.2018 13:23

I followed ur instructions , however i got this >> ERROR: missing data for column "flightnum"
CONTEXT: COPY flight_delays, line 6933096: "2007,12,21,5,804,"

Ответить
Roman Bond
Roman Bond - 06.03.2018 13:35

if you are working with bigdata it is not funny to create table by writing columns, it should be create from header of csv file automatically but anyway thanks for good video!

Ответить
Sergio Ferraz Souza
Sergio Ferraz Souza - 22.07.2017 23:36

Thanks for share Tomi.I have a similar task for this week.

Ответить
Panagiotis Trapatsas
Panagiotis Trapatsas - 15.06.2017 14:38

Great vid! You really should be using SSH with authentication key instead of password.

Ответить