Unix Technical Forum

Autocommit in libpq

This is a discussion on Autocommit in libpq within the Pgsql Performance forums, part of the PostgreSQL category; --> Hi, Please forgive me if I missed something (I have been searching for a definitive answer for this for ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:23 AM
Dengler, Michael
 
Posts: n/a
Default Autocommit in libpq

Hi,



Please forgive me if I missed something (I have been searching for a definitive answer for this for 2 days).



Is there any way to disable autocommit in libpq? (PG 7.4.1)



Thanks



Mike




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 10:23 AM
Heikki Linnakangas
 
Posts: n/a
Default Re: Autocommit in libpq

Dengler, Michael wrote:
> Please forgive me if I missed something (I have been searching for a definitive answer for this for 2 days).
>
> Is there any way to disable autocommit in libpq? (PG 7.4.1)


Just call BEGIN to start a transaction, and COMMIT to commit it. Other
than that, no.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 10:23 AM
Joshua D. Drake
 
Posts: n/a
Default Re: Autocommit in libpq

Heikki Linnakangas wrote:
> Dengler, Michael wrote:
>> Please forgive me if I missed something (I have been searching for a
>> definitive answer for this for 2 days).
>>
>> Is there any way to disable autocommit in libpq? (PG 7.4.1)

>
> Just call BEGIN to start a transaction, and COMMIT to commit it. Other
> than that, no.
>


And very on topic, you need to upgrade ASAP to the latest 7.4.x.

Joshua D. Drake


--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


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

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 10:23 AM
Dengler, Michael
 
Posts: n/a
Default Re: Autocommit in libpq

Thanks for the reply. Your advice to upgrade sounds urgent. Are there critical reasons I need to go to 7.4.16?

Thanks

Mike


-----Original Message-----
From: Joshua D. Drake [mailto:jd@commandprompt.com]
Sent: March 13, 2007 11:29 AM
To: Heikki Linnakangas
Cc: Dengler, Michael; pgsql-performance@postgresql.org
Subject: Re: [PERFORM] Autocommit in libpq

Heikki Linnakangas wrote:
> Dengler, Michael wrote:
>> Please forgive me if I missed something (I have been searching for a
>> definitive answer for this for 2 days).
>>
>> Is there any way to disable autocommit in libpq? (PG 7.4.1)

>
> Just call BEGIN to start a transaction, and COMMIT to commit it. Other
> than that, no.
>


And very on topic, you need to upgrade ASAP to the latest 7.4.x.

Joshua D. Drake


--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 10:23 AM
Tom Lane
 
Posts: n/a
Default Re: Autocommit in libpq

"Dengler, Michael" <Michael_Dengler@tvworks.com> writes:
> Thanks for the reply. Your advice to upgrade sounds urgent. Are there critical reasons I need to go to 7.4.16?


Read the release notes between 7.4.1 and 7.4.16 and judge for yourself:
http://developer.postgresql.org/pgdo...s/release.html

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com