Re: [GENERAL] Perl - Apache / Postgress

Поиск
Список
Период
Сортировка
От Adriaan Joubert
Тема Re: [GENERAL] Perl - Apache / Postgress
Дата
Msg-id 378C4E58.8751B0AA@albourne.com
обсуждение исходный текст
Ответ на Perl - Apache / Postgress  ("Erik Colson" <beaver@glo.be>)
Список pgsql-general
> Erik Colson wrote:
>
> I'm using Apache with mod_perl to access a PostgresSQL database (6.5)
> .
>
> The script starts with connecting to the database... this means that
> the server is actually reconnecting everytime the script starts and
> disconnect when the HTML page is generated.
>
> I've read about a possibility to make a 'permanent' connection to the
> database ? Can anyone tell how ?

I've never used mod_perl, but I use FastCGI with CGI.pm, and that works
just great. In the CGI script you have a loop


<Connect to database>
while (my $q = new CGI::Fast) {
  <Handle CGI requests>
}

and this works just fine. The Apache fastCGI module is available from
www.fastcgi.com.

Adriaan

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

Предыдущее
От: "Erik Colson"
Дата:
Сообщение: Perl - Apache / Postgress
Следующее
От: Christopher Hutton
Дата:
Сообщение: installing postgreSql