Commit fa42b200 authored by Robert Haas's avatar Robert Haas

Update comments overlooked by 2f5c9d9c.

Tomas Vondra
parent 7f311213
...@@ -1858,8 +1858,8 @@ index_update_stats(Relation rel, ...@@ -1858,8 +1858,8 @@ index_update_stats(Relation rel,
* 1. In bootstrap mode, we have no choice --- UPDATE wouldn't work. * 1. In bootstrap mode, we have no choice --- UPDATE wouldn't work.
* *
* 2. We could be reindexing pg_class itself, in which case we can't move * 2. We could be reindexing pg_class itself, in which case we can't move
* its pg_class row because CatalogUpdateIndexes might not know about all * its pg_class row because CatalogTupleInsert/CatalogTupleUpdate might
* the indexes yet (see reindex_relation). * not know about all the indexes yet (see reindex_relation).
* *
* 3. Because we execute CREATE INDEX with just share lock on the parent * 3. Because we execute CREATE INDEX with just share lock on the parent
* rel (to allow concurrent index creations), an ordinary update could * rel (to allow concurrent index creations), an ordinary update could
...@@ -3542,9 +3542,9 @@ reindex_relation(Oid relid, int flags, int options) ...@@ -3542,9 +3542,9 @@ reindex_relation(Oid relid, int flags, int options)
* that the updates do not try to insert index entries into indexes we * that the updates do not try to insert index entries into indexes we
* have not processed yet. (When we are trying to recover from corrupted * have not processed yet. (When we are trying to recover from corrupted
* indexes, that could easily cause a crash.) We can accomplish this * indexes, that could easily cause a crash.) We can accomplish this
* because CatalogUpdateIndexes will use the relcache's index list to know * because CatalogTupleInsert/CatalogTupleUpdate will use the relcache's
* which indexes to update. We just force the index list to be only the * index list to know which indexes to update. We just force the index
* stuff we've processed. * list to be only the stuff we've processed.
* *
* It is okay to not insert entries into the indexes we have not processed * It is okay to not insert entries into the indexes we have not processed
* yet because all of this is transaction-safe. If we fail partway * yet because all of this is transaction-safe. If we fail partway
......
...@@ -100,10 +100,8 @@ ...@@ -100,10 +100,8 @@
adding/deleting caches only requires a recompile.) adding/deleting caches only requires a recompile.)
Finally, any place your relation gets heap_insert() or Finally, any place your relation gets heap_insert() or
heap_update() calls, make sure there is a CatalogUpdateIndexes() or heap_update() calls, use CatalogTupleInsert() or CatalogTupleUpdate()
similar call. The heap_* calls do not update indexes. instead, which also update indexes. The heap_* calls do not do that.
bjm 1999/11/22
*--------------------------------------------------------------------------- *---------------------------------------------------------------------------
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment