Skip to content

Commit

Permalink
edit docs
Browse files Browse the repository at this point in the history
  • Loading branch information
c77cc committed May 18, 2016
1 parent 7bde0a2 commit 454089f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
@@ -1,5 +1,8 @@
PgSniffer is a command-line tool, capture PostgreSQL network traffic, calculate slow-sql-log.


![image](https://github.com/c77cc/pgsniffer/blob/master/example.gif)

## Why PgSniffer
---
* Forgot open log_min_duration_statement? Edit the configuration file and restart pg-server, so trouble...
Expand All @@ -8,12 +11,20 @@ PgSniffer is a command-line tool, capture PostgreSQL network traffic, calculate

## Binary Installation
---
* bin/ directory
* [Mac OS 64bit](https://raw.githubusercontent.com/c77cc/pgsniffer/master/bin/pgsniffer.darwin64bit)
* [Linux 64bit](https://raw.githubusercontent.com/c77cc/pgsniffer/master/bin/pgsniffer.linux64bit)
* [Windows 64bit](https://raw.githubusercontent.com/c77cc/pgsniffer/master/bin/pgsniffer.win64bit.exe)


## Compile Installation
---
#### Mac OS / Linux

You need install libpcap on Linux platform.

```
yum install libpcap-devel -y
```

{OS}: windows, linux, drawin, freebsd

Expand Down
12 changes: 11 additions & 1 deletion README_CN.md
@@ -1,5 +1,7 @@
PgSniffer是一个命令行工具,通过抓取PostgreSQL流量,计算出slow-sql-log

![image](https://github.com/c77cc/pgsniffer/blob/master/example.gif)

## 解决了什么问题
---
* 忘记开启log_min_duration_statement?修改配置文件再次重启pg-server,好麻烦。。。
Expand All @@ -8,11 +10,19 @@ PgSniffer是一个命令行工具,通过抓取PostgreSQL流量,计算出slow

## 二进制安装
---
* bin/ 目录下载对应的二进制执行文件即可。
* [Mac OS 64bit](https://raw.githubusercontent.com/c77cc/pgsniffer/master/bin/pgsniffer.darwin64bit)
* [Linux 64bit](https://raw.githubusercontent.com/c77cc/pgsniffer/master/bin/pgsniffer.linux64bit)
* [Windows 64bit](https://raw.githubusercontent.com/c77cc/pgsniffer/master/bin/pgsniffer.win64bit.exe)

## 编译安装
---
#### linux

Linux平台需要安装libpcap
```
yum install libpcap-devel -y
```

`通用版`

{OS}:windows, linux, drawin, freebsd
Expand Down
File renamed without changes.
Binary file added bin/pgsniffer.linux64bit
Binary file not shown.
Binary file added bin/pgsniffer.win64bit.exe
Binary file not shown.
Binary file added example.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 454089f

Please sign in to comment.