Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0SuT-00051H-Ud for pgsql-admin@arkaria.postgresql.org; Mon, 26 Mar 2018 14:15:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0SuS-0001Ym-UT for pgsql-admin@arkaria.postgresql.org; Mon, 26 Mar 2018 14:15:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0SuS-0001Yb-IH for pgsql-admin@lists.postgresql.org; Mon, 26 Mar 2018 14:15:40 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f0SuP-0008LT-3a for pgsql-admin@postgresql.org; Mon, 26 Mar 2018 14:15:39 +0000 Received: by mail-wm0-x233.google.com with SMTP id h76so15744769wme.4 for ; Mon, 26 Mar 2018 07:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leboutique.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ifoWJk6HTrIIVvSZKXvZOt0wWLzjuRZaRr9uCcsPyBg=; b=KeHI4Y7LgL+qBihXvoYRMx7ckR1fDSDvTLhxayW74+ZQcV8QFR2b+GmHE9BcnXsrNw cISfXJunmDuSZplytOZasmiErmKsIkzIXvQukGnU9UGHPZQdwR/3TQ+eBgl15WzFfq9q FZDOaCFM1aoyeOlKCMC/D7gIewZZsJQ8YC5T0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ifoWJk6HTrIIVvSZKXvZOt0wWLzjuRZaRr9uCcsPyBg=; b=q1sOtIH8G/SiKDAq4FzbNg0GhfM11YV/Qbtl9OdmSMQbzWEtHfVrFimhP/CrNDRiqS k4C1Ugph26sxsSvneuf+ePlSDV623XWpS42Pk6T/Vp/5azk0XGyui1++l1tWE6hOT9w9 5rmlLtAwRsvdVEnFve3gZ7G/rSQHsLP9nAtzN4igEnX1rVqTGjc50FK3a8PdvcTSsQ98 8Et8HqqXrXilG4JoOKnAPPOjlyYXTrxhFJ5xOrxPr+TmHCpWB+7QRu6eoYb6szQAjtvj +YiFC7uWBEAbwrAMUlMI1EPFnRyV9w023Y98R+wUxKazXdYtci0CPAWBNqkC1g9EYfjY WHBg== X-Gm-Message-State: AElRT7H2PrAQoRSV9HdBqS1aqO134paAdrz4ApkxJE2MSsSuiI8p0AcP HB9KS/C0VtU10EIa2KpPdr9oZVQ5GWfTwGmQ3B54vg== X-Google-Smtp-Source: AIpwx48+509277AcsnEn+Q6q1RxMxY/G7raNe6artr+D8Vaixdce+cLz+DzcWMY8O3DvDMB5Ut0vjsqxNMyFr+isD/c= X-Received: by 10.80.234.139 with SMTP id d11mr5520448edo.7.1522073735161; Mon, 26 Mar 2018 07:15:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.167.229 with HTTP; Mon, 26 Mar 2018 07:15:14 -0700 (PDT) In-Reply-To: References: From: Artem Tomyuk Date: Mon, 26 Mar 2018 17:15:14 +0300 Message-ID: Subject: Re: how to shrink pg_attribute table in some database To: Keith Cc: pgsql-admin Content-Type: multipart/alternative; boundary="883d24f215484e83950568516888" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --883d24f215484e83950568516888 Content-Type: text/plain; charset="UTF-8" For now pg_attribute bloated to 300GB in size, and we have only 260GB's of free space on disk. In normal situation pg_attribute takes 50mb in size for our DB... Can we assume that if we will run vacuum full on pg_attribute it will take additional 50MB on disk? Thanks 2018-03-26 16:41 GMT+03:00 Keith : > > > On Mon, Mar 26, 2018 at 9:35 AM, Artem Tomyuk > wrote: > >> Hi, Gurus!!!! >> >> Maybe someone knows what is the best way to shrink pg_attribute in size? >> Maybe backup and restore of this table will sanitize "dead" records in it? >> Or only full vacuum can help in this situation? >> >> Thanks! >> > > VACUUM FULL would be the way to go if bloat is the issue you're trying to > fix. Trying to backup up & restore a single system catalog would not be > recommended. > > Keith > --883d24f215484e83950568516888 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For now pg_attribute bloated to 300GB in size, and we= have only 260GB's of free space on disk.
In normal situation pg_a= ttribute takes 50mb in size for our DB...=C2=A0
Can we assume that if w= e will run vacuum full on pg_attribute it will take additional 50MB on disk= ?

Thanks
2018-03-26 16:41 GMT+03:00 Keith <keith@keithf= 4.com>:


On Mon, Mar 26, 2018 at 9:35 AM, Artem Tomyuk <= ;admin@leboutique= .com> wrote:
Hi, Gurus!!!!

Maybe someone knows what is the best wa= y to shrink=C2=A0pg_attribute=C2=A0 in size?=C2=A0
Maybe backup a= nd restore of this table will sanitize "dead" records in it?
Or only full vacuum can help in this situation?

<= div>Thanks!

VACUUM = FULL would be the way to go if bloat is the issue you're trying to fix.= Trying to backup up & restore a single system catalog would not be rec= ommended.

Keith

--883d24f215484e83950568516888--