pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Size of Temporary tablespace is increasing very much in postgresql 9.1.
3+ messages / 2 participants
[nested] [flat]

* Size of Temporary tablespace is increasing very much in postgresql 9.1.
@ 2016-12-15 10:28  Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Dinesh Chandra 12108 @ 2016-12-15 10:28 UTC (permalink / raw)
  To: pgsql-performance; +Cc: Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>

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 ?


Regards,
Dinesh Chandra
|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.
------------------------------------------------------------------
Mobile: +91-9953975849 | Ext 1078 |dinesh.chandra@cyient.com<mailto:%7Cdinesh.chandra@cyient.com>
Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India.


________________________________

DISCLAIMER:

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Check all attachments for viruses before opening them. All views or opinions presented in this e-mail are those of the author and may not reflect the opinion of Cyient or those of our affiliates.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Size of Temporary tablespace is increasing very much in postgresql 9.1.
@ 2016-12-17 01:57  Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  parent: Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Mark Kirkwood @ 2016-12-17 01:57 UTC (permalink / raw)
  To: Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>; 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


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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Size of Temporary tablespace is increasing very much in postgresql 9.1.
@ 2016-12-19 09:19  Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>
  parent: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
  0 siblings, 0 replies; 3+ messages in thread

From: Dinesh Chandra 12108 @ 2016-12-19 09:19 UTC (permalink / raw)
  To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; pgsql-performance

Dear Mark,

Thanks for your valuable comment.
Now problem is resolved.

Regards,
Dinesh Chandra
|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.
------------------------------------------------------------------
Mobile: +91-9953975849 | Ext 1078 |dinesh.chandra@cyient.com
Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India.

-----Original Message-----
From: Mark Kirkwood [mailto:mark.kirkwood@catalyst.net.nz]
Sent: 17 December, 2016 7:28 AM
To: Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>; pgsql-performance@postgresql.org
Subject: Re: [PERFORM] Size of Temporary tablespace is increasing very much in postgresql 9.1.

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

________________________________

DISCLAIMER:

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Check all attachments for viruses before opening them. All views or opinions presented in this e-mail are those of the author and may not reflect the opinion of Cyient or those of our affiliates.


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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2016-12-19 09:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-15 10:28 Size of Temporary tablespace is increasing very much in postgresql 9.1. Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>
2016-12-17 01:57 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2016-12-19 09:19   ` Dinesh Chandra 12108 <Dinesh.Chandra@cyient.com>

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