Child process procedures

Поиск
Список
Период
Сортировка
Искать
От
Thrasher
Тема
Child process procedures
Дата
Msg-id
3DE4DC24.3020108@fibers.upc.es
Список
Hi all,

I have developed a system that is composed of 10 separate running 
processes. Each of the processes opens a connection to postgres with the 
C interface.

Whenever any process has to process any query, it should fork and create 
a new independent process (not thread). How does the database connection 
is kept?

In other words, if I fork a process that have an opened postgres 
connection, does its children inherit that connection, and can I use 
them as is, closing them at the end, or do I have to open a new 
connection foreach children process ?

Thanks in advance,

Thrasher

В списке pgsql-performance по дате отправления
От: Jim Beckstrom
Дата:
От: Dave Page
Дата:
FAQ