1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-18 02:02:55 +03:00

Change my-function-name-- to my_function_name, and optimizer renames.

This commit is contained in:
Bruce Momjian
1999-02-13 23:22:53 +00:00
parent 8c3fff7337
commit 6724a50787
617 changed files with 2005 additions and 2031 deletions

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* acl.h--
* acl.h
* Definition of (and support for) access control list data structures.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: acl.h,v 1.18 1998/09/01 04:38:48 momjian Exp $
* $Id: acl.h,v 1.19 1999/02/13 23:22:14 momjian Exp $
*
* NOTES
* For backward-compatability purposes we have to allow there

View File

@@ -1,6 +1,6 @@
/*-------------------------------------------------------------------------
*
* array.h--
* array.h
* Utilities for the new array code. Contain prototypes from the
* following files:
* utils/adt/arrayfuncs.c
@@ -10,7 +10,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: array.h,v 1.14 1998/09/01 04:38:50 momjian Exp $
* $Id: array.h,v 1.15 1999/02/13 23:22:15 momjian Exp $
*
* NOTES
* XXX the data array should be LONGALIGN'd -- notice that the array

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* bit.h--
* bit.h
* Standard bit array definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: bit.h,v 1.4 1998/09/01 04:38:51 momjian Exp $
* $Id: bit.h,v 1.5 1999/02/13 23:22:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,19 +19,19 @@ typedef uint32 BitIndex;
#define BitsPerByte 8
/*
* BitArraySetBit --
* BitArraySetBit
* Sets (to 1) the value of a bit in a bit array.
*/
extern void BitArraySetBit(BitArray bitArray, BitIndex bitIndex);
/*
* BitArrayClearBit --
* BitArrayClearBit
* Clears (to 0) the value of a bit in a bit array.
*/
extern void BitArrayClearBit(BitArray bitArray, BitIndex bitIndex);
/*
* BitArrayBitIsSet --
* BitArrayBitIsSet
* True iff the bit is set (1) in a bit array.
*/
extern bool BitArrayBitIsSet(BitArray bitArray, BitIndex bitIndex);

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* builtins.h--
* builtins.h
* Declarations for operations on built-in types.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.73 1998/12/30 19:56:34 wieck Exp $
* $Id: builtins.h,v 1.74 1999/02/13 23:22:15 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* catcache.h--
* catcache.h
* Low-level catalog cache definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: catcache.h,v 1.13 1998/09/01 04:38:55 momjian Exp $
* $Id: catcache.h,v 1.14 1999/02/13 23:22:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* datetime.h--
* datetime.h
* Definitions for the datetime
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: datetime.h,v 1.6 1998/09/01 04:38:56 momjian Exp $
* $Id: datetime.h,v 1.7 1999/02/13 23:22:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* datum.h--
* datum.h
* POSTGRES abstract data type datum representation definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: datum.h,v 1.8 1998/09/01 04:38:58 momjian Exp $
* $Id: datum.h,v 1.9 1999/02/13 23:22:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,6 +1,6 @@
/*-------------------------------------------------------------------------
*
* dt.h--
* dt.h
* Definitions for the date/time and other date/time support code.
* The support code is shared with other date data types,
* including abstime, reltime, date, and time.
@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dt.h,v 1.35 1999/02/13 04:15:33 thomas Exp $
* $Id: dt.h,v 1.36 1999/02/13 23:22:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* dynahash--
* dynahash
* POSTGRES dynahash.h file definitions
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dynahash.h,v 1.5 1998/09/01 04:39:00 momjian Exp $
* $Id: dynahash.h,v 1.6 1999/02/13 23:22:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* dynamic_loader.h--
* dynamic_loader.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dynamic_loader.h,v 1.9 1998/09/01 04:39:02 momjian Exp $
* $Id: dynamic_loader.h,v 1.10 1999/02/13 23:22:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* elog.h--
* elog.h
* POSTGRES error logging definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: elog.h,v 1.9 1999/01/18 00:10:17 momjian Exp $
* $Id: elog.h,v 1.10 1999/02/13 23:22:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* exc.h--
* exc.h
* POSTGRES exception handling definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: exc.h,v 1.14 1998/09/01 04:39:04 momjian Exp $
* $Id: exc.h,v 1.15 1999/02/13 23:22:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* excid.h--
* excid.h
* POSTGRES known exception identifier definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: excid.h,v 1.5 1998/09/01 04:39:06 momjian Exp $
* $Id: excid.h,v 1.6 1999/02/13 23:22:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* fcache.h--
* fcache.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: fcache.h,v 1.7 1998/09/01 04:39:07 momjian Exp $
* $Id: fcache.h,v 1.8 1999/02/13 23:22:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* fcache2.h--
* fcache2.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: fcache2.h,v 1.7 1998/09/01 04:39:08 momjian Exp $
* $Id: fcache2.h,v 1.8 1999/02/13 23:22:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* fmgrtab.h--
* fmgrtab.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: fmgrtab.h,v 1.8 1998/09/01 04:39:09 momjian Exp $
* $Id: fmgrtab.h,v 1.9 1999/02/13 23:22:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* hsearch.h--
* hsearch.h
* for hashing in the new buffer manager
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hsearch.h,v 1.9 1998/09/01 04:39:12 momjian Exp $
* $Id: hsearch.h,v 1.10 1999/02/13 23:22:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* builtins.h--
* builtins.h
* Declarations for operations on built-in types.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: inet.h,v 1.2 1998/10/21 16:06:50 momjian Exp $
* $Id: inet.h,v 1.3 1999/02/13 23:22:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* int8.h--
* int8.h
* Declarations for operations on 64-bit integers.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: int8.h,v 1.9 1999/02/13 04:13:56 thomas Exp $
* $Id: int8.h,v 1.10 1999/02/13 23:22:23 momjian Exp $
*
* NOTES
* These data types are supported on all 64-bit architectures, and may

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* inval.h--
* inval.h
* POSTGRES cache invalidation dispatcher definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: inval.h,v 1.10 1998/10/12 00:53:36 momjian Exp $
* $Id: inval.h,v 1.11 1999/02/13 23:22:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* lselect.h--
* lselect.h
* definitions for the replacement selection algorithm.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lselect.h,v 1.11 1998/09/01 04:39:16 momjian Exp $
* $Id: lselect.h,v 1.12 1999/02/13 23:22:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* lsyscache.h--
* lsyscache.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lsyscache.h,v 1.15 1998/09/01 04:39:18 momjian Exp $
* $Id: lsyscache.h,v 1.16 1999/02/13 23:22:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* mcxt.h--
* mcxt.h
* POSTGRES memory context definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: mcxt.h,v 1.11 1998/09/01 04:39:19 momjian Exp $
* $Id: mcxt.h,v 1.12 1999/02/13 23:22:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -20,7 +20,7 @@ extern MemoryContext TopMemoryContext;
/*
* MaxAllocSize --
* MaxAllocSize
* Arbitrary limit on size of allocations.
*
* Note:

View File

@@ -1,6 +1,6 @@
/*-------------------------------------------------------------------------
*
* memutils.h--
* memutils.h
* this file contains general memory alignment, allocation
* and manipulation stuff that used to be spread out
* between the following files:
@@ -15,7 +15,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memutils.h,v 1.20 1999/02/06 16:50:33 wieck Exp $
* $Id: memutils.h,v 1.21 1999/02/13 23:22:25 momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
@@ -186,13 +186,13 @@ extern void OrderedElemPushInto(OrderedElem elem, OrderedSet Set);
*/
/*
* AllocPointer --
* AllocPointer
* Aligned pointer which may be a member of an allocation set.
*/
typedef Pointer AllocPointer;
/*
* AllocMode --
* AllocMode
* Mode of allocation for an allocation set.
*
* Note:
@@ -209,7 +209,7 @@ typedef enum AllocMode
#define DefaultAllocMode DynamicAllocMode
/*
* AllocBlock --
* AllocBlock
* Small pieces of memory are taken from bigger blocks of
* memory with a size aligned to a power of two. These
* pieces are not free's separately, instead they are reused
@@ -225,7 +225,7 @@ typedef struct AllocBlockData {
typedef AllocBlockData *AllocBlock;
/*
* AllocChunk --
* AllocChunk
* The prefix of each piece of memory in an AllocBlock
*/
typedef struct AllocChunkData {
@@ -236,7 +236,7 @@ typedef struct AllocChunkData {
typedef AllocChunkData *AllocChunk;
/*
* AllocSet --
* AllocSet
* Allocation set.
*/
typedef struct AllocSetData
@@ -249,13 +249,13 @@ typedef struct AllocSetData
typedef AllocSetData *AllocSet;
/*
* AllocPointerIsValid --
* AllocPointerIsValid
* True iff pointer is valid allocation pointer.
*/
#define AllocPointerIsValid(pointer) PointerIsValid(pointer)
/*
* AllocSetIsValid --
* AllocSetIsValid
* True iff set is valid allocation set.
*/
#define AllocSetIsValid(set) PointerIsValid(set)
@@ -288,7 +288,7 @@ extern void AllocSetDump(AllocSet set);
typedef int LibCCopyLength;
/*
* MemoryCopy --
* MemoryCopy
* Copies fixed length block of memory to another.
*/
#define MemoryCopy(toBuffer, fromBuffer, length)\

View File

@@ -1,6 +1,6 @@
/*-------------------------------------------------------------------------
*
* module.h--
* module.h
* this file contains general "module" stuff that used to be
* spread out between the following files:
*
@@ -10,7 +10,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: module.h,v 1.4 1998/09/01 04:39:21 momjian Exp $
* $Id: module.h,v 1.5 1999/02/13 23:22:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* nabstime.h--
* nabstime.h
* Definitions for the "new" abstime code.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nabstime.h,v 1.17 1998/10/08 18:30:52 momjian Exp $
* $Id: nabstime.h,v 1.18 1999/02/13 23:22:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -91,7 +91,7 @@ typedef TimeIntervalData *TimeInterval;
extern AbsoluteTime GetCurrentAbsoluteTime(void);
/*
* getSystemTime --
* getSystemTime
* Returns system time.
*/
#define getSystemTime() \

View File

@@ -1,11 +1,11 @@
/* ----------
* numeric.h -
* numeric.h
*
* Definitions for the exact numeric data type of Postgres
*
* 1998 Jan Wieck
*
* $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.3 1999/01/05 11:12:11 wieck Exp $
* $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.4 1999/02/13 23:22:26 momjian Exp $
*
* ----------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* palloc.h--
* palloc.h
* POSTGRES memory allocator definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: palloc.h,v 1.7 1999/02/06 16:50:34 wieck Exp $
* $Id: palloc.h,v 1.8 1999/02/13 23:22:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* portal.h--
* portal.h
* POSTGRES portal definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: portal.h,v 1.11 1999/02/06 16:50:34 wieck Exp $
* $Id: portal.h,v 1.12 1999/02/13 23:22:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -53,7 +53,7 @@ struct PortalD
};
/*
* PortalIsValid --
* PortalIsValid
* True iff portal is valid.
*/
#define PortalIsValid(p) PointerIsValid(p)

View File

@@ -1,6 +1,6 @@
/*-------------------------------------------------------------------------
*
* ps_status.h--
* ps_status.h
*
* Defines macros to show backend status on the ps status line.
* Unfortunately this is system dpendent.

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* psort.h--
* psort.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: psort.h,v 1.16 1998/09/01 04:39:28 momjian Exp $
* $Id: psort.h,v 1.17 1999/02/13 23:22:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* rel.h--
* rel.h
* POSTGRES relation descriptor definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rel.h,v 1.21 1999/02/02 03:45:28 momjian Exp $
* $Id: rel.h,v 1.22 1999/02/13 23:22:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -77,13 +77,13 @@ typedef Relation *RelationPtr;
#define InvalidRelation ((Relation)NULL)
/*
* RelationIsValid --
* RelationIsValid
* True iff relation descriptor is valid.
*/
#define RelationIsValid(relation) PointerIsValid(relation)
/*
* RelationGetSystemPort --
* RelationGetSystemPort
* Returns system port of a relation.
*
* Note:
@@ -92,14 +92,14 @@ typedef Relation *RelationPtr;
#define RelationGetSystemPort(relation) ((relation)->rd_fd)
/*
* RelationGetLockInfo --
* RelationGetLockInfo
* Returns the lock information structure in the reldesc
*
*/
#define RelationGetLockInfo(relation) ((relation)->lockInfo)
/*
* RelationHasReferenceCountZero --
* RelationHasReferenceCountZero
* True iff relation reference count is zero.
*
* Note:
@@ -109,25 +109,25 @@ typedef Relation *RelationPtr;
((bool)((relation)->rd_refcnt == 0))
/*
* RelationSetReferenceCount --
* RelationSetReferenceCount
* Sets relation reference count.
*/
#define RelationSetReferenceCount(relation,count) ((relation)->rd_refcnt = count)
/*
* RelationIncrementReferenceCount --
* RelationIncrementReferenceCount
* Increments relation reference count.
*/
#define RelationIncrementReferenceCount(relation) ((relation)->rd_refcnt += 1);
/*
* RelationDecrementReferenceCount --
* RelationDecrementReferenceCount
* Decrements relation reference count.
*/
#define RelationDecrementReferenceCount(relation) ((relation)->rd_refcnt -= 1)
/*
* RelationGetForm --
* RelationGetForm
* Returns relation attribute values for a relation.
*
* Note:
@@ -137,7 +137,7 @@ typedef Relation *RelationPtr;
/*
* RelationGetRelid --
* RelationGetRelid
*
* returns the object id of the relation
*
@@ -145,7 +145,7 @@ typedef Relation *RelationPtr;
#define RelationGetRelid(relation) ((relation)->rd_id)
/*
* RelationGetFile --
* RelationGetFile
*
* Returns the open File decscriptor
*/
@@ -153,21 +153,21 @@ typedef Relation *RelationPtr;
/*
* RelationGetRelationName --
* RelationGetRelationName
*
* Returns a Relation Name
*/
#define RelationGetRelationName(relation) (&(relation)->rd_rel->relname)
/*
* RelationGetRelationName --
* RelationGetRelationName
*
* Returns a the number of attributes.
*/
#define RelationGetNumberOfAttributes(relation) ((relation)->rd_rel->relnatts)
/*
* RelationGetDescr --
* RelationGetDescr
* Returns tuple descriptor for a relation.
*
* Note:

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* rel2.h--
* rel2.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rel2.h,v 1.7 1998/09/01 04:39:31 momjian Exp $
* $Id: rel2.h,v 1.8 1999/02/13 23:22:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* relcache.h--
* relcache.h
* Relation descriptor cache definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: relcache.h,v 1.10 1998/09/01 04:39:32 momjian Exp $
* $Id: relcache.h,v 1.11 1999/02/13 23:22:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* sets.h--
* sets.h
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: sets.h,v 1.4 1998/09/01 04:39:33 momjian Exp $
* $Id: sets.h,v 1.5 1999/02/13 23:22:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* syscache.h--
* syscache.h
* System catalog cache definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: syscache.h,v 1.12 1998/09/01 04:39:34 momjian Exp $
* $Id: syscache.h,v 1.13 1999/02/13 23:22:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* temprel.h--
* temprel.h
* Temporary relation functions
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: temprel.h,v 1.1 1999/02/02 03:45:28 momjian Exp $
* $Id: temprel.h,v 1.2 1999/02/13 23:22:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/

View File

@@ -1,13 +1,13 @@
/*-------------------------------------------------------------------------
*
* tqual.h--
* tqual.h
* POSTGRES "time" qualification definitions.
*
* Should be moved/renamed... - vadim 07/28/98
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tqual.h,v 1.19 1999/01/29 09:23:17 vadim Exp $
* $Id: tqual.h,v 1.20 1999/02/13 23:22:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -42,7 +42,7 @@ extern TransactionId HeapSpecialTransactionId;
extern CommandId HeapSpecialCommandId;
/*
* HeapTupleSatisfiesVisibility --
* HeapTupleSatisfiesVisibility
* True iff heap tuple satsifies a time qual.
*
* Note:

View File

@@ -1,6 +1,6 @@
/*-------------------------------------------------------------------------
*
* trace.h--
* trace.h
*
* Conditional trace definitions.
*