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

From: will trillich <will(at)serensoft(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: OT: Apache::Session::DBI vs postgresql? --help
Date: 2001-06-16 23:03:39
Message-ID: 20010616180339.A15073@serensoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jun 16, 2001 at 12:41:57AM -0400, Alex Pilosov wrote:
> Actually, I just tried your original example, and it worked for me:
> use Apache::Session::Postgres;
>
> #if you want Apache::Session to open new DB handles:
>
> tie %hash, 'Apache::Session::Postgres', $id, {
> DataSource => 'dbi:Pg:dbname=sessions',
> UserName => $db_user,
> Password => $db_pass,
> Commit => 1
> };
> (all works fine)
>
> I think your problem is using wrong versions of Apache::Session. Make sure
> you upgrade to latest (1.53). You should _not_ even have had
> Session::DBIStore, its gone a long time ago.

ah. that made a big difference! thanks.

the manpages for Apache::Session::DBI still say that it
uses Apache::Session::DBIStore for its grunt work. whereas
normal db lookup scripts can
use DBI
which then hooks into the needed DBD::<whatever> according to
the datasource pattern; i guess Apache::Session::DBI doesn't do
that... which is why we have to specify
use Apache::Session::Postgres
*and*
...DataSource=>'dbi:Pg:dbname=something'...
which seems a bit unmodular, to coin a phrase.

--
I figure: if a man's gonna gamble, may as well do it
without plowing. -- Bama Dillert, "Some Came Running"

will(at)serensoft(dot)com
http://sourceforge.net/projects/newbiedoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Pilosov 2001-06-16 23:41:21 Re: OT: Apache::Session::DBI vs postgresql? --help
Previous Message Tom Lane 2001-06-16 22:28:35 Re: 7.0.3 select/join syntax?