From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Size of Temporary tablespace is increasing very much in postgresql 9.1.
Date: Sat, 17 Dec 2016 14:57:57 +1300
Message-ID: <677ae7cf-d349-fe9d-a810-ba75f9885c44@catalyst.net.nz> (raw)
In-Reply-To: <8e77559fe4f74e469c9079b098c42aca@cyient.com>
References: <8e77559fe4f74e469c9079b098c42aca@cyient.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mark.kirkwood@catalyst.net.nz, Dinesh.Chandra@cyient.com
Subject: Re: Size of Temporary tablespace is increasing very much in postgresql 9.1.
In-Reply-To: <677ae7cf-d349-fe9d-a810-ba75f9885c44@catalyst.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox