Re: Begin/Commit

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Begin/Commit
Дата
Msg-id 20011228154024.H62612-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Begin/Commit  (Linh Luong <linh.luong@computalog.com>)
Список 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 по дате отправления:

Предыдущее
От: Linh Luong
Дата:
Сообщение: Begin/Commit
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Begin/Commit