Search Postgresql Archives

Re: PostgreSQL 9.6 Temporary files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux