How to setup only one connection for the whole event loop? - Mailing list pgsql-general

From Dominic Gua�a
Subject How to setup only one connection for the whole event loop?
Date
Msg-id 1639716788.536278.1550160364895@mail.yahoo.com
Whole thread Raw
Responses Re: How to setup only one connection for the whole event loop?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: How to setup only one connection for the whole event loop?  (Francisco Olarte <folarte@peoplecall.com>)
List pgsql-general
Dear all,

I am new to postgresql and I am creating a c program that can receive request from different users. I want to maximize the performance of postgresql so I intend to just create 1 connection that would service all queries of different users. How do I do this?

Do I create a new connection each time there is a new request like how it goes in MySQL or can I just have one connection that is established in my `main` function?

Sincerely

pgsql-general by date:

Previous
From: github kran
Date:
Subject: Re: Postgresql RDS DB Latency Chossing Hash join Plan
Next
From: "Lu, Dan"
Date:
Subject: Version 11.2 for SLES 12?