Re: problems with transaction blocks

Поиск
Список
Период
Сортировка
От Vivek Khera
Тема Re: problems with transaction blocks
Дата
Msg-id x7n08yyulg.fsf@yertle.int.kciLink.com
обсуждение исходный текст
Ответ на Re: problems with transaction blocks  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-general
>>>>> "RM" == Rodrigo Malara <rodrigomalara@yahoo.com.br> writes:

RM> Another way is break the transaction. Instead of consisting of many
RM> inserts, each insert is a transaction itself.
RM> Do a Begin and a Commit (or rollback) circling the insert statement.

that will destroy your performance if you do it a lot.  and there's no
point in doing an explicit begin/commit since PG does that implicitly
for each statement not inside a transaction already.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD  +1-301-869-4449 x806
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.4, 'group by' default ordering?
Следующее
От: Vivek Khera
Дата:
Сообщение: Re: problems with transaction blocks