Re: problems with transaction blocks - Mailing list pgsql-general

From Vivek Khera
Subject Re: problems with transaction blocks
Date
Msg-id x7n08yyulg.fsf@yertle.int.kciLink.com
Whole thread Raw
In response to Re: problems with transaction blocks  ("scott.marlowe" <scott.marlowe@ihs.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.4, 'group by' default ordering?
Next
From: Vivek Khera
Date:
Subject: Re: problems with transaction blocks