That's true but in that it's not different from Test::postgresql, as far as I can see.
From Test::postgresql docs:
new
[...] If required programs (initdb and postmaster)
were not found, the function returns undef and sets
appropriate message to $Test::postgresql::errstr.
I think it's really only DBD::SQLite that will give you a complete package, from scratch.
( Probably one could create a package with all the bits to run a PostgreSQL instance from the binaries from the EnterpriseDB site [1], but that looks like quite an undertaking...:
(cannot run as root)
http://www.enterprisedb.com/products-services-training/pgbindownload
"Binaries from installer version 9.2.1"
-- to use, unzip the pgsql directory somewhere, and cd into it:
cd pgsql
-- run initdb:
./bin/initdb -D 9.2/data
-- start postgres:
./bin/pg_ctl/ -D 9.2/data -l logfile start
-- run tests...
-- to stop, close all connections, then:
./bin/pg_ctl -D 9.2/data -l logfile stop
-- cleanup all files
Hm, I don't know - possible but error-prone, probably...
)
[1] http://www.enterprisedb.com/products-services-training/pgbindownload
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.