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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: Jan Wieck <wieck(at)debis(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: System indexes are never unique indexes( was RE: [HACKERS] mdnblocksis
Date: 1999-10-27 01:24:57
Message-ID: 199910270124.VAA06770@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 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 ?

Sure.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 1999-10-27 09:45:49 RE: System indexes are never unique indexes( was RE: [HACKERS] mdnblocksis
Previous Message Hiroshi Inoue 1999-10-27 00:52:55 RE: System indexes are never unique indexes( was RE: [HACKERS] mdnblocksis