Re: transaction toggling - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: transaction toggling
Date
Msg-id 20051005084456.GB12206@svana.org
Whole thread Raw
In response to transaction toggling  (Matthew Peter <survivedsushi@yahoo.com>)
List pgsql-general
On Wed, Oct 05, 2005 at 12:49:33AM -0700, Matthew Peter wrote:
> Does it even make a dent in the performance if a query
> is wrapped in a transaction instead of out? Such as a
> view counter, like...
>
> update views = views + 1 where x = 1;?

All statements are within a transaction. The question is if it's one
started by you or one created just for that statement. So, no
difference.

Regular vacuum, that's the solution.
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Untyped result (setof / rowset) from Functions ?
Next
From: Richard Huxton
Date:
Subject: Re: transaction toggling