strange slow query - lost lot of time somewhere

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: strange slow query - lost lot of time somewhere
Date: 2022-05-02 08:59:33
Message-ID: CAFj8pRAMp=QsMi6sPQJ4W3hczoFJRvyXHJV3AZAZaMyTVM312Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

I found a query that is significantly slower with more memory

plan 1 - fast https://explain.depesz.com/s/XM1f

plan 2 - slow https://explain.depesz.com/s/2rBw

Strange - the time of last row is +/- same, but execution time is 10x worse

It looks like slow environment cleaning

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2022-05-02 09:09:36 Re: Perform streaming logical transactions by background workers and parallel apply
Previous Message Peter Eisentraut 2022-05-02 08:38:59 Refactor construct_array() and deconstruct_array() for built-in types