RE: [HACKERS] MVCC works in serialized mode!

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Bruce Momjian" <maillist(at)candle(dot)pha(dot)pa(dot)us>, "PostgreSQL-development" <hackers(at)postgreSQL(dot)org>
Cc: <vadim(at)krs(dot)ru>
Subject: RE: [HACKERS] MVCC works in serialized mode!
Date: 1999-01-05 09:48:53
Message-ID: 001b01be3890$9ad8d420$2801007e@cadzone.tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Bruce Momjian [mailto:maillist(at)candle(dot)pha(dot)pa(dot)us]
> Sent: Wednesday, December 30, 1998 4:59 AM
> To: PostgreSQL-development
> Cc: Inoue(at)tpf(dot)co(dot)jp; vadim(at)krs(dot)ru
> Subject: Re: [HACKERS] MVCC works in serialized mode!
>
>
> > > No time this year.
> > > If necessary I will do it next year.
> > >
> > > Thanks.
> >
> > Yes. I need to know if the code change between setitimer and select()
> > causes the difference you are seeing.
>
> OK, I have re-coded that section. I had majorly broken it.
>
> As part of the fix, I changed the deadlock detection in include/config.h
> from 60 to 1. Remember, config.h is generated from config.h.in.
>
> Can you change it back to 60 to see that the timeout is working
> properly? The one-second default is not going to be noticable during
> testing.
>

I changed DEADLOCK_CHECK_TIMER in config.h to 60 and compiled.
Deadlock check takes about 60 seconds.
So timeout is set to 60 properly.

And the result is as follows.

create table t1 (key int,a int);
insert into t1 values (1,1);

Session-1 Session-2

begin; begin;
BEGIN BEGIN
update t1 set a=1;
UPDATE 1
update t1 set a=1;
[ update is blocked ]
abort;
ABORT
[ immediately ]
UPDATE 1

It's OK.

Thanks a lot.

Hiroshi Inoue
Inoue(at)tpf(dot)co(dot)jp

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1999-01-05 10:17:39 Re: NaN format
Previous Message Angelos Karageorgiou 1999-01-05 09:14:14 Re: [HACKERS] Still having trouble importing 6.3 DB