From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Geoghegan <pg(at)bowt(dot)ie>, Shijia Wei <shijiawei(at)utexas(dot)edu>, Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Consecutive Query Executions with Increasing Execution Time |
Date: | 2019-12-18 12:17:10 |
Message-ID: | 2c41458116a7b80fa8eba117d14fdbd5489c4847.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Tue, 2019-12-17 at 11:11 -0500, Jeff Janes wrote:
> On Tue, Dec 17, 2019 at 8:08 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
> > On Mon, 2019-12-16 at 15:50 -0500, Tom Lane wrote:
> > > Peter Geoghegan <pg(at)bowt(dot)ie> writes:
> > > > Why do the first and the twentieth executions of the query have almost
> > > > identical "buffers shared/read" numbers? That seems odd.
> > >
> > > It's repeat execution of the same query, so that doesn't seem odd to me.
> >
> > Really? Shouldn't the blocks be in shared buffers after a couple
> > of executions?
>
> If it is doing a seq scan (I don't know if it is) they intentionally use a
> small ring buffer to, so they evict their own recently used blocks, rather
> than evicting other people's blocks. So these blocks won't build up in
> shared_buffers very rapidly just on the basis of repeated seq scans.
Sure, but according to the execution plans it is doing a Parallel Index Only Scan.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-12-18 13:44:14 | Re: Consecutive Query Executions with Increasing Execution Time |
Previous Message | James (王旭) | 2019-12-18 09:53:26 | How to prevent POSTGRES killing linux system from accepting too much inserts? |