Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s/Text::CSV/$&_XS/g

  • Loading branch information...
commit 20e3ddeca4faeeb9b93b3902d975331bdd723d00 1 parent 24d6170
@davidfetter davidfetter authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  META.yml
  2. +1 −1  README
  3. +1 −1  doc/pgBadger.pod
  4. +2 −2 pgbadger
View
2  META.yml
@@ -5,7 +5,7 @@ version: 1.1
version_from: pgbadger
installdirs: site
recommends:
- Text::CSV: 0
+ Text::CSV_XS: 0
distribution_type: script
generated_by: ExtUtils::MakeMaker version 6.17
View
2  README
@@ -163,7 +163,7 @@ REQUIREMENT
If you planned to parse PostgreSQL CSV log files you might need some
Perl Modules:
- Text::CSV - to parse PostgreSQL CSV log files.
+ Text::CSV_XS - to parse PostgreSQL CSV log files.
This module is optional, if you don't have PostgreSQL log in the CSV
format you don't need to install it.
View
2  doc/pgBadger.pod
@@ -153,7 +153,7 @@ PgBadger comes as a single Perl script- you do not need anything else than a mod
If you planned to parse PostgreSQL CSV log files you might need some Perl Modules:
- Text::CSV - to parse PostgreSQL CSV log files.
+ Text::CSV_XS - to parse PostgreSQL CSV log files.
This module is optional, if you don't have PostgreSQL log in the CSV format you don't need to install it.
View
4 pgbadger
@@ -524,8 +524,8 @@ foreach my $logfile (@log_files) {
# Get size of the file
my $totalsize = (stat("$logfile"))[7] || 0;
my $cursize = 0;
-
- if ($format eq 'csv') {
+
+ if ($format eq 'csv') {
require Text::CSV_XS;
my $csv = Text::CSV_XS->new({binary => 1, eol => $/});
my $io = undef;
Please sign in to comment.
Something went wrong with that request. Please try again.