Re: Catalog Bloat in Development - Frequently dropping/adding schemas and objects

From: Ben Madin <lists(at)remoteinformation(dot)com(dot)au>
To: David Johnston <polobo(at)yahoo(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Catalog Bloat in Development - Frequently dropping/adding schemas and objects
Date: 2012-06-29 22:10:49
Message-ID: D87DCFA7-603F-4EFE-9173-2D7E1C71ED37@remoteinformation.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David,

the VACUUM FULL VERBOSE command might overcome this - I believe it works by effectively doing what you are proposing with a drop database and recreate. It does however lock the tables during the process (not a problem in a dev environ one assumes) but may not be ideal on a live database.

cheers

Ben

On 30/06/2012, at 4:45 AM, David Johnston wrote:

> In my current development environment I often drop some or all of the schemas in the database and then re-create them schemas and the objects they contain. When I go to bring up the database in my GUI it takes a considerable amount of time to initialize. I suspect this is because the catalog tables are becoming bloated. What is the recommended course of action to de-bloat them? Running an unqualified vacuum does not seem to help. Is it better to just periodically drop and recreate the database itself or would a vacuum with specific tables listed be sufficient – and if so which tables?
>
> Thanks!
>
> David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ben Chobot 2012-06-29 22:12:12 Re: Promotion of standby to master
Previous Message David Johnston 2012-06-29 22:07:51 Re: LEFT and RIGHT JOIN