Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e852e5

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'tseem to have any reason to live, since it's merely a combination of twoeasy function calls, and not a well-designed combination at that (itencourages callers to leak the result tuple).
1 parenta210be7 commit2e852e5

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 ExecFilterJunkor ExecRemoveJunk
44-
*to remove all thejunk attributes from a tuple. This new "clean" tuple is
45-
*then printed,inserted, or updated.
43+
* junk attributes we are interested in, and ExecFilterJunkto 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
returnExecStoreVirtualTuple(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-
returnExecCopySlotTuple(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
externTupleTableSlot*ExecFilterJunk(JunkFilter*junkfilter,
150150
TupleTableSlot*slot);
151-
externHeapTupleExecRemoveJunk(JunkFilter*junkfilter,TupleTableSlot*slot);
152151

153152

154153
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp