XAS::Apps::Base::ExtractGlobals - This module will extract globals from a postgres dump file
use XAS::Apps::Base::ExtractGlobals; my $app = XAS::Apps::Base::ExtractGlobals->new(; -throws => 'pg_extract_global', -options => [ {'file=s' => ''}, {'database=s' => ''} ] ); exit $app->run();
This module will extract the global elements from a postgres pg_dumpall file. This is based on the database name. This data is then suitable to populate an "empty" database that already has a schema defined. This allows you to do selective restores.
The following parameters are used to configure the module.
Defines the command line options for this module.
Defines the dump file to use.
Defines which database to extract data from.
bin/pg_extract_global.pl
XAS
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (C) 2012 by Kevin L. Esteb
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.