Re: XactIsoLevel handling

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: XactIsoLevel handling
Date: 2004-05-19 00:24:31
Message-ID: 9525.1084926271@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
> Why is the isLocal-parameter false? Couldn't it be true as well? It works
> as it is, since the XactIsoLevel variable is reset to default value in
> StartTransaction anyway, but it looks silly to me to define the variable
> as a session variable when in fact it acts like a local one.

Perhaps it could be true instead, but I see no point in invoking the
extra overhead of the local-variable mechanism given that this variable
is special-cased anyway.

> I bumped into this because my current 2PC doesn't allow you to set session
> variables.

Seems like the problem is right there, not with XactIsoLevel ... you
cannot seriously claim that that is an acceptable restriction.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-05-19 00:28:01 Re: question about information_schema
Previous Message Jan Wieck 2004-05-18 23:32:36 Re: Relocatable installs