Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVQoQ-009nag-L2 for pgsql-general@arkaria.postgresql.org; Sun, 21 Jul 2024 07:16:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sVQoN-0070cP-66 for pgsql-general@arkaria.postgresql.org; Sun, 21 Jul 2024 07:16:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVQoM-0070cG-ON for pgsql-general@lists.postgresql.org; Sun, 21 Jul 2024 07:16:51 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sVQoG-000fqZ-Fk for pgsql-general@postgresql.org; Sun, 21 Jul 2024 07:16:50 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5a1fcb611baso2290667a12.1 for ; Sun, 21 Jul 2024 00:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721546202; x=1722151002; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TpAJsrnAKnfDikm7F1FIHTl5CdanOy6OQDRyihtUPnw=; b=h6xPm907KYM4KFIrkHjzSC1gNfOTgtmgDVo0mVXc67tTGfQb+77tprEBisXZ7S+6YA AEcZKh+tu68ktgOSvzxVup2EsunwALz7u/WXSPYOaR7GBiqSKzkAr4cB5sxUmqJRdgVT gHleUlNI6wOIZz3DBrh31wdxNPJY8mvBDNcZo54Sk/OTzIQp825J/PbOq3r2MBbq09d6 TRTVnbxbnoHB+wDsBPTz5t0/zPvOE8TVclIq41btsmCZUsz+2Z7f1nRnzzRunjlzwYXd Sk5IQ55PcJJE5HjAHIrBZ+vKtN+eLfwVOJC4V2lbX9Fddl9IS+qDWN6EP2Hs9EP+qhj0 MVBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721546202; x=1722151002; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TpAJsrnAKnfDikm7F1FIHTl5CdanOy6OQDRyihtUPnw=; b=RoahDoqutReeI6pz35caQ5XKP07kT8fcn1HEtdXSrWKncjwGFxlnrNDzeJORsz2Ub9 EfU0A4wlC/9JkCYOlFoYyPdbrkXlqLxvdoa0kYJlf/A1FgPHZGsPh0OmeCaOGlK2U3uH HgicYs6kppKT8bOCHPXouRwqUFIpBNBLE2rWsoL2N4Y8NQZrFvmGP9zeLeh3CtYxZvYm U5UDam6LXNMi3lOKUKTbYW6T/isdCbCiL/ruKtWA5QVDyZe2WST6AJmm6f8yg7ke1tCp CmGcq8zN3Z0cDGDuv8DZEdLi6IywZYe+BveOe+JVtCHBmk+Yib3dJw5QWoyI/w2+GW0d O5lA== X-Gm-Message-State: AOJu0YxorbeiNytcTfa7mb32b2+FyxMtiQxPSl1pPSh7TlrMHcJ7Nf9P 4AhUtK/oruKxRL10ZVF0EyeWrHj+U0n4WSOW9IjCBwIXOLcQ9eumgraqMjoF6VPpArvI7T7vb/R 6jOS7ak7brnKrtVYyLH7r4GVqgzqm5A== X-Google-Smtp-Source: AGHT+IG7HNbQyzAMObvZNZfkkDN9ncJYR1dgxCvVhfcFPmuphy9MR1dYbU1Y4BmnoSdAjlzGx1dpiTmcc4FeAJNSP8E= X-Received: by 2002:a05:6402:1d4c:b0:5a3:e652:d59 with SMTP id 4fb4d7f45d1cf-5a4761b3f06mr2402388a12.0.1721546201999; Sun, 21 Jul 2024 00:16:41 -0700 (PDT) MIME-Version: 1.0 References: <01010190d2526ef9-5d0a93fe-30ad-4d6b-9bc8-269c188bd42e-000000@us-west-2.amazonses.com> In-Reply-To: <01010190d2526ef9-5d0a93fe-30ad-4d6b-9bc8-269c188bd42e-000000@us-west-2.amazonses.com> From: Priancka Chatz Date: Sun, 21 Jul 2024 09:16:31 +0200 Message-ID: Subject: Re: Bloated pg_catalog.pg_largeobjects To: postgresql@thewickedtribe.net Cc: "pgsql-general@postgresql.org" Content-Type: multipart/alternative; boundary="000000000000d5af92061dbcb575" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d5af92061dbcb575 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You have to run vacuumlo to remove orphaned large objects. https://www.postgresql.org/docs/current/vacuumlo.html Regards, Priyanka On Sun, 21 Jul 2024 at 12:46=E2=80=AFAM, wr= ote: > Hello All, > > I've got a cluster that's having issues with pg_catalog.pg_largeobject > getting massively bloated. Vacuum is running OK and there's 700GB of free > space in the table and only 100GB of data, but subsequent inserts seem to > be not using space from the FSM and instead always allocating new pages. > The table just keeps growing. > > Is this a known thing, maybe something special about LOs? > > Also, is the only way to recover space here a vacuum full on the table > since it's a catalog table? > > Thanks, > -- > Jon Erdman (aka StuckMojo on IRC) > PostgreSQL Zealot > --000000000000d5af92061dbcb575 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You have to run vacuumlo to remove orphaned large objects= .=C2=A0
Regards,
= Priyanka=C2=A0

On Sun, 21 Jul 2024 at 12:46=E2=80=AFAM, <postgresql@thewickedtribe.net>= wrote:

Hello All,

I've got a cluster that's having = issues with pg_catalog.pg_largeobject getting massively bloated. Vacuum is = running OK and there's 700GB of free space in the table and only 100GB = of data, but subsequent inserts seem to be not using space from the FSM and= instead always allocating new pages. The table just keeps growing.

= Is this a known thing, maybe something special about LOs?

Also, is t= he only way to recover space here a vacuum full on the table since it's= a catalog table?

Thanks,

--=C2= =A0
Jon Erdman (aka StuckMojo on IRC)
=C2=A0=C2=A0=C2=A0 Postg= reSQL Zealot
--000000000000d5af92061dbcb575--