1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Rename several destroy* functions/tags to drop*.

This commit is contained in:
Bruce Momjian
1999-12-10 03:56:14 +00:00
parent f6baabcd0b
commit 97dec77fab
36 changed files with 133 additions and 133 deletions

View File

@ -14,7 +14,7 @@
* ExecInitTee
* ExecEndTee
*
* $Id: nodeTee.c,v 1.5 1999/07/16 04:58:54 momjian Exp $
* $Id: nodeTee.c,v 1.6 1999/12/10 03:55:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -470,7 +470,7 @@ ExecEndTee(Tee * node, Plan *parent)
bufferRel = teeState->tee_bufferRel;
if (bufferRel)
{
heap_destroy(bufferRel);
heap_drop(bufferRel);
teeState->tee_bufferRel = NULL;
if (teeState->tee_mcxt)
{

View File

@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.101 1999/11/24 00:44:31 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.102 1999/12/10 03:55:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -778,7 +778,7 @@ EndPlan(Plan *plan, EState *estate)
{
TupleTable tupleTable = (TupleTable) estate->es_tupleTable;
ExecDestroyTupleTable(tupleTable, true);
ExecDropTupleTable(tupleTable, true);
estate->es_tupleTable = NULL;
}

View File

@ -14,7 +14,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.32 1999/11/23 20:06:51 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.33 1999/12/10 03:55:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -23,7 +23,7 @@
*
* TABLE CREATE/DELETE
* ExecCreateTupleTable - create a new tuple table
* ExecDestroyTupleTable - destroy a table
* ExecDropTupleTable - destroy a table
*
* SLOT RESERVERATION
* ExecAllocTableSlot - find an available slot in the table
@ -84,7 +84,7 @@
*
* At ExecEnd()
* ----------------
* - EndPlan() calls ExecDestroyTupleTable() to clean up any remaining
* - EndPlan() calls ExecDropTupleTable() to clean up any remaining
* tuples left over from executing the query.
*
* The important thing to watch in the executor code is how pointers
@ -178,7 +178,7 @@ ExecCreateTupleTable(int initialSize) /* initial number of slots in
}
/* --------------------------------
* ExecDestroyTupleTable
* ExecDropTupleTable
*
* This pfrees the storage assigned to the tuple table and
* optionally pfrees the contents of the table also.
@ -186,7 +186,7 @@ ExecCreateTupleTable(int initialSize) /* initial number of slots in
* --------------------------------
*/
void
ExecDestroyTupleTable(TupleTable table, /* tuple table */
ExecDropTupleTable(TupleTable table, /* tuple table */
bool shouldFree) /* true if we should free slot
* contents */
{

View File

@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: nodeHash.c,v 1.39 1999/10/13 15:02:25 tgl Exp $
* $Id: nodeHash.c,v 1.40 1999/12/10 03:55:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -439,7 +439,7 @@ ExecHashTableDestroy(HashJoinTable hashtable)
/* Destroy the portal to release all working memory */
/* cast here is a kluge for circular includes... */
PortalDestroy((Portal *) &hashtable->myPortal);
PortalDrop((Portal *) &hashtable->myPortal);
/* And drop the control block */
pfree(hashtable);

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.26 1999/09/24 00:24:23 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.27 1999/12/10 03:55:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -311,7 +311,7 @@ ExecEndMaterial(Material *node)
matstate = node->matstate;
tempRelation = matstate->mat_TempRelation;
heap_destroy(tempRelation);
heap_drop(tempRelation);
/* ----------------
* close the temp relation and shut down the scan.

View File

@ -3,7 +3,7 @@
* spi.c
* Server Programming Interface
*
* $Id: spi.c,v 1.42 1999/11/22 17:56:05 momjian Exp $
* $Id: spi.c,v 1.43 1999/12/10 03:55:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -127,7 +127,7 @@ SPI_finish()
/* Restore memory context as it was before procedure call */
MemoryContextSwitchTo(_SPI_current->savedcxt);
PortalDestroy(&(_SPI_current->portal));
PortalDrop(&(_SPI_current->portal));
SetScanCommandId(_SPI_current->savedId);