Re: Huge shared hit for small table - Mailing list pgsql-performance

From Andres Freund
Subject Re: Huge shared hit for small table
Date
Msg-id 20191104201728.qwjfwakseprjoe3m@alap3.anarazel.de
Whole thread Raw
In response to Re: Huge shared hit for small table  (Scott Rankin <srankin@motus.com>)
List pgsql-performance
Hi,

On 2019-11-04 19:56:57 +0000, Scott Rankin wrote:
> The index is exceedingly simple:
>
>
> CREATE UNIQUE INDEX "programPK" ON program(id int8_ops);
>
> From pg_stat_user_indexes:
>
> Staging:
>
> idx_scan: 5826745
> idx_tup_read: 52715470
> idx_tup_fetch: 52644465
>
> Production:
>
> idx_scan : 7277919087
> idx_tup_read: 90612605047
> idx_tup_fetch: 5207807880

I was basically asking for SELECT * FROM pgstatindex('pgstatindex');
with pgstatindex being from the pgstattuple extension
https://www.postgresql.org/docs/current/pgstattuple.html
not the pg_stat_user_indexes entry...

Greetings,

Andres Freund



pgsql-performance by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Huge shared hit for small table
Next
From: Scott Rankin
Date:
Subject: Re: Huge shared hit for small table