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

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

 



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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux