Re: read only transactions - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: read only transactions
Date
Msg-id 4CB4697502000025000368A4@gw.wicourts.gov
Whole thread Raw
In response to read only transactions  (Jon Nelson <jnelson+pgsql@jamponi.net>)
List pgsql-performance
Jon Nelson <jnelson+pgsql@jamponi.net> wrote:

> Are there any performance implications (benefits) to executing
> queries in a transaction where
> SET TRANSACTION READ ONLY;
> has been executed?

I don't think it allows much optimization in any current release.

It wouldn't be a bad idea to use it where appropriate, though, as
future releases might do something with it.  If you include this on
the BEGIN statement, that will save a round trip.

-Kevin

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Slow count(*) again...
Next
From: Tom Lane
Date:
Subject: Re: read only transactions