Module::Build::Service::postgresql - Service implementation for postgresql
$self->services ([[slapd => 1]]);
This is a service definition for postgresql. By default we start the service listening on a local unix socket, with a fairly default configuration and a database named test. You can use the following arguments to the service definition to customize this.
Attempts to figure out the location of the postgresql binaries, and make sure that the necessary binaries are available. If it fails to find everything we need, since this leaves us dead in the water, we abort.
Figures out a directory to store the postgresql data files in. If you override this, you must make sure the directory exists.
The name of the file to dump the final database to in LDIF format. Defaults to
postgresql.sql in the
Module::Build::Service log directory.
Define a list of service name to database mappings that will be placed in
pg_service.conf that can be used for connecting to the test database.
Each item may either be a string, in which case a 1:1 correspondence is assumed, or it can be an arrayref, where the first item is the service name and the second is the database name. Each database named will be created. Alternatively, you can manage it all yourself.
Tries to figure out the version of postgresql installed on the system. Since this is lazily built, it will only get called if we really need it...in which case, if we're not able to figure it out, we should just abort.
See Module::Build::Service::Base for more configurable attributes.
Tries to initialize and start the postgresql database.
Stops the postgresql database. Totally overrides default implementation (since we want to use pg_ctl, not kill the process directly).
Michael Alan Dorman <email@example.com>
This software is copyright (c) 2012 by Ironic Design, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.