Re: [HACKERS] Vacuum analyze bug CAUGHT - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Vacuum analyze bug CAUGHT
Date
Msg-id 37D8AA16.8F767392@krs.ru
Whole thread Raw
In response to RE: [HACKERS] Vacuum analyze bug CAUGHT  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses RE: [HACKERS] Vacuum analyze bug CAUGHT
List pgsql-hackers
Hiroshi Inoue wrote:
> 
> > crashtest=> vacuum analyze;
> > NOTICE:  Rel pg_type: TID 4/3: InsertTransactionInProgress 129915
> > - can't shrink relation
...
> 
> CREATE TABLE doesn't lock system tables till end of transaction.
> It's a cause of these NOTICE messages.
> 
> Should we lock system tables till end of transaction ?

No, if we allow DDL statements inside BEGIN/END
(in long transaction).

> Moreover CREATE TABLE doesn't acquire any lock for pg_attribute
>                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> while tuples are inserted into pg_attribute.
> Concurrent vacuum may corrupt pg_attribute.

Should be fixed!

Vadim


pgsql-hackers by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] Vacuum analyze bug CAUGHT
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] Vacuum analyze bug CAUGHT