From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Linh Luong <linh.luong@computalog.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Begin/Commit
Date: Fri, 28 Dec 2001 15:41:17 -0800 (PST)
Message-ID: <20011228154024.H62612-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20011228222730.555C0197395@jamie.edmonton.computalog.com>
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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, linh.luong@computalog.com
Subject: Re: Begin/Commit
In-Reply-To: <20011228154024.H62612-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox