Re: Simple question on SELECT

From: Edson Richter <richter(at)simkorp(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Simple question on SELECT
Date: 2011-11-07 23:30:04
Message-ID: 4EB869FC.9010204@simkorp.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Em 07-11-2011 20:54, John R Pierce escreveu:
> On 11/07/11 2:41 PM, Edson Richter wrote:
>> Does simple SELECT query like
>>
>> select * from tableX
>>
>> (without FOR UPDATE) opens an implicit transaction when issued?
>
> opens and closes. if you don't bracket with BEGIN; ....
> COMMIT|ROLLBACK; then each statement is a transaction of and by itself

Thanks for the fast answer. Is there any way to avoid that? I mean, in
MS SQL Server, I do have "with no_lock" (that produces dirty reads)?
Or the way to go is the transaction isolation level?

Regards,

Edson.
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma 2011-11-07 23:40:55 Re: Simple question on SELECT
Previous Message Richard Broersma 2011-11-07 23:06:52 Re: Custom Constraint Violation Errors