mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Make functions static or ifdef NOT_USED. Prevent pg_version creation.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.43 1998/09/01 04:31:41 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.44 1998/10/08 18:29:54 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -96,6 +96,7 @@ static BufferDesc *BufferAlloc(Relation reln, BlockNumber blockNum,
|
||||
static int FlushBuffer(Buffer buffer, bool release);
|
||||
static void BufferSync(void);
|
||||
static int BufferReplace(BufferDesc *bufHdr, bool bufferLockHeld);
|
||||
static void PrintBufferDescs(void);
|
||||
|
||||
/* not static but used by vacuum only ... */
|
||||
int BlowawayRelationBuffers(Relation rel, BlockNumber block);
|
||||
@@ -1263,6 +1264,7 @@ BufferGetBlockNumber(Buffer buffer)
|
||||
return BufferDescriptors[buffer - 1].tag.blockNum;
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
/*
|
||||
* BufferGetRelation --
|
||||
* Returns the relation desciptor associated with a buffer.
|
||||
@@ -1297,6 +1299,7 @@ BufferGetRelation(Buffer buffer)
|
||||
|
||||
return relation;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* BufferReplace
|
||||
@@ -1464,7 +1467,7 @@ DropBuffers(Oid dbid)
|
||||
* use only.
|
||||
* -----------------------------------------------------------------
|
||||
*/
|
||||
void
|
||||
static void
|
||||
PrintBufferDescs()
|
||||
{
|
||||
int i;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.37 1998/09/09 18:32:05 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.38 1998/10/08 18:29:57 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Outside modules can create a lock table and acquire/release
|
||||
@@ -1712,6 +1712,7 @@ DeadLockCheck(SHM_QUEUE *lockQueue, LOCK *findlock, bool skip_check)
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
/*
|
||||
* Return an array with the pids of all processes owning a lock.
|
||||
* This works only for user locks because normal locks have no
|
||||
@@ -1898,6 +1899,7 @@ LockOwners(LOCKMETHOD lockmethod, LOCKTAG *locktag)
|
||||
|
||||
return array;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef DEADLOCK_DEBUG
|
||||
/*
|
||||
|
@@ -12,7 +12,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.25 1998/09/01 04:32:01 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.26 1998/10/08 18:29:59 momjian Exp $
|
||||
*
|
||||
* NOTES:
|
||||
* (1) The lock.c module assumes that the caller here is doing
|
||||
@@ -194,6 +194,7 @@ MultiLockReln(LockInfo lockinfo, LOCKMODE lockmode)
|
||||
return MultiAcquire(MultiTableId, &tag, lockmode, RELN_LEVEL);
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
/*
|
||||
* MultiLockTuple -- Lock the TID associated with a tuple
|
||||
*
|
||||
@@ -220,6 +221,7 @@ MultiLockTuple(LockInfo lockinfo, ItemPointer tidPtr, LOCKMODE lockmode)
|
||||
tag.tupleId = *tidPtr;
|
||||
return MultiAcquire(MultiTableId, &tag, lockmode, TUPLE_LEVEL);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* same as above at page level
|
||||
|
@@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.20 1998/09/01 04:32:08 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.21 1998/10/08 18:30:03 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -72,12 +72,15 @@ static f_smgr smgrsw[] = {
|
||||
* write-once storage managers.
|
||||
*/
|
||||
|
||||
#ifdef NOT_USED
|
||||
static bool smgrwo[] = {
|
||||
false, /* magnetic disk */
|
||||
#ifdef STABLE_MEMORY_STORAGE
|
||||
false, /* main memory */
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
static int NSmgr = lengthof(smgrsw);
|
||||
|
||||
/*
|
||||
@@ -396,6 +399,7 @@ smgrabort()
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef NOT_USED
|
||||
bool
|
||||
smgriswo(int16 smgrno)
|
||||
{
|
||||
@@ -404,3 +408,4 @@ smgriswo(int16 smgrno)
|
||||
|
||||
return smgrwo[smgrno];
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user