From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Use of system indexes |
Date: | 2000-06-07 04:11:37 |
Message-ID: | 200006070411.AAA10231@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I am looking at how the system indexes are used.
In the past, I went through and changed all system table lookups that
return a single value into system cache lookups.
I now see several cases where we are doing heap scans of system tables,
rather than using indexes. There are cases that can return several
rows, so we can't use the cache. However, we could use index scans
rather than heap scans.
An interesting case is the pg_listener index in commands/async.c. Our
previous index was by relname/pid. By changing this index to
pid/relname, I can add index scans based in pid to prevent the many heap
scans in the file. I am sure there are other places that can be
improved.
I can start fixing them, but as I remember, someone was thinking of
making heap/index scans use the same interface. Can I get a status on
that?
--
Bruce Momjian | http://www.op.net/~candle
pgman(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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-06-07 04:23:50 | Look at heap_beginscan() |
Previous Message | Lamar Owen | 2000-06-07 02:13:31 | Re: Odd release numbers for development versions? |