Caching of sproc - Mailing list pgsql-general

From Rakesh Kumar
Subject Caching of sproc
Date
Msg-id trinity-270ffe6a-eaa4-4e9b-9c65-c2ca29646d9b-1513789796650@3c-app-mailcom-lxa01
Whole thread Raw
List pgsql-general
I want to confirm my understanding.  When a stored procedure is called the first time the code's compiled version is
cachedand used next time it is executed.  However it is cached once for every session and not globally for all
sessions.In other words, if we have a large number of concurrent sessions (x num of sessions) executing the same
procedures(y num of procedures), the memory pressure will be 
 
x * y.

The reason why I am asking this is that the application we are moving from Oracle is heavy on stored procedures with
somepackages running into 8000-10000 lines of code.
 


pgsql-general by date:

Previous
From: Uwe
Date:
Subject: Re: postgresql 9.5 has ocuuered OOM
Next
From: Scott Marlowe
Date:
Subject: Re: postgresql 9.5 has ocuuered OOM