Skip to content

Commit 2e852e5

Browse files
committed
Remove ExecRemoveJunk(), which is no longer used anywhere.
This was a leftover from the pre-8.1 design of junkfilters. It doesn't seem to have any reason to live, since it's merely a combination of two easy function calls, and not a well-designed combination at that (it encourages callers to leak the result tuple).
1 parent a210be7 commit 2e852e5

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

src/backend/executor/execJunk.c

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
*
4141
* Finally, when at the top level we get back a tuple, we can call
4242
* ExecFindJunkAttribute/ExecGetJunkAttribute to retrieve the values of the
43-
* junk attributes we are interested in, and ExecFilterJunk or ExecRemoveJunk
44-
* to remove all the junk attributes from a tuple. This new "clean" tuple is
45-
* then printed, inserted, or updated.
43+
* junk attributes we are interested in, and ExecFilterJunk to remove all the
44+
* junk attributes from a tuple. This new "clean" tuple is then printed,
45+
* inserted, or updated.
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -317,15 +317,3 @@ ExecFilterJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
317317
*/
318318
return ExecStoreVirtualTuple(resultSlot);
319319
}
320-
321-
/*
322-
* ExecRemoveJunk
323-
*
324-
* Convenience routine to generate a physical clean tuple,
325-
* rather than just a virtual slot.
326-
*/
327-
HeapTuple
328-
ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
329-
{
330-
return ExecCopySlotTuple(ExecFilterJunk(junkfilter, slot));
331-
}

src/include/executor/executor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ extern Datum ExecGetJunkAttribute(TupleTableSlot *slot, AttrNumber attno,
148148
bool *isNull);
149149
extern TupleTableSlot *ExecFilterJunk(JunkFilter *junkfilter,
150150
TupleTableSlot *slot);
151-
extern HeapTuple ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot);
152151

153152

154153
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy