diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-04-24 14:43:33 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-04-24 14:43:33 +0000 |
commit | 4cbfeef91291f4a4f38aa7ee7ee9030b94457fe1 (patch) | |
tree | 835c5c06b18e44d674b55ce9355bf057f57f4d50 /src/backend/executor | |
parent | 7500a961f169455b95a97b59bf8a3544ec851fd0 (diff) | |
download | postgresql-4cbfeef91291f4a4f38aa7ee7ee9030b94457fe1.tar.gz postgresql-4cbfeef91291f4a4f38aa7ee7ee9030b94457fe1.zip |
Inline some small functions called for every row.
Diffstat (limited to 'src/backend/executor')
-rw-r--r-- | src/backend/executor/execTuples.c | 54 | ||||
-rw-r--r-- | src/backend/executor/nodeTee.c | 4 |
2 files changed, 5 insertions, 53 deletions
diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c index 3d64ba0095b..cd6ac66c9f0 100644 --- a/src/backend/executor/execTuples.c +++ b/src/backend/executor/execTuples.c @@ -14,7 +14,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.17 1998/02/26 04:31:14 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.18 1998/04/24 14:41:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -40,10 +40,10 @@ * ExecSetNewSlotDescriptor - set a desc and the is-new-flag all at once * ExecSlotBuffer - return buffer of tuple in slot * ExecSetSlotBuffer - set the buffer for tuple in slot - * ExecIncrSlotBufferRefcnt - bump the refcnt of the slot buffer + * ExecIncrSlotBufferRefcnt - bump the refcnt of the slot buffer(Macro) * * SLOT STATUS PREDICATES - * TupIsNull - true when slot contains no tuple + * TupIsNull - true when slot contains no tuple(Macro) * ExecSlotDescriptorIsNew - true if we're now storing a different * type of tuple in a slot * @@ -566,59 +566,11 @@ ExecSetSlotBuffer(TupleTableSlot *slot, /* slot to change */ #endif -/* -------------------------------- - * ExecIncrSlotBufferRefcnt - * - * When we pass around buffers in the tuple table, we have to - * be careful to increment reference counts appropriately. - * This is used mainly in the mergejoin code. - * -------------------------------- - */ -void -ExecIncrSlotBufferRefcnt(TupleTableSlot *slot) /* slot to bump refcnt */ -{ -/* Buffer b = SlotBuffer((TupleTableSlot*) slot); */ - Buffer b = slot->ttc_buffer; - - if (BufferIsValid(b)) - IncrBufferRefCount(b); -} - /* ---------------------------------------------------------------- * tuple table slot status predicates * ---------------------------------------------------------------- */ -/* ---------------- - * TupIsNull - * - * This is used mainly to detect when there are no more - * tuples to process. - * ---------------- - */ -bool /* return: true if tuple in slot is NULL */ -TupIsNull(TupleTableSlot *slot) /* slot to check */ -{ - HeapTuple tuple; /* contents of slot (returned) */ - - /* ---------------- - * if the slot itself is null then we return true - * ---------------- - */ - if (slot == NULL) - return true; - - /* ---------------- - * get information from the slot and return true or - * false depending on the contents of the slot. - * ---------------- - */ - tuple = slot->val; - - return - (tuple == NULL ? true : false); -} - /* -------------------------------- * ExecSlotDescriptorIsNew * diff --git a/src/backend/executor/nodeTee.c b/src/backend/executor/nodeTee.c index 23e09682ea9..4a96dc2621e 100644 --- a/src/backend/executor/nodeTee.c +++ b/src/backend/executor/nodeTee.c @@ -15,7 +15,7 @@ * ExecEndTee * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.16 1998/02/26 04:31:33 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.17 1998/04/24 14:41:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -27,7 +27,7 @@ #include "utils/palloc.h" #include "utils/relcache.h" #include "utils/mcxt.h" -#include "storage/bufmgr.h" /* for IncrBufferRefCount */ +#include "storage/bufmgr.h" #include "storage/smgr.h" #include "optimizer/internal.h" #include "executor/executor.h" |