Pigsty Blog Articles

Posts in 2018
  • Using sysbench to Test PostgreSQL Performance

    February 06, 2018 in PostgreSQL

    Using sysbench to Test PostgreSQL Performance

    Although PostgreSQL provides pgbench, sometimes you need sysbench to outperform MySQL.

    Although PostgreSQL provides pgbench, sometimes you need sysbench to outperform MySQL.

  • Testing Disk Performance with FIO

    February 06, 2018 in PostgreSQL

    Testing Disk Performance with FIO

    FIO is a convenient tool for testing disk I/O performance

    FIO is a convenient tool for testing disk I/O performance

  • PostgreSQL Server Log Regular Configuration

    February 06, 2018 in PostgreSQL

    PostgreSQL Server Log Regular Configuration

    It's recommended to configure PostgreSQL's log format as CSV for easy analysis, and it can be directly imported into PostgreSQL data tables.

    It's recommended to configure PostgreSQL's log format as CSV for easy analysis, and it can be directly imported into PostgreSQL data tables.

  • Finding Unused Indexes

    February 04, 2018 in PostgreSQL

    Finding Unused Indexes

    Indexes are useful, but they're not free. Unused indexes are a waste. Use these methods to identify unused indexes.

    Indexes are useful, but they're not free. Unused indexes are a waste. Use these methods to identify unused indexes.

  • Batch Configure SSH Passwordless Login

    January 07, 2018 in PostgreSQL

    Batch Configure SSH Passwordless Login

    Quick configuration for passwordless login to all machines

    Quick configuration for passwordless login to all machines

  • Wireshark Packet Capture Protocol Analysis

    January 05, 2018 in PostgreSQL

    Wireshark Packet Capture Protocol Analysis

    Wireshark is a very useful tool, especially suitable for analyzing network protocols. Here's a simple introduction to using Wireshark for packet capture and PostgreSQL protocol analysis.

    Wireshark is a very useful tool, especially suitable for analyzing network protocols. Here's a simple introduction to using Wireshark for packet capture and PostgreSQL protocol analysis.

Posts in 2017
  • The Versatile file_fdw — Reading System Information from Your Database

    December 01, 2017 in PostgreSQL

    The Versatile file_fdw — Reading System Information from Your Database

    With `file_fdw`, you can easily view operating system information, fetch network data, and feed various data sources into your database for unified viewing and management.

    With `file_fdw`, you can easily view operating system information, fetch network data, and feed various data sources into your database for unified viewing and management.

  • Installing PostGIS from Source

    September 07, 2017 in PostgreSQL

    Installing PostGIS from Source

    PostGIS is PostgreSQL's killer extension, but compiling and installing it isn't easy.

    PostGIS is PostgreSQL's killer extension, but compiling and installing it isn't easy.

  • Common Linux Statistics CLI Tools

    September 07, 2017 in PostgreSQL

    Common Linux Statistics CLI Tools

    top, free, vmstat, iostat: Quick reference for four commonly used CLI tools

    top, free, vmstat, iostat: Quick reference for four commonly used CLI tools

  • Go Database Tutorial: database/sql

    August 24, 2017 in PostgreSQL

    Go Database Tutorial: database/sql

    Similar to JDBC, Go also has a standard database access interface. This article details how to use database/sql in Go and important considerations.

    Similar to JDBC, Go also has a standard database access interface. This article details how to use database/sql in Go and important considerations.