Re: Size of Temporary tablespace is increasing very much in postgresql 9.1.

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: Dinesh Chandra 12108 <Dinesh(dot)Chandra(at)cyient(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Size of Temporary tablespace is increasing very much in postgresql 9.1.
Date: 2016-12-17 01:57:57
Message-ID: 677ae7cf-d349-fe9d-a810-ba75f9885c44@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 15/12/16 23:28, Dinesh Chandra 12108 wrote:

> Dear expert,
>
> In postgreSQL-9.1,the size of *pgsql_tmp* inside tablespace (Temp
> tablespace) is increased by 544G in one day.
>
> However, the DBsize is as usual but tablespace size is getting increased.
>
> Could you please suggest why it is happening ?
>
>

That is due to queries doing sorts or (hash) joins. You can log which
queries are doing this with the log_temp_files parameter.

Now it might be that this is just normal/expected (e.g complex data
warehouse style workload), but it could also be many small queries that
might benefit from some additional indexes (logging the queries will
help you decide what if anything needs to be done).

regards

Mark

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Gabliver Faluker 2016-12-17 22:25:53 bad performance
Previous Message Dinesh Chandra 12108 2016-12-15 10:28:39 Size of Temporary tablespace is increasing very much in postgresql 9.1.