Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New formula: pgBadger 3.3. #18004

Closed
wants to merge 1 commit into from

2 participants

@lifepillar

pgBadger is a PostgreSQL log analyzer built for speed
with fully detailed reports from your PostgreSQL log file.
It's a single and small Perl script that aims to replace
and outperform the old php script pgFouine.

@adamv adamv was assigned
@lifepillar lifepillar New formula: pgBadger 3.3.
pgBadger is a PostgreSQL log analyzer built for speed
with fully detailed reports from your PostgreSQL log file.
It's a single and small Perl script that aims to replace
and outperform the old php script pgFouine.
c276706
@adamv

This should be written out as a sample conf file, and the instructions should say to copy it over.

Those lines must be merged with an existing postgresql.conf. For obvious reasons, this recipe cannot provide a full sample postgresql.conf.

@adamv adamv closed this pull request from a commit
@lifepillar lifepillar pgBadger 3.3.
pgBadger is a PostgreSQL log analyzer built for speed
with fully detailed reports from your PostgreSQL log file.
It's a single and small Perl script that aims to replace
and outperform the old php script pgFouine.

Closes #18004.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
6211a47
@adamv adamv closed this in 6211a47
@nddrylliog nddrylliog referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@handyman5 handyman5 referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@lifepillar lifepillar deleted the lifepillar:pgbadger branch
@shelhamer shelhamer referenced this pull request from a commit
@lifepillar lifepillar pgBadger 3.3.
pgBadger is a PostgreSQL log analyzer built for speed
with fully detailed reports from your PostgreSQL log file.
It's a single and small Perl script that aims to replace
and outperform the old php script pgFouine.

Closes #18004.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
5155aa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 26, 2013
  1. @lifepillar

    New formula: pgBadger 3.3.

    lifepillar authored
    pgBadger is a PostgreSQL log analyzer built for speed
    with fully detailed reports from your PostgreSQL log file.
    It's a single and small Perl script that aims to replace
    and outperform the old php script pgFouine.
This page is out of date. Refresh to see the latest.
Showing with 36 additions and 0 deletions.
  1. +36 −0 Library/Formula/pgbadger.rb
View
36 Library/Formula/pgbadger.rb
@@ -0,0 +1,36 @@
+require 'formula'
+
+class Pgbadger < Formula
+ homepage 'http://dalibo.github.io/pgbadger/'
+ url 'http://downloads.sourceforge.net/project/pgbadger/3.3/pgbadger-3.3.tar.gz'
+ sha1 '26c8006fd64ca12f75a945bf697eaea9654dc2fd'
+
+ def install
+ system "perl", "Makefile.PL", "DESTDIR=."
+ system "make"
+ system "make install"
+ bin.install("usr/local/bin/pgbadger")
+ man1.install("usr/local/share/man/man1/pgbadger.1")
+ chmod 0755, bin+'pgbadger' # has 555 by default
+ chmod 0644, man1+'pgbadger.1' # has 444 by default
+ end
+
+ def caveats; <<-EOS.undent
+ You must configure your PostgreSQL server before using pgBadger.
+ Edit postgresql.conf (in #{var}/postgres if you use Homebrew's
+ PostgreSQL), set the following parameters, and restart PostgreSQL:
+
+ log_destination = 'stderr'
+ log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d '
+ log_statement = 'none'
+ log_duration = off
+ log_min_duration_statement = 0
+ log_checkpoints = on
+ log_connections = on
+ log_disconnections = on
+ log_lock_waits = on
+ log_temp_files = 0
+ lc_messages = 'C'
+ EOS
+ end
+end
Something went wrong with that request. Please try again.