Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Koken 0.8.2
  • ContentBox 1.5.2
  • jQPlayer 0.5.2
  • SPOILER ALERT! 0.0.2
  • jQuery Mask Plugin 0.9.0
  • Easing Slider 2.1.2
  • Btapp.js 0.2.0
  • WiiFlash 0.4.5
  • Breeze.js 1.3.3
  • TinyMCE Templates 3.0.2
  • Home > Scripts > Database Tools

    pgreplay 1.2.0

    Download button


    Downloads: 334  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.5/5)
    2 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Laurenz Albe | More scripts
    pgreplay.projects.postgresql.org
    BSD License 

    Windows / Linux / Mac OS / BSD / Solaris
    PostgreSQL
    C/C++
    September 21st, 2012, 17:44 GMT
    C: \ Database Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    pgreplay description

    A PostgreSQL log file replayer for performance tests

    The replayer reads a PostgreSQL log file (not WAL files), extracting all the SQL statements and executing them in the same order and relative time against a PostgreSQL database cluster.

    In the first form, the log file infile is replayed at the time it is read.

    The database cluster against which you replay the SQL statements must be a clone of the database cluster that generated the logs from the time immediately before the logs were generated.

    If the execution of statements gets behind schedule, warning messages are issued that indicate that the server cannot handle the load in a timely fashion.

    The idea is to replay a real-world database workload as exactly as possible.

    pgreplay is useful for performance tests, particularly in the situations where the developer wants to compare the performance of his PostgreSQL application on different hardware or different operating systems.
     
    It can also be helpful where developers want to upgrade their database and want to make sure that the new database version does not suffer from performance regressions that affect it.
     
    Moreover, pgreplay can give some feeling as to how his application might scale by allowing to replay the workload at a different speed.

    Requirements:

    · PostgreSQL

    Limitations:

    · pgreplay can only replay what is logged by PostgreSQL. This leads to some limitations:
    · COPY statements will not be replayed, because the copy data are not logged.
    · Fast-path API function calls are not logged and will not be replayed. Unfortunately, this includes the Large Object API.
    · Since the log file is always in the server encoding (which you can specify with the -E switch of pgreplay), all SET client_encoding statements will be ignored.
    · Since the preparation time of prepared statements is not logged (unless log_min_messages is debug2 or more), these statements will be prepared immediately before they are first executed during replay.
    · Performance is not at the same levels with 500 users working at double speed. They are not really the same as 1000 users working at normal speed.



    TAGS:

    replay SQL | execute statement | performance test | execute | SQL | statement

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM