X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 652E7D1C9C9 for ; Tue, 29 Jul 2003 23:24:26 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 07387-07 for ; Tue, 29 Jul 2003 20:23:28 -0300 (ADT) Received: from smtp.noos.fr (nan-smtp-03.noos.net [212.198.2.72]) by svr1.postgresql.org (Postfix) with ESMTP id 51BB2D1C9C5 for ; Tue, 29 Jul 2003 20:24:24 -0300 (ADT) Received: (qmail 38913022 invoked by uid 0); 29 Jul 2003 23:24:25 -0000 Received: from unknown (HELO gmendola) ([212.198.37.110]) (envelope-sender ) by 212.198.2.72 (qmail-ldap-1.03) with SMTP for ; 29 Jul 2003 23:24:25 -0000 Message-ID: <007201c35628$6d188570$10d4a8c0@mm.eutelsat.org> From: "Mendola Gaetano" To: Cc: References: <20030729180926.EFE0913EA6@guthrie.charm.net> Subject: Re: storage calculations Date: Wed, 30 Jul 2003 01:23:31 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/308 X-Sequence-Number: 9648 writes: > i've been browsing the documentation online, and i can't > find where the storage layouts for tables and indexes are > explained. > > i'd like to be able to figure out, given a table or two > with a simple schema (no ineritance) and some indexes, and > a number of rows currently in these tables, how much disk > space is being used. oid2name | grep give you the name of the directory where the database is stored inside your $PGDATA directory. In order to now the name of the file that correspond to your table: oid2name -d -t Regards Gaetano Mendola