aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execUtils.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-08-19 21:40:56 +0000
committerBruce Momjian <bruce@momjian.us>1997-08-19 21:40:56 +0000
commit1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b (patch)
tree8d3a5dac9207f22c3afb8afb563d54f88774deb3 /src/backend/executor/execUtils.c
parentb992e200b8872ecb6652ec85111995f8d4c5aee0 (diff)
downloadpostgresql-1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b.tar.gz
postgresql-1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b.zip
Make functions static where possible, enclose unused functions in #ifdef NOT_USED.
Diffstat (limited to 'src/backend/executor/execUtils.c')
-rw-r--r--src/backend/executor/execUtils.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c
index a44c0f024ac..05973cb030c 100644
--- a/src/backend/executor/execUtils.c
+++ b/src/backend/executor/execUtils.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.10 1997/08/18 20:52:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.11 1997/08/19 21:31:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -58,6 +58,9 @@
#include "catalog/pg_type.h"
#include "parser/parsetree.h"
+static void ExecGetIndexKeyInfo(IndexTupleForm indexTuple, int *numAttsOutP,
+ AttrNumber **attsOutP, FuncIndexInfoPtr fInfoP);
+
/* ----------------------------------------------------------------
* global counters for number of tuples processed, retrieved,
* appended, replaced, deleted.
@@ -82,6 +85,7 @@ extern int NIndexTupleProcessed; /* have to be defined in the access
* ResetTupleCount
* ----------------------------------------------------------------
*/
+#ifdef NOT_USED
void
ResetTupleCount(void)
{
@@ -92,11 +96,13 @@ ResetTupleCount(void)
NTupleReplaced = 0;
NIndexTupleProcessed = 0;
}
+#endif
/* ----------------------------------------------------------------
* PrintTupleCount
* ----------------------------------------------------------------
*/
+#ifdef NOT_USED
void
DisplayTupleCount(FILE *statfp)
{
@@ -127,6 +133,7 @@ DisplayTupleCount(FILE *statfp)
(NTupleReplaced == 1) ? "" : "s");
fprintf(statfp, "\n");
}
+#endif
/* ----------------------------------------------------------------
* miscellanious init node support functions
@@ -287,6 +294,7 @@ ExecGetResultType(CommonState *commonstate)
* ExecFreeResultType
* ----------------
*/
+#ifdef NOT_USED
void
ExecFreeResultType(CommonState *commonstate)
{
@@ -299,7 +307,7 @@ ExecFreeResultType(CommonState *commonstate)
/* ExecFreeTypeInfo(tupType); */
pfree(tupType);
}
-
+#endif
/* ----------------
* ExecAssignProjectionInfo
@@ -382,6 +390,7 @@ ExecGetScanType(CommonScanState *csstate)
* ExecFreeScanType
* ----------------
*/
+#ifdef NOT_USED
void
ExecFreeScanType(CommonScanState *csstate)
{
@@ -394,6 +403,7 @@ ExecFreeScanType(CommonScanState *csstate)
/* ExecFreeTypeInfo(tupType); */
pfree(tupType);
}
+#endif
/* ----------------
* ExecAssignScanType
@@ -581,7 +591,7 @@ QueryDescGetTypeInfo(QueryDesc *queryDesc)
* parameters.
* ----------------------------------------------------------------
*/
-void
+static void
ExecGetIndexKeyInfo(IndexTupleForm indexTuple,
int *numAttsOutP,
AttrNumber **attsOutP,
@@ -938,6 +948,7 @@ ExecCloseIndices(RelationInfo *resultRelationInfo)
* set of routines..
* ----------------------------------------------------------------
*/
+#ifdef NOT_USED
IndexTuple
ExecFormIndexTuple(HeapTuple heapTuple,
Relation heapRelation,
@@ -1011,6 +1022,7 @@ ExecFormIndexTuple(HeapTuple heapTuple,
return indexTuple;
}
+#endif
/* ----------------------------------------------------------------
* ExecInsertIndexTuples