diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-11-24 00:44:37 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-11-24 00:44:37 +0000 |
commit | bb10bf319eb301cdb5d11a5fb1709348754ac6b3 (patch) | |
tree | 830a88642fbc598f9901d8464a582ef0f9335e20 /src/backend/commands | |
parent | 6f9ff92cc0ff6a07d2fe38abe044286ee98d44a0 (diff) | |
download | postgresql-bb10bf319eb301cdb5d11a5fb1709348754ac6b3.tar.gz postgresql-bb10bf319eb301cdb5d11a5fb1709348754ac6b3.zip |
Rename heap_replace to heap_update.
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/async.c | 6 | ||||
-rw-r--r-- | src/backend/commands/command.c | 4 | ||||
-rw-r--r-- | src/backend/commands/comment.c | 4 | ||||
-rw-r--r-- | src/backend/commands/rename.c | 6 | ||||
-rw-r--r-- | src/backend/commands/trigger.c | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index cc1b9517b60..2267a2415e7 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -6,7 +6,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.55 1999/11/22 17:55:59 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.56 1999/11/24 00:44:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -509,7 +509,7 @@ AtCommit_Notify() { rTuple = heap_modifytuple(lTuple, lRel, value, nulls, repl); - heap_replace(lRel, &lTuple->t_self, rTuple, NULL); + heap_update(lRel, &lTuple->t_self, rTuple, NULL); if (RelationGetForm(lRel)->relhasindex) { Relation idescs[Num_pg_listener_indices]; @@ -775,7 +775,7 @@ ProcessIncomingNotify(void) NotifyMyFrontEnd(relname, sourcePID); /* Rewrite the tuple with 0 in notification column */ rTuple = heap_modifytuple(lTuple, lRel, value, nulls, repl); - heap_replace(lRel, &lTuple->t_self, rTuple, NULL); + heap_update(lRel, &lTuple->t_self, rTuple, NULL); if (RelationGetForm(lRel)->relhasindex) { Relation idescs[Num_pg_listener_indices]; diff --git a/src/backend/commands/command.c b/src/backend/commands/command.c index 1746eefbe3e..84e9331abe7 100644 --- a/src/backend/commands/command.c +++ b/src/backend/commands/command.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.57 1999/11/22 17:56:00 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.58 1999/11/24 00:44:30 momjian Exp $ * * NOTES * The PortalExecutorHeapMemory crap needs to be eliminated @@ -474,7 +474,7 @@ PerformAddAttribute(char *relationName, heap_close(attrdesc, RowExclusiveLock); ((Form_pg_class) GETSTRUCT(reltup))->relnatts = maxatts; - heap_replace(rel, &reltup->t_self, reltup, NULL); + heap_update(rel, &reltup->t_self, reltup, NULL); /* keep catalog indices current */ CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, ridescs); diff --git a/src/backend/commands/comment.c b/src/backend/commands/comment.c index e7419252b7c..4d58eb3ccc1 100644 --- a/src/backend/commands/comment.c +++ b/src/backend/commands/comment.c @@ -157,7 +157,7 @@ void CreateComments(Oid oid, char *comment) { if (HeapTupleIsValid(searchtuple)) { - /*** If the comment is blank, call heap_delete, else heap_replace ***/ + /*** If the comment is blank, call heap_delete, else heap_update ***/ if ((comment == NULL) || (strlen(comment) == 0)) { heap_delete(description, &searchtuple->t_self, NULL); @@ -165,7 +165,7 @@ void CreateComments(Oid oid, char *comment) { desctuple = heap_modifytuple(searchtuple, description, values, nulls, replaces); setheapoverride(true); - heap_replace(description, &searchtuple->t_self, desctuple, NULL); + heap_update(description, &searchtuple->t_self, desctuple, NULL); setheapoverride(false); modified = TRUE; } diff --git a/src/backend/commands/rename.c b/src/backend/commands/rename.c index 85a49e59f3d..288c9404c12 100644 --- a/src/backend/commands/rename.c +++ b/src/backend/commands/rename.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.35 1999/11/07 23:08:02 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.36 1999/11/24 00:44:30 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -156,7 +156,7 @@ renameatt(char *relname, StrNCpy(NameStr(((Form_pg_attribute) GETSTRUCT(oldatttup))->attname), newattname, NAMEDATALEN); - heap_replace(attrelation, &oldatttup->t_self, oldatttup, NULL); + heap_update(attrelation, &oldatttup->t_self, oldatttup, NULL); /* keep system catalog indices current */ CatalogOpenIndices(Num_pg_attr_indices, Name_pg_attr_indices, irelations); @@ -291,7 +291,7 @@ renamerel(char *oldrelname, char *newrelname) StrNCpy(NameStr(((Form_pg_class) GETSTRUCT(oldreltup))->relname), newrelname, NAMEDATALEN); - heap_replace(relrelation, &oldreltup->t_self, oldreltup, NULL); + heap_update(relrelation, &oldreltup->t_self, oldreltup, NULL); /* keep the system catalog indices current */ CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, irelations); diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 93ae9ba36aa..9d23f255e59 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -250,7 +250,7 @@ CreateTrigger(CreateTrigStmt *stmt) ((Form_pg_class) GETSTRUCT(tuple))->reltriggers = found + 1; RelationInvalidateHeapTuple(pgrel, tuple); - heap_replace(pgrel, &tuple->t_self, tuple, NULL); + heap_update(pgrel, &tuple->t_self, tuple, NULL); CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, ridescs); CatalogIndexInsert(ridescs, Num_pg_class_indices, pgrel, tuple); CatalogCloseIndices(Num_pg_class_indices, ridescs); @@ -329,7 +329,7 @@ DropTrigger(DropTrigStmt *stmt) ((Form_pg_class) GETSTRUCT(tuple))->reltriggers = found; RelationInvalidateHeapTuple(pgrel, tuple); - heap_replace(pgrel, &tuple->t_self, tuple, NULL); + heap_update(pgrel, &tuple->t_self, tuple, NULL); CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, ridescs); CatalogIndexInsert(ridescs, Num_pg_class_indices, pgrel, tuple); CatalogCloseIndices(Num_pg_class_indices, ridescs); |