From: jing han <jing_han_66@yahoo.com>
To: pgsql-interfaces@postgresql.org
Subject: questions about transaction and rollback
Date: Thu, 14 Apr 2005 08:48:00 -0700 (PDT)
Message-ID: <20050414154800.85174.qmail@web53505.mail.yahoo.com> (raw)
Hello,
I have questions about transaction and rollback.
Question 1:
In the postgresql.conf file of our running system,
autocommit=true. If leave it as true, can we disable
this attribute when we issue a connection to database?
Such as:
$db =
DBI->connect
(
'DBI:Pg:dbname=xxx',
'user name',
'password',
{
AutoCommit => 0
}
)
Question 2:
If we use the following command to restore database.
system("su -l postgres -c \"psql -d dbname -f
/tmp/db_dump\"");
Can command psql rollback if in the middle of restore
power failure happens?
Question 3:
During restore, if power failure happens, we want to
rollback everything having been inserted or updated to
database. In another word, if we are restoring a
database with thousands of turples changes, at the
time, we restore the last turple, power failure
happens, we want to rollback. Can postgres support
huge data changes in one transaction block? How to
configure the limit of how much we can do in one
transaction block?
Hope to hear from you soon and thank you in advance.
Best Regards
jing
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
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-interfaces@postgresql.org
Cc: jing_han_66@yahoo.com
Subject: Re: questions about transaction and rollback
In-Reply-To: <20050414154800.85174.qmail@web53505.mail.yahoo.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