Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: Commit ever...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3395 of 3717
Post > Topic >>

Re: Commit every processed record

by craig@[EMAIL PROTECTED] (Craig Ringer) Apr 7, 2008 at 09:38 PM

luke.78@[EMAIL PROTECTED]
 wrote:
> Hi,
> I have to execute commit for evey record that i processed during a
cursor fetch in a function.
> There is a way to do it?
>
>   
Sure. Do it outside PL/PgSQL, using a database client API like those 
available for Python, Java, Perl, etc.

If you really need to do it in PL/PgSQL, is there any reason you can't 
do all the work in one transaction and commit when the function finishes?

--
Craig Ringer

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 3 Posts in Topic:
Commit every processed record
luke.78@[EMAIL PROTECTED]  2008-04-07 14:46:50 
Re: Commit every processed record
andreas.kretschmer@[EMAIL  2008-04-07 15:01:40 
Re: Commit every processed record
craig@[EMAIL PROTECTED]   2008-04-07 21:38:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 4:13:22 CDT 2008.