Hi Monks, I have a website on a webhoster that offers PostgreSQL databases.
Unfortunately it's just webspace so I don't have any access to the underlying OS or root-access. And the DBD::Pg module is not installed. I contacted my webhoster and asked them to install it but so far they seem to be unwilling to do so. The last statement from them was: PHP is used more often than Perl so please think about using PHP.
That wasn't really a helpful answer for me...

Often it is enough to just upload the appropiate .pm files to your own module library but this doesn't work for DBD::Pg.

I am able to run the psql command and have tested this, though. This allows me to run queries and so on. This is the only alternative I came up with so far.
I'd write myself a wrapper-function for the psql-command which I can use in my other scripts. But if possible I want to avoid that since the DBI-module pretty much is what I have used since years.

So my question is: Are there alternatives to DBD::Pg? Or is there some way to use DBD::Pg without having to install it?

Thanks in advance,

Digioso.

In reply to Alternative to DBD::Pg by Digioso

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.