Re: Seeking performance advice and explanation for high I/O on 8.3

From: "Scott Otis" <scott(dot)otis(at)intand(dot)com>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>
Cc: "Ivan Voras" <ivoras(at)freebsd(dot)org>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Seeking performance advice and explanation for high I/O on 8.3
Date: 2009-09-04 06:54:53
Message-ID: F406B740738CB44A8BCBEF9734ECF66303296C@albus.intand.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Robert Haas <robertmhaas(at)gmail(dot)com>:

> Do you by any chance have a bazillion databases in this cluster? Can
> you do these?

> select sum(1) from pg_database;

1555

> select pg_relation_size('pg_database');

221184

> select sum(pg_column_size(d.*)) from pg_database;

That gave me:

ERROR: missing FROM-clause entry for table "d"
LINE 1: select sum(pg_column_size(d.*)) from pg_database;

So I did this:

select sum(pg_column_size(d.*)) from pg_database as d;

and got:

192910

Also did this:

select sum(pg_database_size(datname)) from pg_database;

and got:

13329800428 (12.4GB)

Scott

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Claus Guttesen 2009-09-04 06:59:13 Re: Seeking performance advice and explanation for high I/O on 8.3
Previous Message Scott Otis 2009-09-04 06:34:04 Re: Seeking performance advice and explanation for high I/O on 8.3