System indexes are never unique indexes( was RE: [HACKERS] mdnblocks is an amazing time sink in huge relations)

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: <pgsql-hackers(at)postgreSQL(dot)org>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <t-ishii(at)sra(dot)co(dot)jp>
Subject: System indexes are never unique indexes( was RE: [HACKERS] mdnblocks is an amazing time sink in huge relations)
Date: 1999-10-23 23:48:38
Message-ID: NDBBIJLOILGIKBGDINDFMEIBCAAA.Inoue@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> >
> > After a thought,I propose the following solution.
> >
> > 1. mdcreate() couldn't create existent relation files.
> > If the existent file is of length zero,we would overwrite
> > the file.(seems the comment in md.c says so but the
> > code doesn't do so).
> > If the file is an Index relation file,we would overwrite
> > the file.
> >
>
> This may allow to CREATE TABLE simultaneously for the
> same table name. I would change to check the existence

As I was afraid,2 tables of a same name could be made.
After a short investigating,I found that system indexes are
never unique indexes.
Why ?
Without duplicate index check,it's very difficult to prevent
objects from having same name.

Comments ?

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-10-23 23:52:29 Function-manager redesign: second draft (long)
Previous Message Tom Lane 1999-10-23 23:07:19 Re: [HACKERS] Neverending query on 6.5.2 over Solaris 2.5.1