PGconn and fork

Поиск
Список
Период
Сортировка
От Rodrigo Barboza
Тема PGconn and fork
Дата
Msg-id CANs8QJajRnuU-Yz26ZQnO7ymAj+wgDvNOZ4L7sWm6y6n7ZeypQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: PGconn and fork  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
<div dir="ltr">Hi, guys.<div style="style">I have a program in C, the createas a connection, do stuff, fork, exit child
andcontinues life.</div><div style="style">Supose that when I create de PGconn, I have 1 active connection in
postgres.</div><divstyle="style">When I fork, does it count as a second connection? I mean, will postrges interpretate
2active connections or they only share the same connection?</div><div style="style">I know that if the child process
executesome query, I can get unexpected results, but it doesn't, so I am safe about that.</div><div style="style">I'm
onlyworried that this can increase the number of connections and reach the limit of max_connections.</div></div> 

В списке pgsql-interfaces по дате отправления:

Предыдущее
От: dhaval257
Дата:
Сообщение: PostgreSQL connect with Visual C++
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PGconn and fork