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


--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Reply via email to