From: Darold Gilles Date: Mon, 9 Jul 2012 17:50:14 +0000 (+0200) Subject: Add a note about Windows Os and zcat as well as a more general note about using compr... X-Git-Tag: v3.2~193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed8704c690efe8fb15056c9d0b7841b05f176dd1;p=pgbadger Add a note about Windows Os and zcat as well as a more general note about using compressed log file in other format than gzip --- diff --git a/Makefile.PL b/Makefile.PL index 0c1620f..f674c03 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -33,7 +33,7 @@ WriteMakefile( 'MAN1PODS' => { 'doc/pgBadger.pod' => 'blib/man1/pgbadger.1' }, 'DESTDIR' => $DESTDIR, 'INSTALLDIRS' => $INSTALLDIRS, - 'clean' => {FILES => "install_all.sh"}, + 'clean' => {}, 'META_MERGE' => { resources => { homepage => 'http://projects.dalibo.org/pgbadger', diff --git a/README b/README index 910f3f8..34f5737 100644 --- a/README +++ b/README @@ -126,6 +126,16 @@ REQUIREMENT This module is optional, if you don't have PostgreSQL log in the CSV format you don't need to install it. + Under Windows OS you may not be able to use gzipped log files unless you + have a zcat like utility that could uncompress the log file and send + content to stdout. If you have such an utility or in other OSes you want + to use other compression utility like bzip2 or Zip, use the --zcat + comand line option as follow: + + --zcat="unzip -p" or --zcat="gunzip -c" or --zcat="bzip2 -dc" + + the last example can also be used like this: --zcat="bzcat" + POSTGRESQL CONFIGURATION You must enable some configuration directives in your postgresql.conf before starting. diff --git a/doc/pgBadger.pod b/doc/pgBadger.pod index 9a619ce..2bc4b94 100644 --- a/doc/pgBadger.pod +++ b/doc/pgBadger.pod @@ -119,6 +119,15 @@ If you planned to parse PostgreSQL CSV log files you might need some Perl Module This module is optional, if you don't have PostgreSQL log in the CSV format you don't need to install it. +Under Windows OS you may not be able to use gzipped log files unless you have a +zcat like utility that could uncompress the log file and send content to stdout. +If you have such an utility or in other OSes you want to use other compression +utility like bzip2 or Zip, use the --zcat comand line option as follow: + + --zcat="unzip -p" or --zcat="gunzip -c" or --zcat="bzip2 -dc" + +the last example can also be used like this: --zcat="bzcat" + =head1 POSTGRESQL CONFIGURATION You must enable some configuration directives in your postgresql.conf before starting.