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 1syWL9-000Uyq-B0 for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2024 13:02:56 +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 1syWL7-001Km8-79 for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2024 13:02:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syWL6-001Km0-MT for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2024 13:02:53 +0000 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1syWL4-000283-GD for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2024 13:02:51 +0000 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-6dde476d3dfso55229617b3.3 for ; Wed, 09 Oct 2024 06:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=americanefficient-com.20230601.gappssmtp.com; s=20230601; t=1728478969; x=1729083769; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=c9uZ4aP0IjyXUjL30VwmNzixInky/aOWAzTeu4nFx3E=; b=PWkfnWWU15qJstJtTJi3Kv1ugL7TOfd6DL0XmOPWfpu52132FTcIgGNQgQ825LptcG zEOxEsguu0XnrC8ifMPnnfSn85sDewsHbMiJFUPw/Fsd6zJKEhMux6+0YQ/WRufGUdu+ 1NRS5drH45kfxSg5clymw/SrH3JfDNhhUiMOSGkQB1l0c7M0MRjLu41cQPROD3hzy+Xs RCPCAvWOScv8qEH26OlTPFkDUeRA/0nsDEPpCvKuQET0L3sN3y/5Ea4TVfhksUWhLPp8 89Wfjruh/oelaBvOu85wxek4Z0MeoT6DiMMQlq9WgjvQdT3mltSAGeb3reKl27vgFPxP JFWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728478969; x=1729083769; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c9uZ4aP0IjyXUjL30VwmNzixInky/aOWAzTeu4nFx3E=; b=andxHBG7wndkV2u9tt1tkuUhP/DSpzHhI1CHbfxCYXhUQXP9U2E7HgOWxOvgf3jAM6 OZ6mPJT1WDMbrmlb1xNuHsolf6yNlsA+T35Oi/kVWwX1RNMGE9r/H2jK3eqbm6ltjYQ3 id/voaXamzhn61r31CfdQMy3xv3aOc8CeS4GMHMclJth0okCmNhfV9iOH+6b0yqMgNxT WAYLA7UvvXrOznANgzadFH5JlOul7B1/27jYnzvz0doHzDmCexQ4FS5/30FoUxM7WGrM a8DiBhlE350QQ5j1FrKJBpY902VnT3bRYFLL/B9hHo5X7bqwOx78p26AF1aCaYz9Tnhz waEA== X-Forwarded-Encrypted: i=1; AJvYcCWFjuhSoVurPsnBsvPDWuKevYxM1aZ1gthh3rzn9572ncaw9OVoI1uWKa7NYGGCHAlj52Zl70FEZYsXgRVP@lists.postgresql.org X-Gm-Message-State: AOJu0Yx+nxcVXqWCESm8NLzAawfR1lNkcdDMw+8G0e1tGtWcHrmrYXo2 CFigx3b5nCwgCEFtxaalBWHq4QCXcAWqbMjhgy+njfTpHZQrZ26DFkAN8374aWU= X-Google-Smtp-Source: AGHT+IHUW9Vf5X8J009tJhIBuCx4g1f+2kRDYGqw/BDlPXauIJ52TnQ0lrm183INPSodQ3CQkuT4GQ== X-Received: by 2002:a05:690c:6009:b0:6e3:1869:897a with SMTP id 00721157ae682-6e3221f84dbmr23696577b3.43.1728478969287; Wed, 09 Oct 2024 06:02:49 -0700 (PDT) Received: from smtpclient.apple (syn-098-026-024-127.res.spectrum.com. [98.26.24.127]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6e2d928057esm18286027b3.54.2024.10.09.06.02.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Oct 2024 06:02:48 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Subject: Re: Disk is filling up with large files. How can I clean? From: Philip Semanchuk In-Reply-To: Date: Wed, 9 Oct 2024 09:02:38 -0400 Cc: Mikael Petterson , "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: =?utf-8?Q?Torsten_F=C3=B6rtsch?= X-Mailer: Apple Mail (2.3818.100.11.1.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 9, 2024, at 5:52=E2=80=AFAM, Torsten F=C3=B6rtsch = wrote: >=20 > Filenames like 16665, 16665.1, 16665.2 etc all represent the same = table (or similar). The number 16665 is called the file node. >=20 > To get a list of file nodes for a specific database you can run: >=20 > SELECT oid::regclass::text, relfilenode FROM pg_class; >=20 > The /16384/ in the path represents the database. To decipher that you = can run: >=20 > SELECT datname, oid FROM pg_database; >=20 > Once you have all that information, you know which database to connect = to and which tables are big. Then you can DROP/DELETE/TRUNCATE or so. Mikael, if you=E2=80=99re unaware of VACUUM FULL (as opposed to just = VACUUM), you should read about that too. Hope that helps, Philip=