Re: DBI->data_sources("Pg") problem

2010-09-21 Thread Laslo Forro
Thanx for you concern, the problem was with my installation. I have reinstalled everything system-wide perl-related, made the symlinks check, and reinstalled DBI and DBD::Pg, now all is fine. Thank you again! Yours Laslo On Tue, Sep 21, 2010 at 6:59 PM, Laslo Forro wrote: > I do not have DBI_DS

Re: DBI->data_sources("Pg") problem

2010-09-21 Thread Laslo Forro
I do not have DBI_DSN set but I use "dbi:Pg:database=whatever". I receive no error message, simply nothing. I am digging deeper for DBI or Pg - do not know yet - drops a segfault in a tested piece of code, so perhaps the problem is somewhere in the dark corners of the Earth. On Tue, Sep 21, 2010

Re: DBI->data_sources("Pg") problem

2010-09-21 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 > No, it doesn't work even after connecting the db. > > DBI: 1.614 > DBD::Pg: 2.17 > Postgresql: 8.4.4 What error does it give? Are you sure that your environment parameters are correct (e.g. DBI_DSN)? You might try specifying the information

Re: DBI->data_sources("Pg") problem

2010-09-21 Thread Laslo Forro
No, it doesn't work even after connecting the db. DBI: 1.614 DBD::Pg: 2.17 installed locally in user's path via CPANP. Postgresql: 8.4.4 On Mon, Sep 20, 2010 at 6:15 PM, Greg Sabino Mullane wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: RIPEMD160 > > > > However, this piece of code give

Re: DBI->data_sources("Pg") problem

2010-09-20 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 > However, this piece of code gives nothing: > my @dbs=DBI->data_sources("Pg)"; Works fine for me (once the quoting problem is fixed). What version of DBI and DBD::Pg do you have? Does it work if you connect to a Postgres database first, and

DBI->data_sources("Pg") problem

2010-09-20 Thread Laslo Forro
Hi there, I am trying to get the databases from a running PostgreSQL database. However, this piece of code gives nothing: my @dbs=DBI->data_sources("Pg)"; I tried to trace the situation and ended up here in DBI module: DBD::Pg::dr::data_sources(/home/salmonix/perl5/lib/perl5/x86_64-linux-thread-mu