Re: pl/pgsql performance

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Mehdi Ravanbakhsh <babakco(at)gmail(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: pl/pgsql performance
Date: 2014-04-25 08:53:03
Message-ID: CAFj8pRAh2Tct-nv6Bha3_SMUWWbV20eCsrpQzecW+y2r4VS8XA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hello

2014-04-25 10:48 GMT+02:00 Mehdi Ravanbakhsh <babakco(at)gmail(dot)com>:

> Hi All
>
> I have one big Pl/Pgsql function (about 1500 line code) , i can divided
> it to about 5 part and call each script from main script . In this case
> i need to know which way is faster .
>
> and some question about pgsql :
>
> 1- is pgsql engine open one process for each script ?
>

PostgreSQL uses one CPU per session.

> 2- how i can chose max connection number for pgsql server based on cpu
> core and RAM capacity that have maximum Efficiency?
>

usually max performance is about 10 x CPU connections. But it highly
depends on load.

Regards

Pavel Stehule

>
> Thanks and Best ergards.
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Ilya Kosmodemiansky 2014-04-25 09:19:00 Re: Server vacuuming the same table again and again
Previous Message Mehdi Ravanbakhsh 2014-04-25 08:48:05 pl/pgsql performance