The first function call

From: Diego Silva e Silva <diegogrv(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: The first function call
Date: 2018-01-11 15:52:10
Message-ID: CADecqhHWSkuGGaKCeHQ2V4Bz==cVgcXATLTERspMx1-nPE1yXQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

The first function call is 10 times slower than the other calls in the same
session. Is it possible to shorten this long time on the first call?
For example. Call my function for once, this call returns at 70ms on the
next call, the return is at 7ms.

thanks.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ildar Musin 2018-01-11 15:53:22 Re: General purpose hashing func in pgbench
Previous Message Tom Lane 2018-01-11 15:42:38 Re: pg_get_functiondef forgets about most GUC_LIST_INPUT GUCs