summaryrefslogtreecommitdiff
path: root/src/backend/access
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-06-08 22:38:00 +0000
committerBruce Momjian <bruce@momjian.us>2000-06-08 22:38:00 +0000
commit20ad43b576d9360b0e9ce9bd868c989443cf9d36 (patch)
tree6cdf8d6fb7e1e229158000234ff32a426447a53f /src/backend/access
parent5690933d6c14a706b52edf76c71cbf5660b110e1 (diff)
downloadpostgresql-20ad43b576d9360b0e9ce9bd868c989443cf9d36.tar.gz
Mark functions as static and ifdef NOT_USED as appropriate.
Diffstat (limited to 'src/backend/access')
-rw-r--r--src/backend/access/index/istrat.c7
-rw-r--r--src/backend/access/nbtree/nbtinsert.c6
-rw-r--r--src/backend/access/transam/xact.c4
3 files changed, 12 insertions, 5 deletions
diff --git a/src/backend/access/index/istrat.c b/src/backend/access/index/istrat.c
index 48872cdf68..fc7ac6dcb1 100644
--- a/src/backend/access/index/istrat.c
+++ b/src/backend/access/index/istrat.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.44 2000/05/30 04:24:32 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.45 2000/06/08 22:36:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -207,6 +207,7 @@ StrategyEvaluationIsValid(StrategyEvaluation evaluation)
#endif
+#ifdef NOT_USED
/* ----------------
* StrategyTermEvaluate
* ----------------
@@ -262,7 +263,7 @@ StrategyTermEvaluate(StrategyTerm term,
return result;
}
-
+#endif
/* ----------------
* RelationGetStrategy
@@ -340,6 +341,7 @@ RelationGetStrategy(Relation relation,
return strategy;
}
+#ifdef NOT_USED
/* ----------------
* RelationInvokeStrategy
* ----------------
@@ -463,6 +465,7 @@ RelationInvokeStrategy(Relation relation,
}
+#endif
/* ----------------
* OperatorRelationFillScanKeyEntry
diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c
index 0ec7af2cf9..7d65c63dc8 100644
--- a/src/backend/access/nbtree/nbtinsert.c
+++ b/src/backend/access/nbtree/nbtinsert.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.58 2000/05/30 04:24:33 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.59 2000/06/08 22:36:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -30,6 +30,8 @@ static OffsetNumber _bt_pgaddtup(Relation rel, Buffer buf, int keysz, ScanKey it
static bool _bt_goesonpg(Relation rel, Buffer buf, Size keysz, ScanKey scankey, BTItem afteritem);
static void _bt_updateitem(Relation rel, Size keysz, Buffer buf, BTItem oldItem, BTItem newItem);
static bool _bt_isequal(TupleDesc itupdesc, Page page, OffsetNumber offnum, int keysz, ScanKey scankey);
+static int32 _bt_tuplecompare(Relation rel, Size keysz, ScanKey scankey,
+ IndexTuple tuple1, IndexTuple tuple2);
/*
* _bt_doinsert() -- Handle insertion of a single btitem in the tree.
@@ -1360,7 +1362,7 @@ _bt_goesonpg(Relation rel,
* return -1, 0, or +1
*
*/
-int32
+static int32
_bt_tuplecompare(Relation rel,
Size keysz,
ScanKey scankey,
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index 18ac77cd9e..cd20e231ec 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.65 2000/05/30 00:49:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.66 2000/06/08 22:36:54 momjian Exp $
*
* NOTES
* Transaction aborts can now occur two ways:
@@ -901,6 +901,7 @@ StartTransaction()
}
+#ifdef NOT_USED
/* ---------------
* Tell me if we are currently in progress
* ---------------
@@ -910,6 +911,7 @@ CurrentXactInProgress()
{
return CurrentTransactionState->state == TRANS_INPROGRESS;
}
+#endif
/* --------------------------------
* CommitTransaction