Re: db size - Mailing list pgsql-performance

From Richard Huxton
Subject Re: db size
Date
Msg-id 48070708.4060605@archonet.com
Whole thread Raw
In response to Re: db size  (Adrian Moisey <adrian@careerjunction.co.za>)
Responses Re: db size
Re: db size
List pgsql-performance
Adrian Moisey wrote:
> Hi
>
>> Running VACUUM VERBOSE will give you a detailed view of space usage of
>> each individual table.
>
> I did that.
>
> Not too sure what I'm looking for, can someone tell me what this means:
>
> INFO:  "blahxxx": scanned 27 of 27 pages, containing 1272 live rows and
> 0 dead rows; 1272 rows in sample, 1272 estimated total rows

This is a small table that takes up 27 pages and it scanned all of them.
You have 1272 rows in it and none of them are dead (i.e. deleted/updated
but still taking up space).

> INFO:  free space map contains 4667977 pages in 1199 relations
> DETAIL:  A total of 4505344 page slots are in use (including overhead).
> 4505344 page slots are required to track all free space.
> Current limits are:  15537488 page slots, 1200 relations, using 91172 kB.

You are tracking ~ 4.6 million pages and have space to track ~ 15.5
million, so that's fine. You are right up against your limit of
relations (tables, indexes etc) being tracked though - 1200. You'll
probably want to increase max_fsm_relations - see manual for details
(server configuration / free space map).

--
   Richard Huxton
   Archonet Ltd

pgsql-performance by date:

Previous
From: Greg Smith
Date:
Subject: Strange behavior: pgbench and new Linux kernels
Next
From: Adrian Moisey
Date:
Subject: Re: db size