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 1exyO6-00032o-VO for pgsql-general@arkaria.postgresql.org; Mon, 19 Mar 2018 17:15:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1exyO5-0001vs-RQ for pgsql-general@arkaria.postgresql.org; Mon, 19 Mar 2018 17:15:57 +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 1exyO5-0001vi-En for pgsql-general@lists.postgresql.org; Mon, 19 Mar 2018 17:15:57 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1exyNy-0003tp-7e for pgsql-general@lists.postgresql.org; Mon, 19 Mar 2018 17:15:56 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BE1B8211C9; Mon, 19 Mar 2018 13:15:48 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 19 Mar 2018 13:15:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=wITIA+Jm6/Rn/VjAJxWaKv3SqiyCB uMMCN8WZTMpvmA=; b=f2hMygUXhzCwwg4TI9+GeOEWQGFvj2x718E8S+b5obr1v SyMmIhu8x9KReH9pIZcqrPXUaJMaFyrEg4Bunie7Hq+R9TcisfNHmNVksqjNdegD C8GYZYm6Q1qY+ih4Y8lTgacZjM04z2DG9Co6ZPKUg3Qe8dmoDbSpZ4YUwhHy17FT k+63JV5+kGeJHk4bCGrV5ihTojBU2PIFxd8dvIDsnutaaelZCx943VXyvHp2TVvb 4kv/hU52+b4CM7cLUZXoRn45Yr9Ukxx5fFkCO05MinBWEtUeYervPhJnREXcF3cD oFSQBQg3r+LYRWjlTAiC9CGcbhhxW5tsW/yV01ceQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wITIA+ Jm6/Rn/VjAJxWaKv3SqiyCBuMMCN8WZTMpvmA=; b=YX6Wc9kGRf+XcBSv2hMbml VhIC6d7nbfqWM10dUgnHfduTcKZsJ8y4a8mTRWmsa2csKbn7NLa/gUT3HxPvjYsc Oen3Y0Aw4hu1nU7fMW/Lxh+btxF87e8Ws+8JNeLm7x7NlkVTJjdeZ976Fb/L9MqH 33QkbkQaMG2ENbTYZoOsxw/GU1KtFXZCogRkENX3T3epk+HRgNUvztmxydZng3db 5qDgZjf8Q8LbcVhV355NnRdaHrmt0fXAWSTyQCkVqALD48Iq2xsVMGZhDcl/7jMV Zm+jOkYqRGE8jRSROZNWviv6Trb62G87ayQqugklNnquL/uEwidzUpu15FfyfVvA == X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 388897E211; Mon, 19 Mar 2018 13:15:48 -0400 (EDT) Subject: Re: PostgreSQL 9.6 Temporary files To: Jimmy Augustine Cc: pgsql-general@lists.postgresql.org References: <8348151d-96a8-c693-8dc1-21dcfb3e587e@aklaver.com> From: Adrian Klaver Message-ID: Date: Mon, 19 Mar 2018 10:15:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/19/2018 10:12 AM, Jimmy Augustine wrote: > >     On 03/19/2018 09:31 AM, Jimmy Augustine wrote: > >         Dear Friends, > >         I am newbie to postgresql. >         I have 162 GB on my database but when I check size of all >         tables, I approximately obtain 80 GB. >         I also see that I have 68GB of temporary files however > I only >         found 2.4MB at postgres/data/base/pgsql_tmp. > > >     Exactly how did you determine this? > > I used this command and sum result for all database : > SELECT pg_size_pretty(pg_total_relation_size('table_name')); > > And this for complete database : > SELECT pg_size_pretty(pg_database_size('Database Name')); > > > So where did the 68GB number for temporary files come from? > > I don't measure this value by my own. I was disappointed by the gap > between the two queries, so I checked pgAdmin 4 and I saw this value. In what section of pgAdmin4? Or do you know what query it used? > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > -- Adrian Klaver adrian.klaver@aklaver.com