Re: timeout implementation issues

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Jessica Perry Hekman <jphekman@dynamicdiagrams.com>, Hiroshi Inoue <Inoue@tpf.co.jp>, Jan Wieck <janwieck@yahoo.com>, Barry Lind <barry@xythos.com>, pgsql-hackers@postgresql.org
Date: 2002-04-07T02:14:36Z
Lists: pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> We do have on_shmem_exit and on_proc_exit function call queues.  Seems
> we will need SET to create a queue of function calls containing previous
> values of variables SEt in multi-statement transactions.  If we execute
> the queue in last-in-first-out order, the variables will be restored
> properly.

That's most certainly the hard way.  I was planning to just make GUC
save a spare copy of the start-of-transaction value of each variable.

			regards, tom lane