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)