Re: Max_connections limit

From: Hervé Schweitzer (HER) <herve(dot)schweitzer(at)dbi-services(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Daulat Ram <Daulat(dot)Ram(at)exponential(dot)com>, "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: Max_connections limit
Date: 2019-06-26 09:15:45
Message-ID: 6986F9A0-F84A-4597-B531-995E35D5AD9C@dbi-services.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

You now that Postgres don’t have any shared_pool as Oracle, and the session information ( execution plan, etc..) are only available for the current session. Therefore I also highly recommend to us a connection poll as Laurent wrote, in order to have higher chance that some stuff is already cached in the shared session available.

Regards
Herve

Envoyé de mon iPhone

> Le 26 juin 2019 à 11:05, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> a écrit :
>
> Daulat Ram wrote:
>> We have migrated our database from Oracle 12c to Postgres 11. I need your suggestions ,
>> we have sessions limit in Oracle = 3024 . Do we need to set the same connection limit
>> in Postgres as well. How we can decide the max_connections limit for postgres.
>> Are there any differences in managing connections in Oracle and postgres.
>
> I'd say that is way too high in both Oracle and PostgreSQL.
>
> Set the value to 50 or 100 and get a connection pooler if the
> application cannot do that itself.
>
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
>
>
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Rick Otten 2019-06-26 12:38:46 Re: Max_connections limit
Previous Message Laurenz Albe 2019-06-26 09:05:11 Re: Max_connections limit