2 % if ( driver_name =~ /^Pg$/ ) {
3 % my $dbname = (split(':', datasrc))[2];
4 % if ( $dbname =~ /[;=]/ ) {
5 % my %elements = map { /^(\w+)=(.*)$/; $1=>$2 } split(';', $dbname);
6 % $dbname = $elements{'dbname'};
8 % open(DUMP,"pg_dump $dbname |");
10 % errorpage("don't (yet) know how to dump ". driver_name. " databases");
13 % http_header('Content-Type' => 'text/plain' );