Set enable_seqscan doesn't take effect?

From: jacktby jacktby <jacktby(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Set enable_seqscan doesn't take effect?
Date: 2023-09-27 16:37:41
Message-ID: 8B25D481-EE9E-4FA6-AB04-0F15D255F718@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

postgres=# SET enable_seqscan = off;
SET
postgres=# explain select * from t;
QUERY PLAN
-------------------------------------------------------------------------
Seq Scan on t (cost=10000000000.00..10000000023.60 rows=1360 width=32)
(1 row)

postgres=# select * from t;
a
-------
[1,2]
(1 row)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2023-09-27 16:41:31 Re: Index range search optimization
Previous Message Andres Freund 2023-09-27 16:34:13 Re: Eager page freeze criteria clarification