On 26. Nov 2019, at 03:19, Игорь Выскорко <vyskorko.igor@yandex.ru> wrote:Hi all!I'm confused by planner choice: seqscan but not index scan when index scan cost is much cheaper.1st plan: https://explain.depesz.com/s/Cti#l82nd plan (with "set enable_seqscan = off"): https://explain.depesz.com/s/qn0I#l8Look at 8th row: this nested loop decided to join the second node by using seqscan (1st plan) when index is available (2nd plan). Index scan is much cheaper (0.430 over 257.760). What am I missing?And thanks for any reply!
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных