Skip to content
Snippets Groups Projects
Commit fb645f64 authored by Heikki Linnakangas's avatar Heikki Linnakangas
Browse files

Fix obsolete comment regarding FSM truncation.

parent 4d6ee261
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.345 2008/11/19 10:34:51 heikki Exp $ * $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.346 2008/11/27 15:59:28 heikki Exp $
* *
* *
* INTERFACE ROUTINES * INTERFACE ROUTINES
...@@ -2276,9 +2276,7 @@ RelationTruncateIndexes(Relation heapRelation) ...@@ -2276,9 +2276,7 @@ RelationTruncateIndexes(Relation heapRelation)
indexInfo = BuildIndexInfo(currentIndex); indexInfo = BuildIndexInfo(currentIndex);
/* /*
* Now truncate the actual file (and discard buffers). The indexam * Now truncate the actual file (and discard buffers).
* is responsible for truncating the FSM in index_build(), if
* applicable.
*/ */
RelationTruncate(currentIndex, 0); RelationTruncate(currentIndex, 0);
...@@ -2333,7 +2331,7 @@ heap_truncate(List *relids) ...@@ -2333,7 +2331,7 @@ heap_truncate(List *relids)
{ {
Relation rel = lfirst(cell); Relation rel = lfirst(cell);
/* Truncate the FSM and actual file (and discard buffers) */ /* Truncate the actual file (and discard buffers) */
RelationTruncate(rel, 0); RelationTruncate(rel, 0);
/* If this relation has indexes, truncate the indexes too */ /* If this relation has indexes, truncate the indexes too */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment