Skip site navigation (1) Skip section navigation (2)

Re: Autocommit

From: Hasnul Fadhly bin Hasan <hasnulfadhly(dot)h(at)mimos(dot)my>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Autocommit
Date: 2005-02-14 08:58:31
Message-ID: 42106837.3020103@mimos.my (view raw or flat)
Thread:
Lists: pgsql-performance
Hi Micheal,

Thanks for the reply.  I am using postgres 7.4.5 client.  There's one 
that is using 7.4.1 client.  I'm not sure if there would be any difference.
When i use psql and check the status of autocommit, it is set to 
enable.  I'm not sure if libpq and psql uses the same defaults.

Thanks,

Hasnul



Michael Fuhr wrote:

>On Mon, Feb 14, 2005 at 04:01:20PM +0800, Hasnul Fadhly bin Hasan wrote:
>  
>
>>I am just wondering, by default, autocommit is enabled for every client 
>>connection.  The documentations states that we have to use BEGIN
>>and  END or COMMIT so to increase performance by not using autocommit. 
>>My question is, when we use the BEGIN and END statements, is autocommit 
>>unset/disabled automatically or we have to disable/unset it manually?
>>    
>>
>
>What version of PostgreSQL is your server running and what client
>software are you using?  PostgreSQL 7.3 had a server-side autocommit
>setting, but it caused problems with some clients so 7.4 got rid
>of it and left autocommit up to the client.  How to enable or disable
>client-side autocommit depends on the client software, but if you're
>able to execute a BEGIN (or START TRANSACTION) statement then you
>should be inside a transaction until you execute COMMIT (or END)
>or ROLLBACK.  That is, unless your client intercepts these statements
>and does whatever it wants....
>
>  
>

In response to

Responses

pgsql-performance by date

Next:From: Michael FuhrDate: 2005-02-14 09:34:03
Subject: Re: Autocommit
Previous:From: Michael FuhrDate: 2005-02-14 08:47:03
Subject: Re: Autocommit

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group