We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 768f623 commit bcf93e6Copy full SHA for bcf93e6
src/backend/executor/nodeSeqscan.c
@@ -101,14 +101,22 @@ SeqNext(SeqScanState *node)
101
/*
102
* get the next tuple from the table
103
*/
104
- while (table_scan_getnextslot(scandesc, direction, slot))
+ if (node->filter_in_seqscan && node->filters)
105
{
106
- if (node->filter_in_seqscan && node->filters &&
107
- !PassByBloomFilter(node, slot))
108
- continue;
+ while (table_scan_getnextslot(scandesc, direction, slot))
+ {
+ if (!PassByBloomFilter(node, slot))
109
+ continue;
110
- return slot;
111
+ return slot;
112
+ }
113
}
114
+ else
115
116
+ if (table_scan_getnextslot(scandesc, direction, slot))
117
118
119
+
120
return NULL;
121
122
0 commit comments