aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/selfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-06-14 05:24:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-06-14 05:24:50 +0000
commitff7b9f55410bbfbd017af331d23371ab61b63d5e (patch)
tree6a055be48dd161470503eb2f1a0376bc048ab73b /src/backend/utils/adt/selfuncs.c
parent69cd08d9f79818c8ff8b7b74c7ecfe8dcdb0202c (diff)
downloadpostgresql-ff7b9f55410bbfbd017af331d23371ab61b63d5e.tar.gz
postgresql-ff7b9f55410bbfbd017af331d23371ab61b63d5e.zip
I had overlooked the fact that some fmgr-callable functions return void
--- ie, they're only called for side-effects. Add a PG_RETURN_VOID() macro and use it where appropriate. This probably doesn't change the machine code by a single bit ... it's just for documentation.
Diffstat (limited to 'src/backend/utils/adt/selfuncs.c')
-rw-r--r--src/backend/utils/adt/selfuncs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c
index 4d0af92ba2b..7ed17da41f3 100644
--- a/src/backend/utils/adt/selfuncs.c
+++ b/src/backend/utils/adt/selfuncs.c
@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.70 2000/06/09 01:11:09 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.71 2000/06/14 05:24:49 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1934,8 +1934,7 @@ genericcostestimate(PG_FUNCTION_ARGS)
*indexTotalCost = numIndexPages +
(cpu_index_tuple_cost + cost_qual_eval(indexQuals)) * numIndexTuples;
- /* No real return value ... */
- PG_RETURN_POINTER(NULL);
+ PG_RETURN_VOID();
}
/*