Re: Load data from a csv file without using COPY

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Load data from a csv file without using COPY
Дата
Msg-id E483F41A-31A6-450D-9BE7-97AC0294BCD3@blighty.com
обсуждение исходный текст
Ответ на Load data from a csv file without using COPY  (Ravi Krishna <srkrishna@yahoo.com>)
Ответы Re: Load data from a csv file without using COPY
Список pgsql-general
> On Jun 19, 2018, at 9:16 PM, Ravi Krishna <srkrishna@yahoo.com> wrote:
>
> In order to test a real life scenario (and use it for benchmarking) I want to load large number of data from csv
files.  
> The requirement is that the load should happen like an application writing to the database ( that is, no COPY
command). 
> Is there a tool which can do the job.  Basically parse the csv file and insert it to the database row by row.

If performance is relevant then your app should probably be using COPY protocol, not line by line inserts. It's
supported by most postgresql access libraries. If your app does that then using "\copy" from psql would be
an appropriate benchmark.

Cheers,
  Steve



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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Is postorder tree traversal possible with recursive CTE's?
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Load data from a csv file without using COPY