RE: [HACKERS] [6.5.2] potentially major bug?

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "The Hermit Hacker" <scrappy(at)hub(dot)org>
Cc: <bright(at)ns1(dot)wintelcom(dot)net>, <pgsql-hackers(at)postgreSQL(dot)org>
Subject: RE: [HACKERS] [6.5.2] potentially major bug?
Date: 2000-01-28 07:49:29
Message-ID: 001001bf6964$351cf700$2801007e@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > >
> > > Hmmm,isn't there old transaction running somewhere ?
> >
> > not that we are aware of ... there is a daemon running that is
> doing COPY
> > INs to the table ... how does something like that deal with a
> > vacuum? Will the vacuum wait for the COPY IN to end and/or
> prevent a COPY
> > IN from starting?
> >
>
> If a transaction read/write the target table it would be blocked
> by vacuum.
> But vacuum couldn't know what tables other backends would read/write in
> their running transactions. In MVCC old transaction have to see
> old deleted
> tuples in SERIALIZABLE isolation level and so vacuum doesn't remove the
> tuples which old transactions may see.
>

For example,if you type

begin;
select .. from .. ;

and leave your seat,any vacuum won't be able to remove tuples
deleted after the 'select .. from ..'.

Regards.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris 2000-01-28 09:16:14 Is anoncvs broker
Previous Message Hiroshi Inoue 2000-01-28 07:05:18 RE: [SQL] RE: [GENERAL] Problem with SELECT on large negative INT4