aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>1999-10-06 03:08:46 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>1999-10-06 03:08:46 +0000
commit66fbea5041fae7c0bc4fff5ad77a21169a7ba7e7 (patch)
tree530ac7532ef33963507b431a041cbc6ab3a40311 /src
parent56ba75cb5394f2643505ac332f8b4e31a9c4ad7e (diff)
downloadpostgresql-66fbea5041fae7c0bc4fff5ad77a21169a7ba7e7.tar.gz
postgresql-66fbea5041fae7c0bc4fff5ad77a21169a7ba7e7.zip
Don't set BootstrapProcessingMode in AddNewRelationTuple() before
heap_insert() any more. No reasons to do it, and old comments said about this.
Diffstat (limited to 'src')
-rw-r--r--src/backend/catalog/heap.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c
index e5eec36219f..9946a8eff0c 100644
--- a/src/backend/catalog/heap.c
+++ b/src/backend/catalog/heap.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.101 1999/10/04 02:12:26 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.102 1999/10/06 03:08:46 vadim Exp $
*
*
* INTERFACE ROUTINES
@@ -642,7 +642,6 @@ AddNewRelationTuple(Relation pg_class_desc,
Form_pg_class new_rel_reltup;
HeapTuple tup;
Relation idescs[Num_pg_class_indices];
- bool isBootstrap;
/* ----------------
* first we munge some of the information in our
@@ -689,36 +688,23 @@ AddNewRelationTuple(Relation pg_class_desc,
(char *) new_rel_reltup);
tup->t_data->t_oid = new_rel_oid;
- /* ----------------
- * finally insert the new tuple and free it.
- *
- * Note: I have no idea why we do a
- * SetProcessingMode(BootstrapProcessing);
- * here -cim 6/14/90
- * ----------------
+ /*
+ * finally insert the new tuple and free it.
*/
- isBootstrap = IsBootstrapProcessingMode() ? true : false;
-
- SetProcessingMode(BootstrapProcessing);
-
heap_insert(pg_class_desc, tup);
if (temp_relname)
create_temp_relation(temp_relname, tup);
- if (!isBootstrap)
+ if (!IsBootstrapProcessingMode())
{
-
/*
* First, open the catalog indices and insert index tuples for the
* new relation.
*/
-
CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, idescs);
CatalogIndexInsert(idescs, Num_pg_class_indices, pg_class_desc, tup);
CatalogCloseIndices(Num_pg_class_indices, idescs);
- /* now restore processing mode */
- SetProcessingMode(NormalProcessing);
}
pfree(tup);