Re: PostgreSQL 9.2.4 temp files never released?

From: "Tomas Vondra" <tv(at)fuzzy(dot)cz>
To: "Edson Richter" <edsonrichter(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL 9.2.4 temp files never released?
Date: 2013-09-29 16:42:36
Message-ID: 8ac72d7fb1290f0c955fb66878a2601b.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 28 Září 2013, 23:25, Edson Richter wrote:
> Em 28/09/2013 18:12, Tomas Vondra escreveu:
>> Do you realize the counters in pg_stat_database (temp_files, temp_bytes)
>> are counters tracking all the temp files created since the last reset of
>> the stats (possible since the cluster was created)?
>>
>> So these values only increment (and it's meant to behave like that). BTW
>> this is true for most values in the stats catalogs, so there's nothing
>> like "current stats" - to get something like that you need to get two
>> snapshots and subtract them (to get the delta).
>>
>> Tomas
>
> Ah, ok! One more lesson learned...
> I would expect stats being current of, or up-to-date after a vacuum
> analyze...
> Thank you all very much.

Vacuum has nothing to do with this. The temp files are removed immediately
(by the particular operation that created them) once not needed anymore.
Unless something goes terribly wrong, of course ...

Tomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-09-29 16:46:32 Re: Trouble installing psycopg2
Previous Message Augori 2013-09-29 16:38:12 Re: Trouble installing psycopg2