Re: Apache child processes making multiple persistent

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: Apache child processes making multiple persistent
Дата
Msg-id 3E475747.1010009@paradise.net.nz
обсуждение исходный текст
Ответ на Apache child processes making multiple persistent database connections via Apache::DBI  ("Ben Borger" <spd@platinumsystems.net>)
Список pgsql-interfaces
Ben Borger wrote:

> Hello,
>
> Is it normal for Apache child threads to be opening more than one 
> persistent
> database connection to Postgres?  DBI 1.19, Apache::DBI 0.88
>
>  
>
How I think it works is :

Each connection to the db for a userid and an apache child results in a 
persistent connection.

So if user1, user2 both get serviced by apache child 1, then it ends up 
with a persistent connection for each of them.

How this problem is often circumvented is to authenticate externally, 
save credentials (or an id for them) in a cookie, and do all db work by 
means 1 synthetic database userid.

best wishes

Mark






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

Предыдущее
От: Matthew Vanecek
Дата:
Сообщение: Connection Error message in ECPG
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: Connection Error message in ECPG