Re: OT: Apache::Session::DBI vs postgresql? --help

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: will(at)dontUthink(dot)com
Cc: Alex Pilosov <alex(at)pilosoft(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: OT: Apache::Session::DBI vs postgresql? --help
Date: 2001-06-18 16:38:11
Message-ID: Pine.BSO.4.10.10106181236050.30423-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 18 Jun 2001, will trillich wrote:

> Alex Pilosov wrote:
> >
> > On Sat, 16 Jun 2001, will trillich wrote:
> >
> > > the manpages for Apache::Session::DBI still say that it
> > > uses Apache::Session::DBIStore for its grunt work. whereas
> > You still have the old manpages (and probably old scripts).
> > CPAN's upgrades don't delete files that belong to old modules.
>
> good point -- what's the Recommended Procedure, there?
None, don't use old files ;)

> > That's because unfortunately, the database schema that needs to be used is
> > dependent on the type of a database, so you do need to tell which specific
> > database you use.
>
> but isn't that what
>
> $DBD_Driver = ($DataSource =~ m/^dbi:(\w+):/)[0]
>
> would do? with old-fashioned "DBI" we just
>
> use DBI;
> my $dbh = DBI->connect("dbi:TheDriverSpec:database-connect-string");
No. The schema is different, and the way you store things in database is
actually different for different types of database. (Such as on certain
databases Session code may use large objects, etc). DBI is to do _same_
things across many databases. Apache::Session needs to do different things
for different databases.

-alex

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-06-18 16:39:27 Re: CREATE AGGREGATE state function with one argument
Previous Message Peter Eisentraut 2001-06-18 16:33:25 Re: Help on WAL needed!