From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Mark Parker <markus_ext(at)senator(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: newbie questions |
Date: | 2003-11-24 19:27:10 |
Message-ID: | Pine.LNX.4.44.0311242025130.21306-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Mark Parker writes:
> First, is there a way to link the file in the database directory, which
> are all numbers, to specific databases?
contrib/oid2name
> Second, I've got some dbs that have some really huge files. A nightly
> vacuum (not full) is running.
Non-full vacuum does not shrink the table files on disk; it just remembers
the space for reuse. So you should try a full vacuum to see if things
shrink.
> I've been told that the way they've been getting the db back to a
> reasonable size was via the ps_dump, drop table, recreate table psql <
> dumpfile routing. Seems a bit excessive.
That could have been the case if the files concerned belong to an index.
In that case it's preferrable to try REINDEX.
--
Peter Eisentraut peter_e(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Brian Hirt | 2003-11-24 19:29:49 | fairly serious bug with pg_autovacuum in pg7.4 |
Previous Message | Peter Eisentraut | 2003-11-24 19:13:30 | Re: Can't initdb, libdir points to static location |