XactIsoLevel handling

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: pgsql-hackers(at)postgresql(dot)org
Subject: XactIsoLevel handling
Date: 2004-05-18 13:43:01
Message-ID: Pine.OSF.4.58.0405181615180.368774@kosh.hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In tcop/utility.c, the isolation level is set with a call like:

SetPGVariable("transaction_isolation", makeList(item->arg), false)

when a BEGIN SERIALIZABLE etc. call is made.

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.

I bumped into this because my current 2PC doesn't allow you to set session
variables. I modified the above line, and BEGIN SERIALIZABLE seems to
work fine now with 2PC.

- Heikki

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2004-05-18 13:46:19 Re: Relocatable installs
Previous Message Fabien COELHO 2004-05-18 13:17:57 Re: add server include files to default installation?