Re: Function performance drops during execution of loop - Mailing list pgsql-general

From Tom Lane
Subject Re: Function performance drops during execution of loop
Date
Msg-id 2040.1400687520@sss.pgh.pa.us
Whole thread Raw
In response to Function performance drops during execution of loop  (Seref Arikan <serefarikan@kurumsalteknoloji.com>)
Responses Re: Function performance drops during execution of loop
Re: Function performance drops during execution of loop
List pgsql-general
Seref Arikan <serefarikan@kurumsalteknoloji.com> writes:
> What may be building up here? I suspect deleting all rows from the temp
> tables is not really deleting them since this is all happening in a
> transaction, but it is my uneducated guess only.

I suspect you suspect correctly.  Autovacuum does not touch temp tables,
so it won't help you deal with deleted tuples.  Given the usage pattern
you're describing, I think that using a TRUNCATE rather than
delete-all-the-rows would help ... but if you're already doing that,
we need more info.

            regards, tom lane


pgsql-general by date:

Previous
From: Seref Arikan
Date:
Subject: Function performance drops during execution of loop
Next
From: Seref Arikan
Date:
Subject: Re: Function performance drops during execution of loop