Re: [INTERFACES] Performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] Performance
Дата
Msg-id 22127.930180624@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Performance  (Steven Bradley <sbradley@llnl.gov>)
Список pgsql-interfaces
Steven Bradley <sbradley@llnl.gov> writes:
> I wanted to use a prepared SQL statement, but it turns out that Postgres
> runs the query through the parser-planner-executor cycle on each iteration.
>  There is no way to prevent this.

> The next thing I though of doing was to "bulk load" several records in one
> INSERT through the use of array processing.  Do any of the Postgres
> interfaces support this?  (by arrays, I don't mean array columns in the
> table).

If you're just inserting literal data, use COPY FROM STDIN instead of
INSERTs.  Much less per-tuple overhead, although it's uglier.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] pgaccess and RH 6.0?
Следующее
От: "John Huttley"
Дата:
Сообщение: Re: [INTERFACES] C tuples (For V7 please, hackers!)