Re: [GENERAL] Perl - Apache / Postgress

From: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
To: Erik Colson <beaver(at)glo(dot)be>
Cc: Postgres-General <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Perl - Apache / Postgress
Date: 1999-07-14 08:46:16
Message-ID: 378C4E58.8751B0AA@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Hutton 1999-07-14 10:02:45 installing postgreSql
Previous Message Erik Colson 1999-07-14 08:08:23 Perl - Apache / Postgress