Re: Digesting explain analyze - Mailing list pgsql-performance

From Greg Smith
Subject Re: Digesting explain analyze
Date
Msg-id 4B4581A3.1050401@2ndquadrant.com
Whole thread Raw
In response to Re: Digesting explain analyze  (Jesper Krogh <jesper@krogh.cc>)
List pgsql-performance
Jesper Krogh wrote:
> Is it possible to get PG to tell me, how many rows that fits in a
> disk-page. All columns are sitting in "plain" storage according to \d+
> on the table.
>
select relname,round(reltuples / relpages) as "avg_rows_per_page" from
pg_class where relpages > 0;

--
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com


pgsql-performance by date:

Previous
From: Jesper Krogh
Date:
Subject: Re: Digesting explain analyze
Next
From: Craig Ringer
Date:
Subject: Re: pg_connect takes 3.0 seconds