Re: Begin/Commit - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Begin/Commit
Date
Msg-id 20011228154024.H62612-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Begin/Commit  (Linh Luong <linh.luong@computalog.com>)
List pgsql-sql
On Fri, 28 Dec 2001, Linh Luong wrote:

> Hi,
>
> I was wondering is there a limitation in the number of sql stmt that can go
> between a begin and commit.
>
> I have a very large file that contains many updates and inserts (I mean
> many).  And it is taking too long to restore the data.  Pg_restore is out of
> the questions at the current moment because of the data version.
>
> Example,
> Begin Work;
> ....
> ...
> .. (1000 update/inserts sql smts)
> Commit Work;
>
> Is this allowed????

Yes, in general that should be fine (excepting that
any failed statement will force a rollback which
affects all of the statements in the transaction)




pgsql-sql by date:

Previous
From: Linh Luong
Date:
Subject: Begin/Commit
Next
From: Tom Lane
Date:
Subject: Re: Begin/Commit