Hi all.
I recently upgraded my
PostgreSQL install to version 8.2.6 (win32). After doing so, I installed the following modules (
DBI was installed previously).
When attempting to connect to a database with
DBD::Pg, the connection hung and only by pressing Ctrl-C was I able to terminate the program.
Assuming something might be wrong with the module, I tried
DBD::PgPP in a very simple test script (please see below):
#!/usr/bin/perl
use warnings;
use strict;
use DBI;
my $db = DBI->connect('dbi:PgPP:testdb', 'postgres', 'xxxxxxxxx');
if( $db ) {
print "Connected!\n";
}
else {
print "Nope. Sorry.\n";
}
After doing so, I immediately noticed the following message:
C:\Perl2\bin>perl test_pg.pl
DBI connect('testdb','postgres',...) failed: Couldn't connect to /tmp/
+.s.PGSQL.5432: at C:/Perl2/site/lib/DBD/PgPP.pm line 124 at test_pg.p
+l line 5
Is there a configuration setting I need to modify? For testing purposes, I was able to connect to the database with both python and ruby.
Thanks,
~Katie
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.