Re: COPY versus INSERT

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: COPY versus INSERT
Дата
Msg-id m3r871ebe4.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на COPY versus INSERT  ("Jay O'Connor" <joconnor@cybermesa.com>)
Список pgsql-general
"alex b." <mailinglists1@gmx.de> writes:

> I have a perl script, that runs a loop, in which it executes a
> prepared INSERT INTO query...
>
> the loop takes about 1 - 2 seconds...
>
> does BEGIN; .... COMMIT;  also apply to some PREPARE-routines?

If you have autocommit turned on (which I believe is the default for
DBD::Pg) each INSERT will cause a transaction commit, whether the
query is prepared or not.

-Doug

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

Предыдущее
От:
Дата:
Сообщение: Re: Schedule Jobs in Postgres
Следующее
От: "alex b."
Дата:
Сообщение: Re: COPY versus INSERT