Skip site navigation (1) Skip section navigation (2)

RE: System indexes are never unique indexes( was RE: [HACKERS] mdnblocksis

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Bruce Momjian" <maillist(at)candle(dot)pha(dot)pa(dot)us>, "Jan Wieck" <wieck(at)debis(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: System indexes are never unique indexes( was RE: [HACKERS] mdnblocksis
Date: 1999-10-27 00:52:55
Message-ID: 000201bf2015$9ae0f7a0$2801007e@cadzone.tpf.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackers
>
> > > Not sure.  I don't remember which ones.  I can take a look when I add
> > > more indexes for 7.0.
> >
> >     Don't  remember  if  really  or  what,  but wasn't there some
> >     problem with cached  system  relations,  unique  indices  and
> >     concurrency?
> >
>
> I don't remember anything about that.
>

I don't know old PostgreSQL at all.
Only one thing I could suppose is the following.

Before MVCC it was unnecessary to read dirty(uncommited) tuples
to check uniqueness because a table level exclusive lock was acquired
automatically. As for user tuples,the consistency was perserved because
the lock was held until transaction end.  As for system tuples,the
consistency
could be broken if the lock was a short term lock.

After MVCC,dirty(uncommitted) tuples are taken into account to check
uniqueness and  any lock is no longer needed.

AFAIK,there are no other means to check(lock ?)  (logically) non-existent
rows now(Referencial Integrity would provide the second one).
So probably PostgreSQL couldn't guarantee the uniquness of system
tuples in many cases.

Anyway,I want to change the implementation of mdcreate() to reuse
existent files but the uniqueness of table name is preserved by the
current implementation narrowly.

First of all,I would change pg_type,pg_class.
It's OK ?

Regards.

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


In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1999-10-27 01:24:57
Subject: Re: System indexes are never unique indexes( was RE: [HACKERS] mdnblocksis
Previous:From: Tim HollowayDate: 1999-10-26 23:33:44
Subject: Re: [HACKERS] Logging - pg_options format change?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group