Re: Great change (size of data dir) upgrading postgresql - Mailing list pgsql-general

From Tom Lane
Subject Re: Great change (size of data dir) upgrading postgresql
Date
Msg-id 6576.1074467359@sss.pgh.pa.us
Whole thread Raw
In response to Re: Great change (size of data dir) upgrading postgresql  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> The other thing is the reindex.

I favor the index-bloat idea as well, but it'd be a good idea to verify.
An easy check to make is to see which rows in pg_class have the largest
relpages values.

> Of course you could look at the files within the data/base directory tree and
> see which of those are consuming alot of disk space. These files are named
> after the oid, in pg_class, of the entity they contain.

Correction: data files are named per the relfilenode column of pg_class.
Database directories, however, are named per pg_database.oid.

            regards, tom lane

pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: Great change (size of data dir) upgrading postgresql
Next
From: Jeff Bowden
Date:
Subject: Re: serverless postgresql