Apache::DBI->connect_on_init(
        'dbi:Pg:dbname=mydb;host=myhost;port=5432',
        'nobody','');

Can this be avoided somehow so that only 1 connection is initiated and
reused? Is my DBI(1.53) or Apache::DBI(1.04) too old? Is it a bad idea to
set dbi_connect_method explicitly in startup.pl?

1.07 is 'borked', use 1.06, 1.04 I forget, but I know bugs that matter were fixed between the 2.

in startup.pl, make sure you load them in this order:

use Apache2::Status ();
use Apache::DBI ();
#$Apache::DBI::DEBUG = 2;
use DBI ();


Apache::DBI->connect_on_init(

--
------------------------------------------------------------------------
Philip M. Gollucci (pgollu...@p6m7g8.com) c: 703.336.9354
Consultant - P6M7G8 Inc.  http://p6m7g8.net
Senior System Admin - RideCharge, Inc.  http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

Reply via email to