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

From Hiroshi Inoue
Subject System indexes are never unique indexes( was RE: [HACKERS] mdnblocks is an amazing time sink in huge relations)
Date
Msg-id NDBBIJLOILGIKBGDINDFMEIBCAAA.Inoue@tpf.co.jp
Whole thread Raw
In response to RE: [HACKERS] mdnblocks is an amazing time sink in huge relations  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses Re: System indexes are never unique indexes( was RE: [HACKERS] mdnblocks is an amazing time sink in huge relations)  (Bruce Momjian <maillist@candle.pha.pa.us>)
List 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@tpf.co.jp



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Neverending query on 6.5.2 over Solaris 2.5.1
Next
From: Tom Lane
Date:
Subject: Function-manager redesign: second draft (long)