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 010c0ea commit 65c4e46Copy full SHA for 65c4e46
src/backend/storage/aio/read_stream.c
@@ -392,13 +392,14 @@ read_stream_begin_relation(int flags,
392
Oid tablespace_id;
393
SMgrRelation smgr;
394
395
+ smgr = RelationGetSmgr(rel);
396
+
397
/*
398
* NEON: We don't benefit from the OS readahead that callers with
399
* READ_STREAM_SEQUENTIAL expect, so we disable that flag.
400
*/
- flags &= ~READ_STREAM_SEQUENTIAL;
-
401
- smgr = RelationGetSmgr(rel);
+ if (!SmgrIsTemp(smgr))
402
+ flags &= ~READ_STREAM_SEQUENTIAL;
403
404
405
* Decide how many I/Os we will allow to run at the same time. That
0 commit comments