|
2 | 2 | TODO list for PostgreSQL
|
3 | 3 | ========================
|
4 | 4 | Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
5 |
| -Last updated: Wed Jan 19 09:17:41 EST 2005 |
| 5 | +Last updated: Sat Jan 22 15:05:08 EST 2005 |
6 | 6 |
|
7 | 7 | The most recent version of this document can be viewed at the PostgreSQL web
|
8 | 8 | site, http://www.PostgreSQL.org.
|
@@ -246,7 +246,7 @@ Indexes
|
246 | 246 | * Use indexes for MIN() and MAX()
|
247 | 247 |
|
248 | 248 | MIN/MAX queries can already be rewritten as SELECT col FROM tab ORDER
|
249 |
| - BY col {DESC} LIMIT 1. Completing this item involves making this |
| 249 | + BY col {DESC} LIMIT 1. Completing this item involves doing this |
250 | 250 | transformation automatically.
|
251 | 251 |
|
252 | 252 | * Use index to restrict rows returned by multi-key index when used with
|
@@ -684,8 +684,20 @@ Cache
|
684 | 684 |
|
685 | 685 | We could use a fixed row count and a +/- count to follow MVCC
|
686 | 686 | visibility rules, or a single cached value could be used and
|
687 |
| - invalidated if anyone modifies the table. |
688 |
| - |
| 687 | + invalidated if anyone modifies the table. Another idea is to |
| 688 | + get a count directly from a unique index, but for this to be |
| 689 | + faster than a sequential scan it must avoid access to the heap |
| 690 | + to obtain tuple visibility information. |
| 691 | + |
| 692 | +* Allow data to be pulled directly from indexes |
| 693 | + |
| 694 | + Currently indexes do not have enough tuple tuple visibility |
| 695 | + information to allow data to be pulled from the index without |
| 696 | + also accessing the heap. One way to allow this is to set a bit |
| 697 | + to index tuples to indicate if a tuple is currently visible to |
| 698 | + all transactions when the first valid heap lookup happens. This |
| 699 | + bit would have to be cleared when a heap tuple is expired. |
| 700 | + |
689 | 701 | * Consider automatic caching of queries at various levels:
|
690 | 702 | o Parsed query tree
|
691 | 703 | o Query execute plan
|
|
0 commit comments