Re: function for setting/getting same timestamp during whole transaction - Mailing list pgsql-hackers

From Miroslav Šimulčík
Subject Re: function for setting/getting same timestamp during whole transaction
Date
Msg-id CAHRNM68ifYbX8Ef4L9ueMwOEdFgekKTjO4-QEqdVV00jia6YoA@mail.gmail.com
Whole thread Raw
In response to Re: function for setting/getting same timestamp during whole transaction  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers

I might be confused here, but I think the point is that if you pass
"true" as the third argument to set_config, the setting lasts only for
the duration of the current transaction, like SET LOCAL.  Which I
think solves your problem.

Yes, but at the end of transaction it is reset to the value it has before transaction (session level value), which can be nonempty. I wrote example about this problem lately in this thread.

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: performance regression in 9.2 CTE with SRF function
Next
From: Simon Riggs
Date:
Subject: Re: Considering Gerrit for CFs