Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66fbea5

Browse files
committed
Don't set BootstrapProcessingMode in AddNewRelationTuple() before
heap_insert() any more. No reasons to do it, and old commentssaid about this.
1 parent56ba75c commit66fbea5

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

‎src/backend/catalog/heap.c

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* 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 $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -642,7 +642,6 @@ AddNewRelationTuple(Relation pg_class_desc,
642642
Form_pg_classnew_rel_reltup;
643643
HeapTupletup;
644644
Relationidescs[Num_pg_class_indices];
645-
boolisBootstrap;
646645

647646
/* ----------------
648647
*first we munge some of the information in our
@@ -689,36 +688,23 @@ AddNewRelationTuple(Relation pg_class_desc,
689688
(char*)new_rel_reltup);
690689
tup->t_data->t_oid=new_rel_oid;
691690

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.
699693
*/
700-
isBootstrap=IsBootstrapProcessingMode() ? true : false;
701-
702-
SetProcessingMode(BootstrapProcessing);
703-
704694
heap_insert(pg_class_desc,tup);
705695

706696
if (temp_relname)
707697
create_temp_relation(temp_relname,tup);
708698

709-
if (!isBootstrap)
699+
if (!IsBootstrapProcessingMode())
710700
{
711-
712701
/*
713702
* First, open the catalog indices and insert index tuples for the
714703
* new relation.
715704
*/
716-
717705
CatalogOpenIndices(Num_pg_class_indices,Name_pg_class_indices,idescs);
718706
CatalogIndexInsert(idescs,Num_pg_class_indices,pg_class_desc,tup);
719707
CatalogCloseIndices(Num_pg_class_indices,idescs);
720-
/* now restore processing mode */
721-
SetProcessingMode(NormalProcessing);
722708
}
723709

724710
pfree(tup);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp