Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbHgL-00009u-Ay for pgsql-general@arkaria.postgresql.org; Tue, 27 Apr 2021 06:58:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbHgK-0005fZ-9E for pgsql-general@arkaria.postgresql.org; Tue, 27 Apr 2021 06:58:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbHgK-0005dc-1n for pgsql-general@lists.postgresql.org; Tue, 27 Apr 2021 06:58:52 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lbHgH-0006Xy-If for pgsql-general@lists.postgresql.org; Tue, 27 Apr 2021 06:58:51 +0000 Received: by mail-ej1-x630.google.com with SMTP id zl7so8331842ejb.6 for ; Mon, 26 Apr 2021 23:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=BVdJhRbSmuyEaMLjm86HDuhjb/Ff4aNvxrXO6czqrMg=; b=uzRtU47Nz3ZcFki1MaOfsGQ9lwsBnNM/I+3dXgKKYahoXWXT378b1U1B1IOZoyjKXz 8BX12wLlSnPPgrnF3VxFZlpydtUZJFlNGplbOP5qzaSjcVUHQqzs6OIsbIzUkna9o+BR s/9oFNCEOCqTowD9vrPBkxwrLa9xx/33zRqUjP6I8NFoRfqsD3b+y7t82K1yy0ZVC4eF NsrMi06sYsJ14r+C0BgNMqkJtkyJjcEjvMAWM8yo8qx3m7L+zyjZ8ePBhDJHzNwVOmDb 5rYcDBGGVjdZDL4CxLk36CfiNNnoUKRyIo0F9YHjbjqqgPgs1+odtJ32I5TiyMHVH4Vt 01lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=BVdJhRbSmuyEaMLjm86HDuhjb/Ff4aNvxrXO6czqrMg=; b=f2/CVcZWrkBmFf+l96/4ZPVhDGwxTH69mxExoiQ2KUTvlEgjwCJTA0LQrYnaNoQGNm i/ae1G7MwrtOQ6QJYf6sbE0oLfGM9fxdrw3K1uOV/z1dBVz5ZgrVx7FMuMMJi6EwYm4q ADnCpGuSgkSaXhrCLgyeDGEES7lYESr5fu1igVFmK21ZLOeIGOfN5toiabVNRZ/Zmyyu PCRPQ0sWDC5Mz59xL817IL13vu4n4qDunnvYf8/RHMarHJVeGUr9YdPnwAF6r+jAqeZQ cJNlKcVrgXAj4Xbb+ehplQpPayyqCK4yoinO9JV6WsdheK5oaAiluQzHuPCYON80lhUZ HJJw== X-Gm-Message-State: AOAM532+Zkv84EVhWQBsJsf0SjQfOL6nuEvLwYe92/1SCOnDrloz80u+ 0G3JIapBfM0hcl3w7oOuLv9PEQ== X-Google-Smtp-Source: ABdhPJwowa4t4G73tPtCfD1jGRxM2jKNF8UppKYEEqx8QSyY03OaviVuh11ZMo8cE1BkoN6XIDDZzg== X-Received: by 2002:a17:906:3989:: with SMTP id h9mr21745262eje.309.1619506727560; Mon, 26 Apr 2021 23:58:47 -0700 (PDT) Received: from localhost.localdomain (217-149-166-173.nat.highway.telekom.at. [217.149.166.173]) by smtp.gmail.com with ESMTPSA id bu8sm1649285edb.77.2021.04.26.23.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 23:58:47 -0700 (PDT) Message-ID: <8fa46955e1516d15230fc59559db3eb7b8d066cd.camel@cybertec.at> Subject: Re: DB size From: Laurenz Albe To: Alvaro Herrera , luis.roberto@siscobra.com.br Cc: pgsql-general Date: Tue, 27 Apr 2021 08:58:46 +0200 In-Reply-To: <20210426204534.GA16381@alvherre.pgsql> References: <20210426204534.GA16381@alvherre.pgsql> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2021-04-26 at 16:45 -0400, Alvaro Herrera wrote: > I would guess that there are leftover files because of those crashes you > mentioned. You can probably look for files in the database subdir in > the data directory that do not appear in the pg_class.relfilenode > listing for the database. Not all tables have their "relfilenode" set: SELECT relfilenode FROM pg_class WHERE relname = 'pg_class'; relfilenode ═════════════ 0 (1 row) Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com