|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.101 1999/10/04 02:12:26 tgl Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.102 1999/10/06 03:08:46 vadim Exp $ |
11 | 11 | * |
12 | 12 | * |
13 | 13 | * INTERFACE ROUTINES |
@@ -642,7 +642,6 @@ AddNewRelationTuple(Relation pg_class_desc, |
642 | 642 | Form_pg_classnew_rel_reltup; |
643 | 643 | HeapTupletup; |
644 | 644 | Relationidescs[Num_pg_class_indices]; |
645 | | -boolisBootstrap; |
646 | 645 |
|
647 | 646 | /* ---------------- |
648 | 647 | *first we munge some of the information in our |
@@ -689,36 +688,23 @@ AddNewRelationTuple(Relation pg_class_desc, |
689 | 688 | (char*)new_rel_reltup); |
690 | 689 | tup->t_data->t_oid=new_rel_oid; |
691 | 690 |
|
692 | | -/* ---------------- |
693 | | - *finally insert the new tuple and free it. |
694 | | - * |
695 | | - *Note: I have no idea why we do a |
696 | | - *SetProcessingMode(BootstrapProcessing); |
697 | | - * here -cim 6/14/90 |
698 | | - * ---------------- |
| 691 | +/* |
| 692 | + * finally insert the new tuple and free it. |
699 | 693 | */ |
700 | | -isBootstrap=IsBootstrapProcessingMode() ? true : false; |
701 | | - |
702 | | -SetProcessingMode(BootstrapProcessing); |
703 | | - |
704 | 694 | heap_insert(pg_class_desc,tup); |
705 | 695 |
|
706 | 696 | if (temp_relname) |
707 | 697 | create_temp_relation(temp_relname,tup); |
708 | 698 |
|
709 | | -if (!isBootstrap) |
| 699 | +if (!IsBootstrapProcessingMode()) |
710 | 700 | { |
711 | | - |
712 | 701 | /* |
713 | 702 | * First, open the catalog indices and insert index tuples for the |
714 | 703 | * new relation. |
715 | 704 | */ |
716 | | - |
717 | 705 | CatalogOpenIndices(Num_pg_class_indices,Name_pg_class_indices,idescs); |
718 | 706 | CatalogIndexInsert(idescs,Num_pg_class_indices,pg_class_desc,tup); |
719 | 707 | CatalogCloseIndices(Num_pg_class_indices,idescs); |
720 | | -/* now restore processing mode */ |
721 | | -SetProcessingMode(NormalProcessing); |
722 | 708 | } |
723 | 709 |
|
724 | 710 | pfree(tup); |
|