dbTalk Databases Forums  

Transaction rollback - newbie

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Transaction rollback - newbie in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
A. Mous
 
Posts: n/a

Default Transaction rollback - newbie - 11-09-2004 , 07:40 PM






Hi,

I've got clients connected to pgsql via ODBC. If they lose their connection
abruptly, all un-committed transactions are automatically rolled-back (I'm
assuming) but is there anything left behind that needs to be cleaned up on
the server side with regards to the uncommitted transaction(s)?

Much thanks!




---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
  #2  
Old   
Doug McNaught
 
Posts: n/a

Default Re: Transaction rollback - newbie - 11-09-2004 , 08:38 PM






"A. Mous" <a.mous (AT) shaw (DOT) ca> writes:

Quote:
Hi,

I've got clients connected to pgsql via ODBC. If they lose their connection
abruptly, all un-committed transactions are automatically rolled-back (I'm
assuming) but is there anything left behind that needs to be cleaned up on
the server side with regards to the uncommitted transaction(s)?
No. When the connection goes away, the backend will log an error,
roll back the transaction and exit cleanly.

-Doug

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
  #3  
Old   
David Helgason
 
Posts: n/a

Default Re: Transaction rollback - newbie - 11-09-2004 , 09:15 PM



Anytime data changes in Postgres, the old rows are still on the disk.
This is true regardless if the transaction rolls back.

Read in the docs about vacuuming, which is a process that cleans this
up.

Regards,

d.
--
David Helgason,
Business Development et al.,
Over the Edge I/S (http://otee.dk)
Direct line +45 2620 0663
Main line +45 3264 5049

On 10. nov 2004, at 03:38, Doug McNaught wrote:

Quote:
"A. Mous" <a.mous (AT) shaw (DOT) ca> writes:

Hi,

I've got clients connected to pgsql via ODBC. If they lose their
connection
abruptly, all un-committed transactions are automatically rolled-back
(I'm
assuming) but is there anything left behind that needs to be cleaned
up on
the server side with regards to the uncommitted transaction(s)?

No. When the connection goes away, the backend will log an error,
roll back the transaction and exit cleanly.

-Doug

---------------------------(end of
broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to
majordomo (AT) postgresql (DOT) org


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.