pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: is it safe to drop 25 tb schema with cascade option?
Date: Thu, 19 Sep 2019 14:34:27 -0700
Message-ID: <d0c2055d-1fe1-2e03-9d7a-9c4820b81bd3@aklaver.com> (raw)
In-Reply-To: <BYAPR08MB5014807E8AF95524A6A4F439AC890@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB5014C652EB9FEE28CB407B58AC890@BYAPR08MB5014.namprd08.prod.outlook.com>
	<71b7be3f-6f7f-cce4-ce76-87febd8295b0@aklaver.com>
	<BYAPR08MB5014775B6DA5A7785D052B3FAC890@BYAPR08MB5014.namprd08.prod.outlook.com>
	<b9d21625-6f45-da7e-e3e3-01771c069941@aklaver.com>
	<BYAPR08MB5014807E8AF95524A6A4F439AC890@BYAPR08MB5014.namprd08.prod.outlook.com>

On 9/19/19 2:24 PM, Julie Nishimura wrote:
> Adrian,
> We do run vacuum w/o FULL every day:
> SYSTABLES="' pg_catalog.' || relname || ';' from pg_class a, 
> pg_namespace b where a.relnamespace=b.oid and b.nspname='pg_catalog' an
> d a.relkind='r'"
> 
> But it does not look like it frees up the space...
> 
> Or you meant we need to run vacuum on 'my_db_name' without parameters,  
> that it runs for every table? I am just not sure how long it will take 
> to run for 39 tb...:(

Should have added to previous post that in this link:

https://www.postgresql.org/docs/8.2/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND

there are some queries that can will show you the XID status for tables 
and the database.



> 
> Thanks



-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (9+ messages)  latest in thread

Message-ID: <d0c2055d-1fe1-2e03-9d7a-9c4820b81bd3@aklaver.com>
Permalink:  ../d0c2055d-1fe1-2e03-9d7a-9c4820b81bd3@aklaver.com/
Also on:    postgresql.org/message-id/d0c2055d-1fe1-2e03-9d7a-9c4820b81bd3@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, juliezain@hotmail.com
  Subject: Re: is it safe to drop 25 tb schema with cascade option?
  In-Reply-To: <d0c2055d-1fe1-2e03-9d7a-9c4820b81bd3@aklaver.com>
  References: <BYAPR08MB5014C652EB9FEE28CB407B58AC890@BYAPR08MB5014.namprd08.prod.outlook.com> <71b7be3f-6f7f-cce4-ce76-87febd8295b0@aklaver.com> <BYAPR08MB5014775B6DA5A7785D052B3FAC890@BYAPR08MB5014.namprd08.prod.outlook.com> <b9d21625-6f45-da7e-e3e3-01771c069941@aklaver.com> <BYAPR08MB5014807E8AF95524A6A4F439AC890@BYAPR08MB5014.namprd08.prod.outlook.com> <d0c2055d-1fe1-2e03-9d7a-9c4820b81bd3@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox