System cache index cleanup

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: System cache index cleanup
Date: 1999-11-22 17:59:25
Message-ID: 199911221759.MAA05297@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I have made most system indexes unique.

I have added indexes to match all system caches.

I have renamed some cache names to be clearer.

I have re-ordered the cache entries to be alphabetical.

I have renamed the inheritance *rel columns to be *relid.

I have added a large comment to syscache.c listing steps needed to
install a new system index.

I saw no speed improvement from my changes, but I can imagine cases
where this would be a speedup.

The only thing missing is that I can't seem to get pg_shadow to use an
index from the cache. When I try it, initdb runs really slow, and the
resulting installation is unusable. Any ideas anyone? You can see my
commented-out code in indexing.c and syscache.c. My guess is that the
strange way we issue pg_exec_query_dest() calls is the cause. I have no
call to CatalogIndexInsert() for the pg_shadow because of this. Anyone
want to rewrite user.c to use heap_insert() instead.

initdb required.

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-11-22 18:03:39 Re: TODO updates
Previous Message Bruce Momjian 1999-11-22 17:47:47 Re: AW: [HACKERS] Getting OID in psql of recent insert