Re: Load data from a csv file without using COPY

Поиск
Список
Период
Сортировка
От Ravi Krishna
Тема Re: Load data from a csv file without using COPY
Дата
Msg-id B1C1D70B-F13D-4AF9-A41E-9B83F09D6328@yahoo.com
обсуждение исходный текст
Ответ на Re: Load data from a csv file without using COPY  (Alban Hertroys <haramrae@gmail.com>)
Ответы Re: Load data from a csv file without using COPY
Список pgsql-general
>
> I think an easy approach would be to COPY the CSV files into a separate database using psql's \copy command and then
pg_dumpthat as separate insert statements with pg_dump —inserts. 
>

This was my first thought too.  However, as I understand, pg_dump --insert basically runs INSERT INTO ... sql for every
row.  
In other words, each row is un-prepared and executed individually.  That is also not real life scenario.



В списке pgsql-general по дате отправления:

Предыдущее
От: Ravi Krishna
Дата:
Сообщение: Re: Load data from a csv file without using COPY
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Load data from a csv file without using COPY