Re: [PERFORM] Size of Temporary tablespace is increasing very much inpostgresql 9.1. - Mailing list pgsql-performance

From Mark Kirkwood
Subject Re: [PERFORM] Size of Temporary tablespace is increasing very much inpostgresql 9.1.
Date
Msg-id 677ae7cf-d349-fe9d-a810-ba75f9885c44@catalyst.net.nz
Whole thread Raw
In response to [PERFORM] Size of Temporary tablespace is increasing very much in postgresql9.1.  (Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>)
Responses Re: [PERFORM] Size of Temporary tablespace is increasing very much inpostgresql 9.1.
List 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


pgsql-performance by date:

Previous
From: Dinesh Chandra 12108
Date:
Subject: [PERFORM] Size of Temporary tablespace is increasing very much in postgresql9.1.
Next
From: Gabliver Faluker
Date:
Subject: [PERFORM] bad performance