mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Change my-function-name-- to my_function_name, and optimizer renames.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* aset.c--
|
||||
* aset.c
|
||||
* Allocation set definitions.
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.13 1999/02/07 13:37:56 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.14 1999/02/13 23:20:09 momjian Exp $
|
||||
*
|
||||
* NOTE:
|
||||
* This is a new (Feb. 05, 1999) implementation of the allocation set
|
||||
@@ -88,7 +88,7 @@ AllocSetFreeIndex(Size size)
|
||||
*/
|
||||
|
||||
/*
|
||||
* AllocSetInit --
|
||||
* AllocSetInit
|
||||
* Initializes given allocation set.
|
||||
*
|
||||
* Note:
|
||||
@@ -116,7 +116,7 @@ AllocSetInit(AllocSet set, AllocMode mode, Size limit)
|
||||
|
||||
|
||||
/*
|
||||
* AllocSetReset --
|
||||
* AllocSetReset
|
||||
* Frees memory which is allocated in the given set.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -141,7 +141,7 @@ AllocSetReset(AllocSet set)
|
||||
}
|
||||
|
||||
/*
|
||||
* AllocSetContains --
|
||||
* AllocSetContains
|
||||
* True iff allocation set contains given allocation element.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -158,7 +158,7 @@ AllocSetContains(AllocSet set, AllocPointer pointer)
|
||||
}
|
||||
|
||||
/*
|
||||
* AllocSetAlloc --
|
||||
* AllocSetAlloc
|
||||
* Returns pointer to allocated memory of given size; memory is added
|
||||
* to the set.
|
||||
*
|
||||
@@ -273,7 +273,7 @@ AllocSetAlloc(AllocSet set, Size size)
|
||||
}
|
||||
|
||||
/*
|
||||
* AllocSetFree --
|
||||
* AllocSetFree
|
||||
* Frees allocated memory; memory is removed from the set.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -299,7 +299,7 @@ AllocSetFree(AllocSet set, AllocPointer pointer)
|
||||
}
|
||||
|
||||
/*
|
||||
* AllocSetRealloc --
|
||||
* AllocSetRealloc
|
||||
* Returns new pointer to allocated memory of given size; this memory
|
||||
* is added to the set. Memory associated with given pointer is copied
|
||||
* into the new memory, and the old memory is freed.
|
||||
@@ -342,7 +342,7 @@ AllocSetRealloc(AllocSet set, AllocPointer pointer, Size size)
|
||||
}
|
||||
|
||||
/*
|
||||
* AllocSetDump --
|
||||
* AllocSetDump
|
||||
* Displays allocated set.
|
||||
*/
|
||||
void
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* mcxt.c--
|
||||
* mcxt.c
|
||||
* POSTGRES memory context code.
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/mcxt.c,v 1.11 1999/02/06 16:50:26 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/mcxt.c,v 1.12 1999/02/13 23:20:10 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -54,7 +54,7 @@ static OrderedSetData ActiveGlobalMemorySetData; /* uninitialized */
|
||||
#define PSIZESPACE(LEN) ((LEN) + sizeof (int32))
|
||||
|
||||
/*
|
||||
* AllocSizeIsValid --
|
||||
* AllocSizeIsValid
|
||||
* True iff 0 < size and size <= MaxAllocSize.
|
||||
*/
|
||||
#define AllocSizeIsValid(size) (0 < (size) && (size) <= MaxAllocSize)
|
||||
@@ -64,7 +64,7 @@ static OrderedSetData ActiveGlobalMemorySetData; /* uninitialized */
|
||||
*****************************************************************************/
|
||||
|
||||
/*
|
||||
* CurrentMemoryContext --
|
||||
* CurrentMemoryContext
|
||||
* Memory context for general global allocations.
|
||||
*/
|
||||
MemoryContext CurrentMemoryContext = NULL;
|
||||
@@ -113,7 +113,7 @@ static struct GlobalMemoryData TopGlobalMemoryData = {
|
||||
};
|
||||
|
||||
/*
|
||||
* TopMemoryContext --
|
||||
* TopMemoryContext
|
||||
* Memory context for general global allocations.
|
||||
*
|
||||
* Note:
|
||||
@@ -131,7 +131,7 @@ MemoryContext TopMemoryContext = (MemoryContext) &TopGlobalMemoryData;
|
||||
*/
|
||||
|
||||
/*
|
||||
* EnableMemoryContext --
|
||||
* EnableMemoryContext
|
||||
* Enables/disables memory management and global contexts.
|
||||
*
|
||||
* Note:
|
||||
@@ -207,7 +207,7 @@ EnableMemoryContext(bool on)
|
||||
}
|
||||
|
||||
/*
|
||||
* MemoryContextAlloc --
|
||||
* MemoryContextAlloc
|
||||
* Returns pointer to aligned allocated memory in the given context.
|
||||
*
|
||||
* Note:
|
||||
@@ -231,7 +231,7 @@ MemoryContextAlloc(MemoryContext context, Size size)
|
||||
}
|
||||
|
||||
/*
|
||||
* MemoryContextFree --
|
||||
* MemoryContextFree
|
||||
* Frees allocated memory referenced by pointer in the given context.
|
||||
*
|
||||
* Note:
|
||||
@@ -252,7 +252,7 @@ MemoryContextFree(MemoryContext context, Pointer pointer)
|
||||
}
|
||||
|
||||
/*
|
||||
* MemoryContextRelloc --
|
||||
* MemoryContextRelloc
|
||||
* Returns pointer to aligned allocated memory in the given context.
|
||||
*
|
||||
* Note:
|
||||
@@ -278,7 +278,7 @@ MemoryContextRealloc(MemoryContext context,
|
||||
}
|
||||
|
||||
/*
|
||||
* MemoryContextGetName --
|
||||
* MemoryContextGetName
|
||||
* Returns pointer to aligned allocated memory in the given context.
|
||||
*
|
||||
* Note:
|
||||
@@ -301,7 +301,7 @@ MemoryContextGetName(MemoryContext context)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* PointerGetAllocSize --
|
||||
* PointerGetAllocSize
|
||||
* Returns size of aligned allocated memory given pointer to it.
|
||||
*
|
||||
* Note:
|
||||
@@ -324,7 +324,7 @@ PointerGetAllocSize(Pointer pointer)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* MemoryContextSwitchTo --
|
||||
* MemoryContextSwitchTo
|
||||
* Returns the current context; installs the given context.
|
||||
*
|
||||
* Note:
|
||||
@@ -351,7 +351,7 @@ MemoryContextSwitchTo(MemoryContext context)
|
||||
* External Functions
|
||||
*/
|
||||
/*
|
||||
* CreateGlobalMemory --
|
||||
* CreateGlobalMemory
|
||||
* Returns new global memory context.
|
||||
*
|
||||
* Note:
|
||||
@@ -385,7 +385,7 @@ CreateGlobalMemory(char *name) /* XXX MemoryContextName */
|
||||
}
|
||||
|
||||
/*
|
||||
* GlobalMemoryDestroy --
|
||||
* GlobalMemoryDestroy
|
||||
* Destroys given global memory context.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -413,7 +413,7 @@ GlobalMemoryDestroy(GlobalMemory context)
|
||||
*****************************************************************************/
|
||||
|
||||
/*
|
||||
* GlobalMemoryAlloc --
|
||||
* GlobalMemoryAlloc
|
||||
* Returns pointer to aligned space in the global context.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -426,7 +426,7 @@ GlobalMemoryAlloc(GlobalMemory this, Size size)
|
||||
}
|
||||
|
||||
/*
|
||||
* GlobalMemoryFree --
|
||||
* GlobalMemoryFree
|
||||
* Frees allocated memory in the global context.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -441,7 +441,7 @@ GlobalMemoryFree(GlobalMemory this,
|
||||
}
|
||||
|
||||
/*
|
||||
* GlobalMemoryRealloc --
|
||||
* GlobalMemoryRealloc
|
||||
* Returns pointer to aligned space in the global context.
|
||||
*
|
||||
* Note:
|
||||
@@ -461,7 +461,7 @@ GlobalMemoryRealloc(GlobalMemory this,
|
||||
}
|
||||
|
||||
/*
|
||||
* GlobalMemoryGetName --
|
||||
* GlobalMemoryGetName
|
||||
* Returns name string for context.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -474,7 +474,7 @@ GlobalMemoryGetName(GlobalMemory this)
|
||||
}
|
||||
|
||||
/*
|
||||
* GlobalMemoryDump --
|
||||
* GlobalMemoryDump
|
||||
* Dumps global memory context for debugging.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -499,7 +499,7 @@ GlobalMemoryDump(GlobalMemory this)
|
||||
}
|
||||
|
||||
/*
|
||||
* DumpGlobalMemories --
|
||||
* DumpGlobalMemories
|
||||
* Dumps all global memory contexts for debugging.
|
||||
*
|
||||
* Exceptions:
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* oset.c--
|
||||
* oset.c
|
||||
* Fixed format ordered set definitions.
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.10 1999/01/17 03:04:53 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.11 1999/02/13 23:20:10 momjian Exp $
|
||||
*
|
||||
* NOTE
|
||||
* XXX This is a preliminary implementation which lacks fail-fast
|
||||
@@ -24,7 +24,7 @@ static void OrderedElemPush(OrderedElem elem);
|
||||
static void OrderedElemPushHead(OrderedElem elem);
|
||||
|
||||
/*
|
||||
* OrderedElemGetBase --
|
||||
* OrderedElemGetBase
|
||||
* Returns base of enclosing structure.
|
||||
*/
|
||||
static Pointer
|
||||
@@ -37,7 +37,7 @@ OrderedElemGetBase(OrderedElem elem)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedSetInit --
|
||||
* OrderedSetInit
|
||||
*/
|
||||
void
|
||||
OrderedSetInit(OrderedSet set, Offset offset)
|
||||
@@ -49,7 +49,7 @@ OrderedSetInit(OrderedSet set, Offset offset)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedSetContains --
|
||||
* OrderedSetContains
|
||||
* True iff ordered set contains given element.
|
||||
*/
|
||||
bool
|
||||
@@ -59,7 +59,7 @@ OrderedSetContains(OrderedSet set, OrderedElem elem)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedSetGetHead --
|
||||
* OrderedSetGetHead
|
||||
*/
|
||||
Pointer
|
||||
OrderedSetGetHead(OrderedSet set)
|
||||
@@ -73,7 +73,7 @@ OrderedSetGetHead(OrderedSet set)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedSetGetTail --
|
||||
* OrderedSetGetTail
|
||||
*/
|
||||
#ifdef NOT_USED
|
||||
Pointer
|
||||
@@ -90,7 +90,7 @@ OrderedSetGetTail(OrderedSet set)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* OrderedElemGetPredecessor --
|
||||
* OrderedElemGetPredecessor
|
||||
*/
|
||||
Pointer
|
||||
OrderedElemGetPredecessor(OrderedElem elem)
|
||||
@@ -102,7 +102,7 @@ OrderedElemGetPredecessor(OrderedElem elem)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedElemGetSuccessor --
|
||||
* OrderedElemGetSuccessor
|
||||
*/
|
||||
Pointer
|
||||
OrderedElemGetSuccessor(OrderedElem elem)
|
||||
@@ -114,7 +114,7 @@ OrderedElemGetSuccessor(OrderedElem elem)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedElemPop --
|
||||
* OrderedElemPop
|
||||
*/
|
||||
void
|
||||
OrderedElemPop(OrderedElem elem)
|
||||
@@ -127,7 +127,7 @@ OrderedElemPop(OrderedElem elem)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedElemPushInto --
|
||||
* OrderedElemPushInto
|
||||
*/
|
||||
void
|
||||
OrderedElemPushInto(OrderedElem elem, OrderedSet set)
|
||||
@@ -140,7 +140,7 @@ OrderedElemPushInto(OrderedElem elem, OrderedSet set)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedElemPush --
|
||||
* OrderedElemPush
|
||||
*/
|
||||
static void
|
||||
OrderedElemPush(OrderedElem elem)
|
||||
@@ -149,7 +149,7 @@ OrderedElemPush(OrderedElem elem)
|
||||
}
|
||||
|
||||
/*
|
||||
* OrderedElemPushHead --
|
||||
* OrderedElemPushHead
|
||||
*/
|
||||
static void
|
||||
OrderedElemPushHead(OrderedElem elem)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* palloc.c--
|
||||
* palloc.c
|
||||
* POSTGRES memory allocator code.
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.10 1999/02/06 16:50:27 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.11 1999/02/13 23:20:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* portalmem.c--
|
||||
* portalmem.c
|
||||
* backend portal memory context management stuff
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.17 1999/02/06 16:50:28 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.18 1999/02/13 23:20:12 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -50,7 +50,7 @@
|
||||
*
|
||||
* Here is an old comment taken from nodes/memnodes.h
|
||||
*
|
||||
* MemoryContext --
|
||||
* MemoryContext
|
||||
* A logical context in which memory allocations occur.
|
||||
*
|
||||
* The types of memory contexts can be thought of as members of the
|
||||
@@ -517,7 +517,7 @@ DumpPortals()
|
||||
* ----------------------------------------------------------------
|
||||
*/
|
||||
/*
|
||||
* EnablePortalManager --
|
||||
* EnablePortalManager
|
||||
* Enables/disables the portal management module.
|
||||
*/
|
||||
void
|
||||
@@ -579,7 +579,7 @@ EnablePortalManager(bool on)
|
||||
}
|
||||
|
||||
/*
|
||||
* GetPortalByName --
|
||||
* GetPortalByName
|
||||
* Returns a portal given a portal name; returns blank portal given
|
||||
* NULL; returns invalid portal if portal not found.
|
||||
*
|
||||
@@ -606,7 +606,7 @@ GetPortalByName(char *name)
|
||||
}
|
||||
|
||||
/*
|
||||
* BlankPortalAssignName --
|
||||
* BlankPortalAssignName
|
||||
* Returns former blank portal as portal with given name.
|
||||
*
|
||||
* Side effect:
|
||||
@@ -659,7 +659,7 @@ BlankPortalAssignName(char *name) /* XXX PortalName */
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalSetQuery --
|
||||
* PortalSetQuery
|
||||
* Attaches a "query" to portal.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -686,7 +686,7 @@ PortalSetQuery(Portal portal,
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalGetQueryDesc --
|
||||
* PortalGetQueryDesc
|
||||
* Returns query attached to portal.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -703,7 +703,7 @@ PortalGetQueryDesc(Portal portal)
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalGetState --
|
||||
* PortalGetState
|
||||
* Returns state attached to portal.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -720,7 +720,7 @@ PortalGetState(Portal portal)
|
||||
}
|
||||
|
||||
/*
|
||||
* CreatePortal --
|
||||
* CreatePortal
|
||||
* Returns a new portal given a name.
|
||||
*
|
||||
* Note:
|
||||
@@ -784,7 +784,7 @@ CreatePortal(char *name) /* XXX PortalName */
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalDestroy --
|
||||
* PortalDestroy
|
||||
* Destroys portal.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -836,7 +836,7 @@ PortalDestroy(Portal *portalP)
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
* PortalResetHeapMemory --
|
||||
* PortalResetHeapMemory
|
||||
* Resets portal's heap memory context.
|
||||
*
|
||||
* Someday, Reset, Start, and End can be optimized by keeping a global
|
||||
@@ -873,7 +873,7 @@ PortalResetHeapMemory(Portal portal)
|
||||
}
|
||||
|
||||
/*
|
||||
* StartPortalAllocMode --
|
||||
* StartPortalAllocMode
|
||||
* Starts a new block of portal heap allocation using mode and limit;
|
||||
* the current block is disabled until EndPortalAllocMode is called.
|
||||
*
|
||||
@@ -912,7 +912,7 @@ StartPortalAllocMode(AllocMode mode, Size limit)
|
||||
}
|
||||
|
||||
/*
|
||||
* EndPortalAllocMode --
|
||||
* EndPortalAllocMode
|
||||
* Ends current block of portal heap allocation; previous block is
|
||||
* reenabled.
|
||||
*
|
||||
@@ -944,7 +944,7 @@ EndPortalAllocMode()
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalGetVariableMemory --
|
||||
* PortalGetVariableMemory
|
||||
* Returns variable memory context for a given portal.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -958,7 +958,7 @@ PortalGetVariableMemory(Portal portal)
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalGetHeapMemory --
|
||||
* PortalGetHeapMemory
|
||||
* Returns heap memory context for a given portal.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -972,7 +972,7 @@ PortalGetHeapMemory(Portal portal)
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalVariableMemoryGetPortal --
|
||||
* PortalVariableMemoryGetPortal
|
||||
* Returns portal containing given variable memory context.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -986,7 +986,7 @@ PortalVariableMemoryGetPortal(PortalVariableMemory context)
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalHeapMemoryGetPortal --
|
||||
* PortalHeapMemoryGetPortal
|
||||
* Returns portal containing given heap memory context.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -1000,7 +1000,7 @@ PortalHeapMemoryGetPortal(PortalHeapMemory context)
|
||||
}
|
||||
|
||||
/*
|
||||
* PortalVariableMemoryGetHeapMemory --
|
||||
* PortalVariableMemoryGetHeapMemory
|
||||
* Returns heap memory context associated with given variable memory.
|
||||
*
|
||||
* Exceptions:
|
||||
@@ -1019,7 +1019,7 @@ PortalVariableMemoryGetHeapMemory(PortalVariableMemory context)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* PortalHeapMemoryGetVariableMemory --
|
||||
* PortalHeapMemoryGetVariableMemory
|
||||
* Returns variable memory context associated with given heap memory.
|
||||
*
|
||||
* Exceptions:
|
||||
|
||||
Reference in New Issue
Block a user