pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jimmy Augustine <jimmy.augustine@enyx.fr>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL 9.6 Temporary files
Date: Mon, 19 Mar 2018 10:15:47 -0700
Message-ID: <fd406c0f-cfbc-73fe-ef45-98e24d120f49@aklaver.com> (raw)
In-Reply-To: <CAF3uhZHu5BL7FP+S73EKzFBJCeinRkqhtdMVcYksDr032tw4Pg@mail.gmail.com>
References: <CAF3uhZEOcin4X743uiB-bbvs6yRtov8QB=MDFDi1mSPnHDcd+Q@mail.gmail.com>
	<8348151d-96a8-c693-8dc1-21dcfb3e587e@aklaver.com>
	<CAF3uhZHW9mdSygjEy3fCoGL7X7R+s358N2AD+T6HRmJj6FjF4w@mail.gmail.com>
	<b9c42dc4-bac7-0a6d-a4cb-f4ba21aaf9c6@aklaver.com>
	<CAF3uhZHu5BL7FP+S73EKzFBJCeinRkqhtdMVcYksDr032tw4Pg@mail.gmail.com>

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 <mailto:adrian.klaver@aklaver.com>
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (22+ messages)  latest in thread

Message-ID: <fd406c0f-cfbc-73fe-ef45-98e24d120f49@aklaver.com>
Permalink:  ../fd406c0f-cfbc-73fe-ef45-98e24d120f49@aklaver.com/
Also on:    postgresql.org/message-id/fd406c0f-cfbc-73fe-ef45-98e24d120f49@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, jimmy.augustine@enyx.fr
  Subject: Re: PostgreSQL 9.6 Temporary files
  In-Reply-To: <fd406c0f-cfbc-73fe-ef45-98e24d120f49@aklaver.com>
  References: <CAF3uhZEOcin4X743uiB-bbvs6yRtov8QB=MDFDi1mSPnHDcd+Q@mail.gmail.com> <8348151d-96a8-c693-8dc1-21dcfb3e587e@aklaver.com> <CAF3uhZHW9mdSygjEy3fCoGL7X7R+s358N2AD+T6HRmJj6FjF4w@mail.gmail.com> <b9c42dc4-bac7-0a6d-a4cb-f4ba21aaf9c6@aklaver.com> <CAF3uhZHu5BL7FP+S73EKzFBJCeinRkqhtdMVcYksDr032tw4Pg@mail.gmail.com> <fd406c0f-cfbc-73fe-ef45-98e24d120f49@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox