How to setup only one connection for the whole event loop?

Поиск
Список
Период
Сортировка
От Dominic Gua�a
Тема How to setup only one connection for the whole event loop?
Дата
Msg-id 1639716788.536278.1550160364895@mail.yahoo.com
обсуждение исходный текст
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: github kran
Дата:
Сообщение: Re: Postgresql RDS DB Latency Chossing Hash join Plan
Следующее
От: "Lu, Dan"
Дата:
Сообщение: Version 11.2 for SLES 12?